break
Oct 27

In my quest to deploy an application to a Windows 2003 Server, I got another error:

“Access is denied.
ASP.NET is not authorized to access the requested resource. Consider granting access rights to the resource to the ASP.NET request identity. ASP.NET has a base process identity (typically {MACHINE}\ASPNET on IIS 5 or Network Service on IIS 6) that is used if the application is not impersonating. If the application is impersonating via , the identity will be the anonymous user (typically IUSR_MACHINENAME) or the authenticated request user.

To grant ASP.NET write access to a file, right-click the file in Explorer, choose “Properties” and select the Security tab. Click “Add” to add the appropriate user or group. Highlight the ASP.NET account, and check the boxes for the desired access.”

That description is really nice, but it didn’t solve the problem. Not even close. You need to go to the Event Viewer, System, and in there I found a DCOM error that said:

“The application-specific permission settings do not grant Local Activation permission for the COM Server application with CLSID
{361146D5-C2AC-30BE-841C-385F740A88FC}
to the user MLIDDOMAIN1\user SID (S-1-5-21-7223768-1134175843-1648912389-106998). This security permission can be modified using the Component Services administrative tool.”
. In reality, this is the error you are dealing with.

Solution:

Go to start -> run and then type “regedit”. In the registry editor go to edit and search for: “361146D5-C2AC-30BE-841C-385F740A88FC” (in my scenario). You should find that string and a “value data” (in my case sqlHelper). When you find the value data, look for that component in the Component Services. To get to the component services, go to start -> run and then type “dcomcnfg”.

In the component services, expand component services -> computers -> my computer -> com+ applications. In my case the component sqlHelper was here. I did a right click -> properties. In the security tab “UNCHECK” where it says “Enforce access checks for this application”.

The error should be gone!!!

Oct 27

I was deploying an application in a Windows 2003 Server and got the following error:

“The page cannot be found. HTTP Error 404 – File or directory not found.
Internet Information Services (IIS)”

I went to IIS, and looked for the “Web Service Extensions” section. I made sure the following is allowed:

  • Active Server Pages
  • ASP.NET v1.1.4322

In my case it was in a “prohibited” status. After it was in an “allowed” status, this error went away.