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 6:47:19 AM
Gravatar
Total Posts 36

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

Using:mojoportal-2-3-6-7-mssql-net40-deploymentfiles

Blacknight.com hosting

I am getting the the following web.config error when I attempt to brows the site after running the setup:

Server Error in '/' Application.
Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

Parser Error Message: There are multiple root elements. Line 85, position 3.

Source Error:

Line 83:     <add key="OpenIdRpxApplicationName" value=""/>
Line 84:     <add key="OpenIdRpxUseMappings" value="true"/>
Line 85: 
Line 86:     <!-- This file contains the RSA key used for our CryptoHelper. For best security, you should
Line 87:          generate your own RSA key in a different file, and then set the path to the file here.


Source File: C:\CustomerData\webspaces\webspace_00152178\wwwroot\noelogrady.ie\web.config    Line: 85

Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.237

I tried removing the space on line 85, but then the error just move down to another line, I then commented that line out, and the error moved to another line, so the problem appears to be actually running the web.config file not the errors that it is throwing.

The ISP setup the Webspace for ASP.NET 4 Integrated (see version above); running in a separate webspace, under full trust. They provided a folder with %mydomain% (see source above) name to upload the site to.  I FTP'd all the files under wwwroot folder of the deployment package to the %mydomain%.  I setup the db, obtained the connection string, and change the permissions on the data and appdata folders so the application user has RWE permissions.  I added the connection string to user.config.file and renamed the web.fulltrust.config to web config.

I then browsed to the setup default and the setup ran without errors, the connection string was fine, the db tables were created, the permissions were correct.  As a test I created an one page website index.html, gave it priority, placed it into the %mydomain% folder and I was able to browse it fine.  I have also deleted all the files reuploaded them again and set them up again.  No change.  I then then tried loading them all up to the webroot on the server and not use the %mydomain% folder, but the browser was not able to find the files, so the %mydomain% must have been setup as the root.

I have gone back and forth with the ISP and they have confirmed the webspace is 4.0 Intergrated and permission are fine.  They claim the problem appears to be in the web.config file.

I have pretty much tried everything I could think of.  Any help would be appreciated.

 

9/23/2011 6:57:11 AM
Gravatar
Total Posts 18439

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

Hi,

With this kind of error the line numbers are often misleading.

My first guess is that you have a typo somewhere in user.config like an extra angle bracket or a missing one or the typo could be in Web.config.

My second guess is that another web.config file is interfering, possibly there is a web.config file in the folder above where you have mojoPortal installed.

I would have thought that the wwwroot folder at your host would be the root of the site. When you ran the setup page was it running from http://yourdomain/Setup/Default.aspx or from http://yourdomain/somefolder/Setup/Default.aspx?

Hope that helps,

Joe

9/23/2011 7:49:09 AM
Gravatar
Total Posts 36

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

Thanks Joe,

It's running from http://yourdomain/Setup/Default.aspx.  I tried loading the site to the the hosts wwwroot, but the browser could not find any of the files in that location.  When I type mydomain into the browser it came up with files not found.  So the folder %mydomain% apparently acts like a root.  I never see the folder in the url. 

I did not make any changes to the web.config except turn off custom errors.  I copied it directly from the deployment file folder. 

I will redo the user.config just to make sure there it's ok.  They were a few changes in it, but since the connection string was working I thought it was ok, but there could be a problem there. 

 

9/23/2011 9:35:00 AM
Gravatar
Total Posts 36

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

Ok I created a new user.config file and the only change I made was to comment out the MSSQL sample string and insert the correct MSSQL string.  I touched the web.config and now I am not even getting the custom error messages, I only get the friendly error:

Server Error
500.19 - Server error: Data for this file is configured improperly.
The requested page cannot be accessed because of a configuration error.

Just for the heck of it I re-ran the Setup/default and everything is fine:

Probing system...
File system permissions ok.
MSSQL database connection ok.
database permissions are sufficient to alter schema.
database initial schema already exists.
database core schema is up to date.
1 site(s) found.
Configuring feature Html Content - 00:00:00.2968180
Configuring feature Site Statistics - 00:00:00.5780140
Configuring feature Web Part - 00:00:00.6405020 .......etc.

........Configuring feature Xml/Xsl - 00:00:04.0148540
Ensuring all features are installed in server admin sites... - 00:00:04.0929640
Setup is complete, click the link below to go to the home page.
Site Home Page

Database PlatformMSSQL
Version2.3.6.7
StatusYour installation is up to date.

9/23/2011 9:39:48 AM
Gravatar
Total Posts 18439

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

I would try uploading the Web.config file again. I've seen cases where xml files can get corrupted during ftp. I'd use a robust ftp client like FileZilla.

