Configuration Error - Application error when trying to browse site - 500.19 - Help

Post here for help with installing or upgrading mojoPortal pre-compiled release packages. When posting in this forum, please provide all relevant details. You may also want to review the installation or upgrading documentation.

If you have questions about using the source code or working with mojoPortal in Visual Studio, please post in the Developer forum.

Post here for help with installation of mojoPortal pre-compiled release packages

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.

You may also want to review the installation or upgrading documentation.

If you have questions about using the source code or working with mojoPortal in Visual Studio, please post in the Developer forum.

This thread is closed to new posts. You must sign in to post in the forums.
9/23/2011 12:05:15 PM
Gravatar
Total Posts 18439

Re: Configuration Error - Application error when trying to browse site - 500.19 - Help

the setup page only runs database scripts and configuration steps, you won't need to run it after changing the app pool, but it is always safe to visit the setup page.

I'll be surprised if changing the app pool solves it but I guess its worth a try. The error really sounds like a typo in either Web.config or user.config and I would expect the error to happen no matter what kind of app pool if it is a typo.

9/23/2011 1:05:41 PM
Gravatar
Total Posts 550

Re: Configuration Error - Application error when trying to browse site - 500.19 - Help

Hi,

Existing a web.config file in your skin folder causes configuration errors like this. Are you sure about it?

Hope Helps

Asad

9/23/2011 1:15:26 PM
Gravatar
Total Posts 36

Re: Configuration Error - Application error when trying to browse site - 500.19 - Help

I never even know about that, so I have not even touched that file.  I cannot get past the initial load after I run the setup.  Is this something to be concerned about?  if so what should b done about it?

9/23/2011 1:35:41 PM
Gravatar
Total Posts 550

Re: Configuration Error - Application error when trying to browse site - 500.19 - Help

Search skin folder of your site (Data/Sites/[1]/Skins/[YourSkinFolder]) for web.config and delete it if exits. You can send me(a [dot] samarian [at] gmail [dot] com) your site url to look at it.

 

9/24/2011 12:11:20 PM
Gravatar
Total Posts 36

Re: Configuration Error - Application error when trying to browse site - 500.19 - Help

Hi Asad, 

I do not see any web.config files in /Data/Sites/1/skins, I do see some test.config files in various folders.  I'll send you the ural of the site.

Thanks.

9/24/2011 12:36:57 PM
Gravatar
Total Posts 36

Re: Configuration Error - Application error when trying to browse site - 500.19 - Help

Ok while looking in the data folder I found the log file and here are the contents reapeated over and over again:

<configuration>
    <system.web>
        <httpHandlers>
            <add path="WebResource.axd" verb="GET" type="System.Web.Handlers.AssemblyResourceLoader" validate="True" />
        </httpHandlers>
    </system.web>
</configuration>
   at System.Web.Handlers.AssemblyResourceLoader.GetWebResourceUrlInternal(Assembly assembly, String resourceName, Boolean htmlEncoded, Boolean forSubstitution, IScriptManager scriptManager)
   at System.Web.Handlers.AssemblyResourceLoader.GetWebResourceUrl(Type type, String resourceName, Boolean htmlEncoded, IScriptManager scriptManager)
   at System.Web.UI.ClientScriptManager.GetWebResourceUrl(Page owner, Type type, String resourceName, Boolean htmlEncoded, IScriptManager scriptManager)
   at System.Web.UI.ClientScriptManager.RenderWebFormsScript(HtmlTextWriter writer)
   at System.Web.UI.Page.RenderWebFormsScript(HtmlTextWriter writer)
   at System.Web.UI.Page.BeginFormRender(HtmlTextWriter writer, String formUniqueID)
   at System.Web.UI.HtmlControls.HtmlForm.RenderChildren(HtmlTextWriter writer)
   at System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter writer)
   at System.Web.UI.HtmlControls.HtmlForm.Render(HtmlTextWriter output)
   at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)
   at System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter)
   at System.Web.UI.HtmlControls.HtmlForm.RenderControl(HtmlTextWriter writer)
   at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)
   at System.Web.UI.Control.RenderChildren(HtmlTextWriter writer)
   at System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter writer)
   at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)
   at System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter)
   at System.Web.UI.Control.RenderControl(HtmlTextWriter writer)
   at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)
   at System.Web.UI.Control.RenderChildren(HtmlTextWriter writer)
   at System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter writer)
   at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)
   at System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter)
   at System.Web.UI.Control.RenderControl(HtmlTextWriter writer)
   at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)
   at System.Web.UI.Control.RenderChildren(HtmlTextWriter writer)
   at System.Web.UI.Control.Render(HtmlTextWriter writer)
   at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)
   at System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter)
   at System.Web.UI.Control.RenderControl(HtmlTextWriter writer)
   at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)
   at System.Web.UI.Control.RenderChildren(HtmlTextWriter writer)
   at mojoPortal.Web.mojoBasePage.Render(HtmlTextWriter writer)
   at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)
   at System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter)
   at System.Web.UI.Control.RenderControl(HtmlTextWriter writer)
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
2011-09-24 18:23:45,267 ERROR mojoPortal.Web.Global - 84.241.34.194-en-US - /AccessDenied.aspx- Referrer(none)
System.InvalidOperationException: The WebResource.axd handler must be registered in the configuration to process this request.

