tags:

views:

9733

answers:

5

Hi all,

I'm having problems refreshing .Net 2.0 with IIS 6.

I have been able to successfully execute "aspnet_regiis.exe -i", but when I try to register the aspnet_isapi.dll:

regsvr32 “C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll"

I get the error

C:\Windows..\aspnet_isapi.dll was loaded, but the DllRegisterServer entry point was not found.

The file cannot be registered.

Does anyone know how to resolve this? Google hasn't been very helpful.

Edit: My problem is actually that IIS isn't serving my webpages properly - that is, it's returning 404s when I try to request .aspx files that I know exist.

I can access .gif and .js files OK, but I can't access .aspx or other .Net files. I know this is related to .Net being properly configured with IIS, and the above commands are supposed to be the solution, but the second command doesn't work.

@aaronjensen: Your command to register scripts worked successfully, and investigating the logs I find that I'm getting an entry for my failed request with status 404, substatus 2.

Microsoft tells me this because "Lockdown Policy Prevents This Request".

If a request is denied because the associated ISAPI or CGI has not been unlocked, a 404.2 error is returned.

Which I assume is due to the isapi DLL in my original query being denied?

A: 

When you get the error, it means either:

1 The DLL does not need to be registered

or

2 The DLL is corrupt

Adam Pierce
+1  A: 

You don't need to register that. Try this as well: C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis -s /w3svc/1/root

If IIS is still giving you issues, check your event log and google the error there. You'll get hits.

aaronjensen
A: 

Yeah, this didn't work for me. I get error 500.

It also looks as though the dll can't be registered this way as I tested it on a machine that is working.

A: 
  1. Check the credential that IIS server is running under.
  2. Check for the AppPool user permission.
Sung Meister
A: 

In the end, I think the problem was caused by a step that is missed by the script when you refresh ASP.Net 2.0 with IIS 6.

I managed to resolve this using the following steps:

  • Resfresh the install using C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis -s /w3svc/1/root

  • Enable ASP.Net Web Service Extension in the IIS 6 Management Console - it looks like the extension was not enabled by default in IIS, hence the 404.2 Lockdown Policy Prevents This Request errors that I was seeing. Instructions to enable the ASP.Net webservice extension are on MSDN.

Dexter