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.

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