Share via


Webhosting Error 0x80070002 IIS 8.0 Error in opening Links on Home Page

Question

Monday, August 15, 2016 9:33 AM

Dear All,

My website is working fine without issues from last many years on Windows 2008 R/2 SQL Server 2008/2012 and on VPS. I changed VPS every year but it never gave errors. I hosted it on shared hosting also but it never gave errors. 

After hosting I used to do Application Pool and IIS and Handlers settings through RDP or plesk in shared hosting.

This year we have hosted it on Shared hosting of Mocha host (Control by website panel) but after hosting website was not working.

They said code issue (This code is working from last many years) but I not accepted. I found and changed application pool from 4.0 Integrated to 2.0 Classic and the website started working, after changing the POOL.

The main page appears well and very fast also.

BUT THE PROBLEM IS WHEN I CLICK IN ANY LINK ON WEB PAGE IT IS GIVING ERROR:

** **

Detailed Error Information:

Module

   IIS Web Core

Notification

   MapRequestHandler

Handler

   StaticFile

Error Code

   0x80070002

Requested URL

   http://www.mydomain.com:80/mypage

Physical Path

   e:\HostingSpaces\myaccount\mydomain.com\wwwroot\mypage

Logon Method

   Anonymous

Logon User

   Anonymous

 

THIS IS OBVIOUSLY IIS Error and from IIS Server.

I think this is due to url rewriting issues in IIS settings, Handlers and Application pool.

As the pages have .aspx or html extensions but when we click the url taken is without extension and just the page name.

 

This same code us running fine from last 5-6 years.

Never faced any problem even after changing VPS or Shared hosting.

In shared hosting the Hosting company technical support team has always been able to do the proper settings to run site.

But this time Mochahost is the hosting provider and they on every thing say CODE issues.

Even when the site was not working after hosting they said CODE issues.

As it was first time we were using websitepanel (we always used PLESK panel) we took time and found out the pool settings and changed pool. After that it started working.

On every problem they say code problem and every time we manage some settings which resolves.

But this problem we are not able to resolve as we donot have RDP or IIS access. I know it has to do something with Handlers and Pool settings.

PLEASE HELP.

 

The webconfig is:

 

<?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=152368
-->
<configuration>
<connectionStrings>
<!-- <add name="SXXXXXXXConnectionString" connectionString="Data Source=100.1.***.***;Initial Catalog=catalog1;User ID=**********;Password=**********" providerName="System.Data.SqlClient" />
<add name="SXXXXXXXConnectionString1" connectionString="Data Source=100.1.***.***;Initial Catalog=catalog1;User ID=**********;Password=**********" providerName="System.Data.SqlClient" />
-->
<add name="SXXXXXXXConnectionString" connectionString="Data Source=100.1.***.***;Initial Catalog=catalog1;User ID=**********;Password=**********" providerName="System.Data.SqlClient" />
<add name="SXXXXXXXConnectionString1" connectionString="Data Source=100.1.***.***;Initial Catalog=catalog1;Persist Security Info=True;User ID=***********;Password=**********" providerName="System.Data.SqlClient" />
<add name="ConStr" connectionString="Data Source =100.1.***.***;Initial Catalog = Catalog1;Persist Security Info = false;User ID = ************; " providerName="System.Data.SqlClient" />
<add name="SXXXXXXXConnectionString2" connectionString="Data Source=100.1.***.***;Initial Catalog=catalog1;Persist Security Info=True;User ID=*************;Password=**********" providerName="System.Data.SqlClient" />
<add name="Catalog1ConnectionString" connectionString="Data Source=100.1.***.***;Initial Catalog=Catalog1;User ID=sa;Password=**********" providerName="System.Data.SqlClient" />
</connectionStrings>
<appSettings>
<add key="webpages:Version" value="1.0.0.0" />
<add key="ClientValidationEnabled" value="true" />
<add key="UnobtrusiveJavaScriptEnabled" value="true" />
<add key="ReCaptchaPrivateKey" value="USAAAAAXXXXXXXXXXXXXXXXXXXXXXXX" />
<add key="ReCaptchaPublicKey" value="USAAAAAXXXXXXXXXXXXXXXXXXX" />
<add key="DTEConnstr" value="Data Source=100.1.***.***;Initial Catalog=Catalog1;User ID=************;Password=**********" />
</appSettings>
<system.web>
<httpRuntime maxUrlLength="7200" maxQueryStringLength="7200" relaxedUrlToFileSystemMapping="true" requestValidationMode="2.0" maxRequestLength="2097151" />
<sessionState mode="InProc" timeout="1" />
<machineKey decryption="AES" validation="SHA1" decryptionKey="XXXXXXXXXXX999999999" validationKey="999999999999999999XXXXXXXXXXXXXXXXXX" />
<membership>
<providers>
<remove name="AspNetSqlMembershipProvider" />
<add connectionStringName="SXXXXXXXConnectionString1" enablePasswordRetrieval="true" enablePasswordReset="true" requiresQuestionAndAnswer="false" applicationName="SXXXXXX" requiresUniqueEmail="true" passwordFormat="Encrypted" maxInvalidPasswordAttempts="20" minRequiredPasswordLength="2" minRequiredNonalphanumericCharacters="0" passwordAttemptWindow="20" passwordStrengthRegularExpression="" name="AspNetSqlMembershipProvider" type="System.Web.Security.SqlMembershipProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=f5ftccyy6877tjk" />
</providers>
</membership>
<roleManager enabled="true">
<providers>
<remove name="AspNetSqlRoleProvider" />
<add connectionStringName="SXXXXXXXConnectionString1" applicationName="SXXXXXX" name="AspNetSqlRoleProvider" type="System.Web.Security.SqlRoleProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=f5jhjghg68787" />
</providers>
</roleManager>
<customErrors mode="Off"></customErrors>
<compilation debug="true" targetFramework="4.0">
<assemblies>
<add assembly="System.Web.Abstractions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=XXXXytu3tjheg53" />
<add assembly="System.Web.Helpers, Version=1.0.0.0, Culture=neutral, PublicKeyToken=XXXXytu3tjheg53" />
<add assembly="System.Web.Routing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=XXXXytu3tjheg53" />
<add assembly="System.Web.Mvc, Version=3.0.0.0, Culture=neutral, PublicKeyToken=XXXXytu3tjheg53" />
<add assembly="System.Web.WebPages, Version=1.0.0.0, Culture=neutral, PublicKeyToken=XXXXytu3tjheg53" />
<add assembly="System.Web.Extensions.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=XXXXytu3tjheg53" />
<add assembly="System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=XXXXytu3tjheg53" />
<add assembly="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=XXXXytu3tjheg53" />
<add assembly="System.Data.Linq, Version=4.0.0.0, Culture=neutral, PublicKeyToken=XXXXytu3tjheg53" />
</assemblies>
</compilation>
<authentication mode="Forms">
<forms loginUrl="~/Account/LogOn" timeout="2880" />
</authentication>
<pages validateRequest="false">
<namespaces>
<add namespace="System.Web.Helpers" />
<add namespace="System.Web.Mvc" />
<add namespace="System.Web.Mvc.Ajax" />
<add namespace="System.Web.Mvc.Html" />
<add namespace="System.Web.Routing" />
<add namespace="System.Web.WebPages" />
<add namespace="MvcReCaptcha.Helpers" />
</namespaces>
</pages>