9/24/2011 4:24:49 PM
Gravatar
Total Posts 18439

Re: Configuration Error - Application error when trying to browse site - 500.19 - Help

I would refer that error to your host.

System.InvalidOperationException: The WebResource.axd handler must be registered in the configuration to process this request.

To me it indicates something is messed up with the .NET installation on the server or the configuration for .NET on the site.

Hope that helps,

Joe

9/24/2011 10:26:13 PM
Gravatar
Total Posts 36

Re: Configuration Error - Application error when trying to browse site - 500.19 - Help

I believe you are right Joe.  Asad was nice enough to actually take a crack at it (Big Thanks to Asad) and could not get it to work either.  A summary googling the issue basically comes up with the following:

The problem occurs in ASP.net 4 Integrated mode and there are wildcard mappings in applicationhost.config file, one of the the main users of wildcat mappings is this Coldfusion handlers.  The wildcard mappings override the webresource.axd handler, thus wildcard mapings and asp.net4 integrated do not work together.  Microsoft has a hotfix to.net4 that solves this problem with ASp.Net4 Integrated.

1.  Fix:  Apply the .net 4.0 framework hotfix found at: http://support.microsoft.com/kb/2505146.  There are some prerequisite SP's and hotfixes that need to be installed before you do this.

2. Workaround 1: Lets you maintain .NET 4 Integrated mode:  Remove all the wild card mappings references (i.e.ColdFusion) from your applicationHost.config file in system32\inetsrv\config.   Alternatively if you need to keep those mappings you may do so using the example described by MS ASP.NEt developer Thomas Marquardt:" put ASP.NET and ColdFusion in separate applications and setting up the handler mappings so that ColdFusion is not mapped in the ASP.NET application and ASP.NET is not mapped in the ColdFusion application.  You can do this in the UI, or by editing applicationHost.config by hand and encapsulating the system.webServer/handlers section in a <location path="blahblah"> </location> section."

3.  Workaround 2: Switch App Pool to Classic mode.

9/24/2011 10:34:17 PM
Gravatar
Total Posts 36

Re: Configuration Error - Application error when trying to browse site - 500.19 - Help

Just for kicks, I played around with the web.config file a bit more, but now all I am getting in the log file is:

2011-09-24 23:28:37,835 INFO mojoPortal.Web.Global - Global.asax.cs Application_End
2011-09-24 23:29:05,235 INFO mojoPortal.Web.Global - Application Started.
2011-09-24 23:55:57,638 INFO mojoPortal.Web.Global - Global.asax.cs Application_End
2011-09-25 00:06:37,664 INFO mojoPortal.Web.Global - Application Started.
2011-09-25 00:12:26,804 INFO mojoPortal.Web.Global - Global.asax.cs Application_End
2011-09-25 00:23:39,318 INFO mojoPortal.Web.Global - Application Started.

I do not know if this is good or bad, but the site still does not work.  I'm thinking that this is a result off turning the custom error mode to off, or I broke the web.config. devil  No biggy I have plenty of backups and versions. laugh

9/25/2011 7:47:59 AM
Gravatar
Total Posts 18439

Re: Configuration Error - Application error when trying to browse site - 500.19 - Help

That is a good article, I didn't realize that ColdFusion was still used so widely but several times lately I've heard of problems from having ColdFusion installed. I've added an item with a link to this MS knowledge base article to our FAQ page.

Best,

Joe

9/25/2011 10:57:51 AM
Gravatar
Total Posts 36

Re: Configuration Error - Application error when trying to browse site - 500.19 - Help

Hi Joe,

It's any wildcard mappings, but considering MS first ID'd the problem 2 to 3 years ago, and just put out the hotfix this year, they must of thought that it was not much of a priority because there were not that many users effected.  So there could not have been that many Coldfusion mappings around.  Even now, the hotfix is only ofered for servers experiencing the problem.   I expect the host providers solution will be to switch the App Pool to Classic mode.smiley  If that does not work, I'm switching providers.  I'll keep you posted.

Again thanks a lot to you and Asad.

 

You must sign in to post in the forums. This thread is closed to new posts.