I am using Visual studio web developer 4.0, in which I am creating a locally ISS hosted website.
My problem is while I am opening the website from visual studio I am getting errors such as:
ASP.NET 4.0 has not been registered on the webserver. You need to manually configure your web server for asp.net 4.0 in order for your site to run correctly...
When I am trying to serve a debug website I am getting the error:
Unable to start debugging on the server. Could not start asp.net debugging. More information my available by starting the project without debugging.
Then I navigated to my startup page without debugging and then the error in browser is
The page you are requesting cannot be served because of the extension configuration. If the page is a script, add a handler. If the file should be downloaded, add a MIME map.
I have tried registering asp.net with aspnet_regiis -1. I'm using windows 8.
You have two options:
Manually configure web server for asp.net 4.0
Reinstall .NET framework
Number two is recommended.
Related
A legacy .Net webform application is hosted in IIS is running fine in old server having .Net framework 2.0 in it. I don't have source code of the application. I have just existing published DLL which i have copied from old server to a new server having .Net 4.7 framework by default and hosted it in new server's IIS.
While browsing the application, it is showing an default configured Error.aspx page which developers may have configured. So, in case of any error the application will navigate to Error.aspx page.
I am not able to figure out the actual .net error.
How can i get the actual error or is there any way to debug that ?
You can find errors in iis log (default path is %SystemDrive%\inetpub\logs\LogFiles).
Also you can enable detailed error message in browser. Link
I have created and Angular / ASP.NET application that work perfectly in VS using IIS Express. When I deploy it to IIS 8 on Server 2012R2 it does not work.
The Dot Net Framework 4.5 and ASP.NET 4.5 frameworks are installed per the many tutorials that I have found.
The setting: "runAllManagedModulesForAllRequests" is set true.
My default page 'index.html' is a single page Angular application that does load and execute correctly when I access the application url. The IIS server is serving up all of the requests without a problem. Except for routed Web Api requests. They all return 404.
I also put in some functionality for write to a file in the Application_Start method of Global.asax. The file is NOT being written. This tells me that ASP.NET code is not running at all.
I cannot find anything relevant in the Event viewer. The IIS log simply is telling me about the 404 error. Same as I am seeing in the network tab of developer tools.
I have searched the net generally, and stackoverflow specifically with no success.
What might I be missing? How do I go about troubleshooting this?
Thanks
I have a .NET 2.0 ASP.NET app built using VS2013. It runs fine on IIS7.5/Windows7 in a .NET 2 Classic Pipeline App Pool. However when I try to run it on IIS6/Windows 2003 server I get 404 Page Not Found.
I have installed .NET 2 (+SP2) on the Windows2003 server of course, as well as registering with IIS using aspnet_regiis -i. I have set the framework version of the app accordingly. I have checked the file system permissions and confirmed that the IUSR_* account can access the web app files. The authentication type for the app is 'None'. The default page list includes Default.aspx which is correct.
It's seems ASP.NET isn't kicking in, what am I missing?
Turns out I had neglected to allow the ASP.NET Web Service Extension:
IIS 6.0 Serves .html and .asp, but not .aspx
I am deploying a ASP.NET MVC4 to Azure web site for the first time.
Stack:
Visual Studio 2013 Professional Update 1
.NET 4
ASP.NET MVC 4
Using Razor
IIS7
I have downloaded publish profile and have imported in Publish settings. Build is successful so is deploy.
When I go to home page i.e. mywebsite.azurewebsites.net/ I get: This web site has been successfully created message.
When I try going to /Account/Login => I get 404.
When I run /test.aspx (this is page I have added to project for testing) it executes and returns the page output.
I had same issue when I tried deploying MVC application to IIS6, where extensionless path was not handled so I had to enable wildcard handler.
How to resolve MVC issue on Azure?
Update 1
I have created a new ASP.NET MVC 4 project (Razor) using .NET 4.5. I have installed latest Azure SDK for Visual Studio 2013. So, this is empty project created from Visual Studio template, I have not did any further adjustments and it works on local IIS. I did a deploy according to Azure documentation.
Result:
403 on home page.
404 on Home controller url (http://mywebsite.azure.site/Home)
I found the problem.
I had "Precompile during publishing" checked in "File Publish Options". It was generating PrecompiledApp.config and Global.asax was missing.
When I have unchecked "Precompile during publishing" option, everything was fine.
I think you need to change your routes in RouteConfig.cs . I see you are trying /test.aspx , but I would try a restful folder. Look in your Controllers folder.
for example if you see:
Home
Then I would try mywebsite.azurewebsites.net/home
I see you are trying Account/Login I would NOT do this to troubleshoot as you just may have added complexity to your problem with AUTH...
Your routes are definitely needing to be looked at. Also locally you may want to run on IIS Express or your local IIS etc... and test different controllers.
The tweaking of your routes can easily cause the Account/Login to show this error locally
The following sections have been defined but have not been rendered for the layout page "~/Views/Shared/_Layout.cshtml": "Scripts".
And then on publishing,... the 404 --> "An error occurred while processing your request." etc..
I like to use Visual Studio Publish, just install the azure sdk for vs 2013 etc..
https://azure.microsoft.com/en-us/documentation/articles/web-sites-deploy/
I developed a RESTFul Web Service in VS 2013 and it works fine locally on IIS Express.
I publish to a package which I transfer to another PC and using IIS Manager I import the zip file as part of the Default Web Site.
Loading the url in a browser always leads to a "Server Error in Application" HTTP error 404 (or other 40x error).
I've tried to different implementations, one with svc file and one without. Also setting target framework in web.config = 4.0 and setting the Default Application pool to .Net V4.0
How do I get my service (which runs fine from Visual Studio) to work in IIS?
I found an update from Microsoft to enable IIS 7.5 handlers to handle requests whose URLs do not end with a period
My Windows 7 would not install this update so I ran Windows update to apply many updates. Although none looked directly related to extensionless urls it did the trick.
I imported my application using IIS Manager as before and it works fine!