<webServices>
<protocols>
<add name="HttpGet" />
<add name="HttpPost" />
</protocols>
</webServices>
<httpHandlers>
<add path="WebResource.axd" verb="GET" type="System.Web.Handlers.AssemblyResourceLoader" validate="True" />
</httpHandlers>
</system.web>
<location path="Admin">
<system.web>
<authorization>
<deny users="?" />
</authorization>
</system.web>
</location>
<system.webServer>
<validation validateIntegratedModeConfiguration="false" />
<modules runAllManagedModulesForAllRequests="true" />
<!-- <handlers>
<remove name="PageHandlerFactory-Integrated" />
<remove name="HttpRemotingHandlerFactory-soap-Integrated" />
<remove name="ASPClassic" />
<add name="ASPClassic" path="*.asp" verb="GET,HEAD,POST" modules="IsapiModule" scriptProcessor="%windir%\system32\inetsrv\asp.dll" resourceType="File" requireAccess="Script" />
</handlers> ,DefaultDocumentModule,DirectoryListingModule-->
</system.webServer>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="System.Web.Mvc" publicKeyToken="XXXXytu3tjheg53" />
<bindingRedirect oldVersion="1.0.0.0-2.0.0.0" newVersion="3.0.0.0" />
</dependentAssembly>
</assemblyBinding>
</runtime>
<system.webServer>
<security>
<requestFiltering>
<requestLimits maxAllowedContentLength="1048576000" maxQueryString="7200" maxUrl="10485760" />
</requestFiltering>
</security>
</system.webServer>
<system.net>
<mailSettings>
<smtp from="[email protected]">
<network host="smtp.yahoocom" defaultCredentials="false" port="587" userName=****************" password="**********" />
</smtp>
</mailSettings>
</system.net>
</configuration>

All replies (2)

Tuesday, August 16, 2016 9:48 AM âś…Answered

Hi Kailash,

It seems to be a problem associated with IIS module settings.

Please change your application pool to integrated mode. Then you can try the following script in your web.config:

<system.webServer>
    <modules runAllManagedModulesForAllRequests="true">
      <add name="ScriptCompressionModule" type="Westwind.Web.ScriptCompressionModule,Westwind.Web" />
    </modules>
</system.webServer>

Best Regards,

Jean


Tuesday, August 16, 2016 7:48 AM

First, this sub forum is for classic ASP. Do you know its differences from ASP.NET MVC used in your web site?

Second, ASP.NET MVC requires .NET Framework 4.x and above, and why do you switch the pool to 2.0 Classic which only supports .NET Framework 2.x/3.x? You broke the web app yourself.

Third, when you run the web app in 4.0 Integrated, what exactly was the error? Keep claiming that it used to work is useless and please focus on the problem itself.