Hope that helps,

Joe

9/23/2011 10:45:00 AM
Gravatar
Total Posts 36

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

I have been reapplying it dozens of times I don't think that's it, but I'll try filezilla.  Here is the latest:

To get custom errors back I have to apply it in the user.config.  If I copy the custom error from the web.config and turn the mode to off I get:

We're sorry but a server error has occurred while trying to process your request.

The error has been logged and will be reviewed by our staff as soon as possible. It is possible that the error was just a momentary hiccup and you may wish to use the back button and try again or go back to the home page.

Is that the mojo custom error?

If I use the generic: <!--<customErrors mode="Off"/>

I now get this in the user config!

Server Error in '/' Application.
Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

Parser Error Message: Unrecognized element 'customErrors'.

Source Error:

Line 45:
Line 46: 
Line 47:  <customErrors mode="Off"/>
Line 48: 
Line 49:  


Source File: C:\CustomerData\webspaces\webspace_00152178\wwwroot\noelogrady.ie\user.config    Line: 47

 

If I try to change it in the web.config  I get the friendly 500.19 error.  So I assume it's not reading the web.config properly. 

 

Is there a very basic web.config file that has the bare minimum necessary to run available?  That way I can see if it something in web.config. 

Is there anything that I should un-comment in the web.config for asp.net4 integrated mode?

9/23/2011 11:01:32 AM
Gravatar
Total Posts 18439

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

The files included in the package are correct, if they are not working they are being changed

If you put customerrors section in user.config that will break it, the only thing that can go in user.config is things from the <appSettings section

anything else will break it

9/23/2011 11:23:37 AM
Gravatar
Total Posts 36

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

The only change I initially made was to add the connection string to the user.config.  That's it.  What is the difference between the web.config & web.fulltrust.config?  I used the fulltrust one, I'll try the regular one.  The filezilla ftp client had no effect.

 

The only thing I can think of is having then ISP set the webspace to ASP.Net4 Clasisic mode.  What capabilities do I lose in this mode?

9/23/2011 11:35:48 AM
Gravatar
Total Posts 18439

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

The only difference in the Web.fulltrust.config file is that NeatUpload is enabled, NeatUpload only works in full trust hosting but it provides a nice progress bar when uploading files. To use it you would need to rename the Web.config to Web.mediumtrust.config then rename Web.fulltrust.config to Web.config

mojoPortal should work fine with either an Integrated or a Classic app pool but Integrated is preferable so I wouldn't change that unless it is the only thing that solves it.

9/23/2011 11:48:18 AM
Gravatar
Total Posts 36

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

Thanks Joe,

At this point I have tried everything including contacting the developer smiley.  I am going to to request the change to ASP.Net classic mode, and if that does not work.  I will try a new provider. 

Will I have to redo the Mojo setup after the ISP switches the webspace to the classic mode? 

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.

 

9/26/2011 8:43:50 AM
Gravatar
Total Posts 36

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

The provider changed the App Pool to Classic, and the site now works. 

A couple of possible anomalies:

1.  When I click on the little question marks (i. e. help) I am directed to a separate static web page with the help info.  Is this behavior correct or should some type of js/ajax message box pop up?

2.  The Default.aspx does not open when I browse straight to mysite.ie, but when I explicitly type mysite.ie/default.aspx is works fine.  I have adjusted the default page priority on the host server so defaut.aspx is first, but that does not make a difference.  It's not a big thing and I will probably figure it out when I clean up all the junk that was created in attempts to get the site up.  It's actually desirable while I'm updating the site, but I am just wondering if this is an anomaly that might be peculiar to mojoPortal.

Just wanted to close the loop on this.

 

 

 

9/26/2011 9:02:55 AM
Gravatar
Total Posts 18439

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

1. It should open in a colorbox dialog. If you've upgraded from previous versions you may be missing the css for colorbox which would cause the problem you describe. See the sticky thread about important skin changes, specifically the part about colorbox.

2. no, nothing about mojoportal can affect the default document configuration in IIS. However no page should have /Default.aspx configured as its url in Page Settings because that is a real physical page that handles all requests for cms pages. So your home page should be like /home.aspx but because it is the first page in the site hierarchy it should also show that page when the url is /Default.aspx. See How mojoPortal Works for more detail. 

Hope that helps,

Joe

9/26/2011 1:28:55 PM
Gravatar
Total Posts 36

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

Hi Joe,

This was a new install of the latest version mojoportal-2-3-6-7-mssql-net40, not the upgrade.  Perhaps its a result of the Classic mode.  I've read some types of AJAX doesn't run in Classic mode.  I am using the viktopersson-hobbit_alt1 theme, but it's style.config looks fine.  I am getting a separate web page with just a white background.  So far, everything else seems to be working fine.   Thanks for the info.

