---
title: "Deploying issue : IIS Error code 0x80070021"  
description: "Deploying issue : IIS Error code 0x80070021"  
author: "Anonymous User"  
published: 2015-10-23  
updated: 2015-10-23  
canonical: https://www.mindstick.com/forum/33527/deploying-issue-iis-error-code-0x80070021  
category: "iis 7"  
tags: [".net", "iis"]  
reading_time: 3 minutes  

---

# Deploying issue : IIS Error code 0x80070021

got [problem](https://yourviews.mindstick.com/view/81399/tackling-the-problem-of-unemployment-during-corona-pandemic) while deploying website. The [web application](https://www.mindstick.com/articles/13069/progressive-web-application-pwas-all-you-need-to-know-about) works perfectly while running from [visual studio](https://www.mindstick.com/articles/12378/visual-studio-for-mac-is-out-of-beta-preview-now-officially-available) but while i trying to deploy it using IIS, it didn't work. IIS tells that there is problem in [web.config](https://www.mindstick.com/forum/183/web-config-file).\
[HTTP Error](https://www.mindstick.com/forum/33552/error-code-0x80070021-and-http-error-500-19) 500.19 - [Internal Server Error](https://www.mindstick.com/forum/159408/an-api-request-returns-a-500-internal-server-error-how-to-fix-this-error)

```
The requested page cannot be accessed because the related configuration data for the page is invalid.Module	IIS Web CoreNotification	BeginRequestHandler	Not yet determinedError Code	0x80070021Config 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	\\?\D:\WebProd\WebProd\web.config
```

\
[Web config](https://answers.mindstick.com/qa/93685/what-is-web-config-file-in-dot-net-framework) syntax:

```
<?xml version="1.0" encoding="UTF-8"?><!--  For more information on how to configure your ASP.NET application, please visit  http://go.microsoft.com/fwlink/?LinkId=169433  --><configuration>	<appSettings>     <add key="CrystalImageCleaner-AutoStart" value="true" />     <add key="CrystalImageCleaner-Sleep" value="60000" />     <add key="CrystalImageCleaner-Age" value="120000" /> </appSettings>    <location path="127.0.0.1" allowOverride="true">      <system.webServer>        <security>          <authentication>            <!-- note: this is different than previous example, in that  -->            <!-- the content of the section is in the original place and -->            <!-- was not moved here; in addition, the section is also    -->            <!-- specified here, just by its name, so that it gets       -->            <!-- unlocked only for the site specified in the location.   -->            <windowsAuthentication/>          </authentication>        </security>      </system.webServer>    </location> <connectionStrings>		 <add name="MyDbConn" connectionString="Server=cn-server\cndev2008; Database=WebApp; Integrated Security=SSPI" providerName="System.Data.SqlClient" />		 <!--<add name="MyDbConn" connectionString="Server=yoyonk-pc\yonksql; Database=WebApp; Integrated Security=SSPI" providerName="System.Data.SqlClient"/>--> </connectionStrings>	<system.web>		<compilation debug="true" targetFramework="4.0">			<assemblies>				<add assembly="System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"  />				<add assembly="System.Web.Extensions.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />				<add assembly="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />				<add assembly="CrystalDecisions.Web, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304" />				<add assembly="CrystalDecisions.Shared, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304" />				<add assembly="log4net, Version=1.2.10.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304" />				<add assembly="CrystalDecisions.ReportSource, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304" />				<add assembly="CrystalDecisions.ReportAppServer.Controllers, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304" />				<add assembly="CrystalDecisions.ReportAppServer.DataDefModel, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304" />				<add assembly="CrystalDecisions.CrystalReports.Engine, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304" />        <add assembly="CrystalDecisions.ReportAppServer.ClientDoc, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/></assemblies></compilation>	<httpHandlers><add verb="GET" path="CrystalImageHandler.aspx" type="CrystalDecisions.Web.CrystalImageHandler, CrystalDecisions.Web, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304" /></httpHandlers></system.web>     <system.webServer><handlers>        <add name="CrystalImageHandler.aspx_GET"  verb="GET" path="CrystalImageHandler.aspx" type="CrystalDecisions.Web.CrystalImageHandler, CrystalDecisions.Web, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304" preCondition="integratedMode" /> </handlers><validation validateIntegratedModeConfiguration="false" />            <defaultDocument enabled="true">            <files>                <remove value="index.html" />                <remove value="iisstart.htm" />                <remove value="index.htm" />                <remove value="Default.asp" />                <remove value="Default.htm" />                <add value="index.aspx" />            </files>        </defaultDocument></system.webServer></configuration>
```

Please help !!

## Replies

### Reply by Anonymous User

Have you ever tried:http://support.microsoft.com/kb/942055\
\
Verify framework 2.0 is registered with IIS, If it is not registered, to do thisopen the command promt=> C:\Windows\Microsoft.NET\Framework64\v2.0.50727 aspnet_regiis -i\


---

Original Source: https://www.mindstick.com/forum/33527/deploying-issue-iis-error-code-0x80070021

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
