简体   繁体   中英

ASPX pages not working in Application within PHP site in IIS8.5

I have WordPress setup in IIS8.5 and I'm trying to add a ASP.NET 4.0 site as a subfolder/application. The URL will look like this...

http://mydomain.com/myaspnetapp

I created the Application inside the WordPress site but I can't get the ASPX pages to work. I have run into many errors, but the latest one is this...

HTTP Error 404.17 - Not Found
The requested content appears to be script and will not be served by the static file handler.

I have setup the Handler Mappings to inherit from the parent and it looks like the handlers are there, but I'm still getting this. What am I missing?

The error message is implying that the .Net isn't configured correctly in IIS. Resulting in the static file handler trying to handle your .aspx requests. For me rerunning the asp.net IIS registration tool has solved the issue.

aspnet_regiis.exe -i 

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM