Bitten by the ASP.net bug (again)

July 16th, 2012 by admin Leave a reply »

Just wanted to put this out there in case you run into this yourself when you are setting up asp.net or IIS on your system to make or create websites.  If you get this error: “Failure Changing IIS ApplicationHost.config: IIS7Register failed with HRESULT 800700b7: ‘Cannot create a file when that file already exists. ” and you just don’t know what do to, go and check the applicationHost.config  file located in \windows\system32\inetsrv\config folder and change these lines:

<add path=”%windir%\Microsoft.NET\Framework\v4.0.30319\aspnet_isapi.dll” allowed=”true” groupId=”ASP.NET v4.0.30319 (32-bit)” description=”ASP.NET v4.0.30319 (32-bit)” />
<add path=”%windir%\Microsoft.NET\Framework64\v4.0.30319\aspnet_isapi.dll” allowed=”true” groupId=”ASP.NET v4.0.30319 (32-bit)” description=”ASP.NET v4.0.30319 (32-bit)” />

Change the %windir% to your local C:\Windows path and save that and re-run your install of asp.net and all should go as expected.  You can re-install it using this command: C:\Windows\Microsoft.NET\Framework\v4.0.30319>aspnet_regiis -i

Hope this helps.

Advertisement

Leave a Reply