Web Connection
401.2 error
Gravatar is a globally recognized avatar based on your email address. 401.2 error
  Joy Tan
  All
  Aug 9, 2017 @ 12:25am

HI Rick,

Trying to set up windows 2012 Server and got this 401.2 error Is permissions the culprit?

Any ideas. Thanks, Joy

Detailed Error Information:
Module	   IIS Web Core
Notification	   AuthenticateRequest
Handler	   .bw_wconnect-module
Error Code	   0x80070005
Requested URL	   http://127.0.0.1:8080/bw2005/HelloWorld.BW
Physical Path	   c:\websites\bw2005\HelloWorld.BW
Logon Method	   Not yet determined
Logon User	   Not yet determined
Gravatar is a globally recognized avatar based on your email address. re: 401.2 error
  Rick Strahl
  Joy Tan
  Aug 9, 2017 @ 09:01am

Also make sure the IIS Rewrite Module is installed if you are using it.

choco install UrlRewrite

+++ Rick ---

Gravatar is a globally recognized avatar based on your email address. re: 401.2 error
  Joy Tan
  Rick Strahl
  Aug 9, 2017 @ 12:17pm

Hi Rick,

Where do you think I can look to resolve this?

HTTP Error 401.2 - Unauthorized
You are not authorized to view this page due to invalid authentication headers.

Thanks, Joy

Gravatar is a globally recognized avatar based on your email address. re: 401.2 error
  Rick Strahl
  Joy Tan
  Aug 9, 2017 @ 12:36pm

Few additional suggestions here:

These all deal with making sure the Anonomymous user is set up properly and maps to an a valid account on your machine.

Also make sure all the proper IIS PreRequisites (especially the security options) are installed and that the folder you're accessing has read/execute access for the IUSR account.

+++ Rick ---

Gravatar is a globally recognized avatar based on your email address. re: 401.2 error
  Joy Tan
  Rick Strahl
  Aug 10, 2017 @ 06:55pm

Hi Rick,

I re-checked the permissions, reconfigured the scriptmap and now I am getting this error

with helloworld.bw Any ideas? Joy

 Runtime Error
Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.

Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customErrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customErrors> tag should then have its "mode" attribute set to "Off".


<!-- Web.Config Configuration File -->

<configuration>
    <system.web>
        <customErrors mode="Off"/>
    </system.web>
</configuration>


Notes: The current error page you are seeing can be replaced by a custom error page by modifying the "defaultRedirect" attribute of the application's <customErrors> configuration tag to point to a custom error page URL.


<!-- Web.Config Configuration File -->

<configuration>
    <system.web>
        <customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>
    </system.web>
</configuration>


Gravatar is a globally recognized avatar based on your email address. re: 401.2 error
  Joy Tan
  Rick Strahl
  Aug 10, 2017 @ 07:42pm

HI Rick,

Everything got resolved. Removed the scriptmap and Reconfigure the scriptmap again and then it all just started up.

Thanks so much.

Joy

© 1996-2024