Richard

9/26/2011 1:40:23 PM
Gravatar
Total Posts 18439

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

can you try it with other skins and see if you get the same result. I'm not aware of classic app pool having any effect on that, though I guess its possible.

9/26/2011 3:04:53 PM
Gravatar
Total Posts 36

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

Next Issue:  I changed the machine key with one generated by Mojo page, commented our the old key, pasted in the new key, and now I am getting the 500 error and cannot access Mojo and more, I tried putting back the old web.config, Passwords were set to clear mode. It's a no go. 

My wild guess is perhaps the IIS user or application user my be locked out, but I have no way to restart the site. Any ideas?.

Never mind I got this sorted.  I copied the full trust web.config from the installation files, opened the web.config in notepad, pasted the new machine key in the exact same space of the default machine key; uploaded it and it worked.  I'll just leave that here for anyone else who might have a similar issue.

I'll tell you; I learned a lot more that I really wanted to know about Mojo over the last few days.  One thing for sure, I won't be implementing and kind of DI composing in this web.config file. smiley

9/27/2011 8:13:18 PM
Gravatar
Total Posts 36

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

  I am not sure if this is a mojoPortal url remapping issue or a site configuration issue, but if I type www.mysite.ie I get a 500:19 server error, but if I type www.mysite.ie/home.aspx or www.mysite.ie/default.aspx the site comes up fine.  I looked at the /wwwroot/noelogrady.ie/Setup/initialcontent/pages and the 00001homepage.config looks fine. 

In the URL manager everything looks fine:

The www.mysite.ie maps to the home page

http://www.mysite.ie/home.aspx
maps to http://www.mysite.ie/Default.aspx?pageid=0 View Friendly Url

In my host server I have the default documents being set in this order:

home.aspx

default.aspx

But it does not seem to make a difference.

Just for a test I created an index.html file, placed it in the mysite root, and it found and displayed that without a problem.  I could probably easily fix it by creating a physical index file and just redirect it to the the home or default.aspx file, but that might break the multi-site capabilities.   I would rather get it setup correctly.

Any ideas are appreciated.

At least this thread into a real trouble shooting installation primer :) .

9/28/2011 9:22:09 AM
Gravatar
Total Posts 18439

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

home.aspx should not be a default document at all, the only one should be default.aspx, you should remove all of the default documents except for default.aspx

9/28/2011 10:36:13 AM
Gravatar
Total Posts 36

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

That wasn't it.  I already had the default.aspx setup as #1.   Anyway, I deleted all the other and left only the Default.aspx in the list and restarted the web site.  The behavior is the same.   It does not find the Default.aspx unless default.aspx or home.aspx is explicitly put into the url, although it has no problems finding static pages, placed in the root folder without explicitly stating them.  It's the strangest thing. 

9/28/2011 11:59:01 AM
Gravatar
Total Posts 18439

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

That is very strange, to me it is just more evidence that your host has some weird configuration going on. I think I would find a new host, you should not be having all these problems and you really should be able to use an Integrated app pool (though I don't think that has anything to do with the default document problem). 

Best,

Joe

9/29/2011 9:59:00 AM
Gravatar
Total Posts 36

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

We were able to resolve the url problem by:

1. commenting out the following lines in the web.config (It's already configured at the server level):

<defaultDocument>
      <files>
        <remove value="Default.aspx"/>
        <add value="Default.aspx"/>
      </files>
    </defaultDocument>

2. Resetting the Application pool.

The ul is working fine now e.g. www.mysite.ie  brings up the home page. 

Is commenting out this line OK?  I just want to make sure that this will not cause any issue with the site.  The site seems to working ok except for the help opening up in a separate page as discussed previously.

 

9/29/2011 10:01:32 AM
Gravatar
Total Posts 18439

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

sure that's alright as long as its working. seems strange that it would need to be commented out but its ok to comment it out.

Best,

Joe

9/29/2011 10:42:12 AM
Gravatar
Total Posts 36

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

Hi Joe,

I was finally dealing with the ISP's senior engineer and here is his explanation:

"You need to remove the default document details from the web.config file, this is handled from the control panel and you already have it set in the control panel.

Remove the content below from the web.config file and you should have no problems".

Well, he was correct, except it does not take effect until the application pool is reset.  Before reset 500 error on all Url's, I could not access the site at all,  after reset,  perfect.

Looks like we finally made over the finish line, albeit, about a week after we started.   I think this was the longest it has ever taken me to get a site up.. but I learned a few things.

Big thanks to you and Asad for all your support. 

Hopefully this thread might help others who might come across similar configuration issues, especially if using Blacknight shared hosting.

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