简体   繁体   中英

Error in publishing web page with IIS

With the demonstration web page of the visual studio 2013 I've published on my local server using the FileSystem option.

Following the msdn example ( https://msdn.microsoft.com/en-us/library/vstudio/1y1404zt(v=vs.100).aspx ) I have loaded this web page with the IIS. But when I try to open the web page in my internet browser the following error occurs:

**Error HTTP 500.19 - Internal Server Error The requested page cannot be accessed because the related configuration data for the page is invalid.

Config Error: This configuration section cannot be used at this path. This happens when the section is locked at a parent level. Locking is either by default (overrideModeDefault="Deny"), or set explicitly by a location tag with overrideMode="Deny" or the legacy allowOverride="false". **

I have tried many different configurations based on these links, without success, one of them is https://social.msdn.microsoft.com/Forums/vstudio/en-US/6e79cb01-ffb0-439c-8e1c-505a29b87671/iis7-http-error-50019-internal-server-error?forum=dotnetstocktradersampleapplication

Please try this

1) Click "Start button"
2) In the search box, enter "Turn windows features on or off"
in the features window, Click: "Internet Information Services"
3) Click: "World Wide Web Services"
4) Click: "Application Development Features"
5) Check (enable) the features. Check all except CGI.

在此处输入图片说明

Problem Solved! I've done this steps:

1) Click "Start button" 2) In the search box, enter "Turn windows features on or off" in the features window, Click: "Internet Information Services" 3) Click: "World Wide Web Services" 4) Click: "Application Development Features" 5) Check (enable) the features. Check all except CGI.

then I got another error message and solved doing what this link suggested: How to add ASP.NET 4.0 as Application Pool on IIS 7, Windows 7

Change .NET framework version of your website's Application Pool to 4.0

Steps:

  1. In IIS, click Application Pools
  2. Select the application pool which you have created/configured for your website
  3. Right Click -> Select "Basic Settings"
  4. Change .Net Framework Version to v4.0...

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