I have a .NET Core 3.0 Razor pages project. Is it possible for it to run in the local IIS express WITHOUT publishing?
For debugging in IIS without publishing, you could follow steps below:
Run VS as administrator
Open your Razor page project
Right-Click project->properties->Debug tab
New profile->IIS
Launch-> IIS
Enter configuration you need for other fields
Run with F5
When I configure IIS and tries to run the mvc application it gets the HTTP Error 403.14 - Forbidden The Web server is configured to not list the contents of this directory error form IIS. I have tried solutions provided by sol1, sol2 and sol3 but I am still getting the error. I have Windows 8.1 and when I tried it on Windows 10 it works perfectly. So it must be an environment problem.
In visual studio 2015 it does not include the MVC4 framework. So I needed to install ASP.NET MVC 4 separately although I have already installed VS 2015 in my machine.
I just created a WCF Service Application in VS2013 with framework 3.5. for exposing some methods I have in a class library project.
Everything went fine but when I tried to see if the service runs, it doesn't. Instead I got the next error.
HTTP Error 404.17 - Not Found The requested content appears to be
script and will not be served by the static file handler.
Most likely causes: The request matched a wildcard mime map. The
request is mapped to the static file handler. If there were different
pre-conditions, the request will map to a different handler.
Things you can try: If you want to serve this content as a static
file, add an explicit MIME map.
I have dealt with it on IIS, but now in IIS Expres I'm kinda lost.
I don't have IIS installed on this machine since I'm using a remote one, but I need to debug some things and I'm stuck. Thanks for any help.
I also did run servicesmodelreg -i with visual command prompt, but error persists.
UPDATE
It may be usefull to clarfy it only happens in IIS Express so it is impacting development. I have VS2013 updated to the latest patch running on Win 8.1 64bit
Try to run "C:\Program Files\IIS Express>Wscript.exe WCF35Setup.js install" that is a script for enabling WCF 3.5 service on IIS Express.
Reference : http://www.iis.net/learn/extensions/introduction-to-iis-express/iis-75-express-readme
Seems WCF mapping are not registered with IIS.
To solve the above error:
Navigate to "
%SYSTEMROOT%\Microsoft.NET\Framework\v3.0\Windows Communication Foundation
" at the Visual Studio command prompt.
Execute "servicemodelreg -i" to install the mappings manually.
For more details refer :ServiceModel Registration Tool (ServiceModelReg.exe) on MSDN.
-
Alternatively,
enable HTTP Activation for WCF services in Windows features.
Click the Start button, and then click Control Panel.
Click Programs, and then click Programs and Features.
On the Tasks menu, click Turn Windows features on or off.
Select the WCF Non-Http Activation Components box and save the
setting.
Source :
http://msdn.microsoft.com/en-us/library/ms732012(v=vs.110).aspx
After trying all the recommended solutions suggested here up to this point:
servicemodelreg -i
Wscript.exe WCF35Setup.js install
enable HTTP Activation
And a few others suggested elsewhere:
Run Visual Studio as Admin
Use "Local IIS" instead of IIS Express
I finally determined what my issue was. The WCF code was targeting .NET framework 3.0, and I had not enabled IIS support for 3.0/3.5!
The solution was simple. Enable ".NET Extensibilty 3.5 and ASP.NET 3.5".
I created a MVC 4 Web Api and ran all the configurations to get it running, but I get the error mentioned above.
The event log says I am running two version of .NET
I have enabled 32 bit applications on the server
This is the proof of .NET 4 Registration:
This is the error I am getting:
The setup for above error:
Clicking on configure from above screen:
Clicking on edit:
If I change the wildcard mapping dll to the follwing
I get this error, as you can see it says I am running version 2 of .net which is not true according to the first screenshot, I have tried iisreset to not avail:
The wild card mappings are used for clean url's when using MVC 4 web api.
This is the setup in IIS:
Can someone maybe guide me to a solution for this?
EDIT:
These are the resources for the initial setup I did:
http://haacked.com/archive/2008/11/26/asp.net-mvc-on-iis-6-walkthrough.aspx
http://johan.driessen.se/posts/getting-an-asp.net-4-application-to-work-on-iis6
Basically the IIS has framework 4 registered but it is using framework 2 when I try and load the api.
I have a DNN 5.01 installation and upgraded the server so it used .NET Framework 4.0 as i wanted i wanted to get a DNN module working on a portal.
The problem is when i change the application pool for that that installation to use .net 4 the site comes up with a generic error 500 internal server error.
IF i select .net version 2.0 the site works again.
I am also getting errors like these when i double click on icons such as "Error Pages" in IIS 7.5.
My web.config file is below:
enter link description here
edit:
The updated web.config seems to allow the site to work under .net 4 but the login controls dont show up! :(
updated webconfig file