Nop with IIS8 on Windows 2012

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
10 years ago
We are installing to windows server 2012 running IIS8.



HTTP Error 500.19 - Internal Server Error

The requested page cannot be accessed because the related configuration data for the page is invalid.



Detailed Error Information:



Module
   IIS Web Core

Notification
   BeginRequest

Handler
   Not yet determined

Error Code
   0x80070021

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".  

Config File
   \\?\Q:\www\web.config



Requested URL
   http://localhost:80/sno/views/install/index.cshtml

Physical Path
   Q:\www\views\install\index.cshtml

Logon Method
   Not yet determined

Logon User
   Not yet determined




Config Source:
   75:     <validation validateIntegratedModeConfiguration="false" />
   76:     <handlers>
   77:       <remove name="ExtensionlessUrlHandler-ISAPI-4.0_32bit" />





If anybody can help us out with this we would be very thankful!!
10 years ago
gdi77 wrote:
We are installing to windows server 2012 running IIS8.



HTTP Error 500.19 - Internal Server Error

The requested page cannot be accessed because the related configuration data for the page is invalid.



Detailed Error Information:



Module
   IIS Web Core

Notification
   BeginRequest

Handler
   Not yet determined

Error Code
   0x80070021

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".  

Config File
   \\?\Q:\www\web.config

Requested URL
   http://localhost:80/sno/views/install/index.cshtml

Physical Path
   Q:\www\views\install\index.cshtml

Logon Method
   Not yet determined

Logon User
   Not yet determined
Config Source:
   75:     <validation validateIntegratedModeConfiguration="false" />
   76:     <handlers>
   77:       <remove name="ExtensionlessUrlHandler-ISAPI-4.0_32bit" />
If anybody can help us out with this we would be very thankful!!


Ok, so this problem unfortunately can happen for many reasons and there are multiple resolutions (depending on your variation).

1. Make sure that under Control Panel, Turn Features on / off that you have Internet Information Services > World Wide Web Services > Application Development Features and then ASP.NET ticked (and 3.5 / 4.5), .NET extensibility 3.5 / 4.5, ISAPI Extensions and Filters are checked as well

2. You can technically make a copy of your web.config and then clear out the one that you have, just to see if it gives you any other errors instead. Potentially your real problem is that you have a file missing (this error can mask that).

3. Try re-registering asp.net for 2.0 and 4.0
under %SYSTEM%\WINDOWS\Microsoft.NET\Framework64\v2.0.50727 and execute aspnet_regiis -I
and then also for your 4.0 framework as well

(reboot after you doing step 3, just in case, and only do this if step 1 didn't work or step 2 didn't specifically help you

4. Also, if you go to http://www.microsoft.com/web/downloads/platform.aspx and install 4.6, you can go to the Product Tab (next to Spotlight). You can select Frameworks. Make sure that under name that the appropriate IIS: *** things are installed. Doing this from Programs / Turn on Features works too, but just to be safe you can check here and make sure MVC, ASP.NET etc is enabled If it doesn't say so, then click add and install it

5. You can also do the following %SYSTEM%\Windows\System32\inetsrv\config\applicationshost.xml and change the overrideModeDefault="Deny" to "Allow", but this may either a) solve the problem... doubtful though or at least b) show you what is really wrong. (if it shows you what is wrong and you fix it, but it back how it was and try again). Reboot after each time (just to make sure).

Cheers,
-Michael
7 years ago
MichaelCommerce wrote:

1. Make sure that under Control Panel, Turn Features on / off that you have Internet Information Services > World Wide Web Services > Application Development Features and then ASP.NET ticked (and 3.5 / 4.5), .NET extensibility 3.5 / 4.5, ISAPI Extensions and Filters are checked as well


After hours trying it works. Thanks.
7 years ago
Hi,
I also have a problem with IIS8 on Windows 2012, only localhost with whith debug OK.

[ApplicationException: No database instance]
   Nop.Data.Initializers.CreateTablesIfNotExist`1.InitializeDatabase(TContext context) in C:\inetpub\wwwroot\NopCommerce\Libraries\Nop.Data\Initializers\CreateTablesIfNotExist.cs:71
   System.Data.Entity.Internal.InternalContext.PerformInitializationAction(Action action) +72
   System.Data.Entity.Internal.InternalContext.PerformDatabaseInitialization() +502
   System.Data.Entity.Internal.RetryAction`1.PerformAction(TInput input) +177
   System.Data.Entity.Internal.LazyInternalContext.InitializeDatabaseAction(Action`1 action) +273
   System.Data.Entity.Internal.InternalContext.GetEntitySetAndBaseTypeForType(Type entityType) +38
   System.Data.Entity.Internal.Linq.InternalSet`1.Initialize() +77
   System.Data.Entity.Internal.Linq.InternalSet`1.get_InternalContext() +21
   System.Data.Entity.Infrastructure.DbQuery`1.System.Linq.IQueryable.get_Provider() +56
   System.Linq.Queryable.Where(IQueryable`1 source, Expression`1 predicate) +61
   Nop.Services.Tasks.ScheduleTaskService.GetAllTasks(Boolean showHidden) in C:\inetpub\wwwroot\NopCommerce\Libraries\Nop.Services\Tasks\ScheduleTaskService.cs:84
   Nop.Services.Tasks.TaskManager.Initialize() in C:\inetpub\wwwroot\NopCommerce\Libraries\Nop.Services\Tasks\TaskManager.cs:30
   Nop.Web.MvcApplication.Application_Start() in C:\inetpub\wwwroot\NopCommerce\Presentation\Nop.Web\Global.asax.cs:75
7 years ago
It has nothing to do with IIS but it is about your SQL instance.
7 years ago
but I don't have a problem in debug
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.