Server error in '/' application

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.
11/21/2008 10:23:24 PM
Gravatar
Total Posts 4

Server error in '/' application

hello all,

I am having issues getting mojoportal (newest postgres mono package) working on my server.  When I try to run the site i get this error

Server error in '/' application

--------------------------------------------------------------------------------

Description: Error processing request.
Error Message: HTTP 500.

Stack Trace: System.Configuration.ConfigurationErrorsException: Unrecognized configuration section <webParts> () (/var/www/asp/Web.config line 700)
at System.Configuration.ConfigInfo.ThrowException (System.String text, System.Xml.XmlTextReader reader) [0x00000]
at System.Configuration.SectionGroupInfo.ReadContent (System.Xml.XmlTextReader reader, System.Configuration.Configuration config, Boolean overrideAllowed, Boolean root) [0x00000]
at System.Configuration.SectionGroupInfo.ReadData (System.Configuration.Configuration config, System.Xml.XmlTextReader reader, Boolean overrideAllowed) [0x00000]
at System.Configuration.SectionGroupInfo.ReadContent (System.Xml.XmlTextReader reader, System.Configuration.Configuration config, Boolean overrideAllowed, Boolean root) [0x00000]
at System.Configuration.SectionGroupInfo.ReadRootData (System.Xml.XmlTextReader reader, System.Configuration.Configuration config, Boolean overrideAllowed) [0x00000]
at System.Configuration.Configuration.ReadConfigFile (System.Xml.XmlTextReader reader, System.String fileName) [0x00000]
at System.Configuration.Configuration.Load () [0x00000]
at System.Configuration.Configuration.Init (IConfigSystem system, System.String configPath, System.Configuration.Configuration parent) [0x00000]
at System.Configuration.Configuration..ctor (System.Configuration.InternalConfigurationSystem system, System.String locationSubPath) [0x00000]
at System.Configuration.InternalConfigurationFactory.Create (System.Type typeConfigHost, System.Object[] hostInitConfigurationParams) [0x00000]
at System.Web.Configuration.WebConfigurationManager.OpenWebConfiguration (System.String path, System.String site, System.String locationSubPath, System.String server, System.String userName, System.String password) [0x00000]
at System.Web.Configuration.WebConfigurationManager.OpenWebConfiguration (System.String path) [0x00000]
at System.Web.Configuration.WebConfigurationManager.GetSection (System.String sectionName) [0x00000]
at System.Web.HttpApplication.InitOnce (Boolean full_init) [0x00000]
at System.Web.HttpApplication.Start (System.Object x) [0x00000]
 

Please help me, I am just starting to learn how to use mono and also please forgive my novice questions.

11/22/2008 4:43:31 AM
Gravatar
Total Posts 18439

Re: Server error in '/' application

You can chop out the <webParts ... section from Web.config, but it doesn't complain about that on my system.

What version of Mono? What OS?

Joe

11/22/2008 2:43:24 PM
Gravatar
Total Posts 4

Re: Server error in '/' application

mojoportal-2-2-7-8-pgsqlreleasefiles-for-mono

debian etch 4.0

mono 1.2.2.1-1e

I choped out the web parts and now it has this error


System.Configuration.ConfigurationErrorsException: Unrecognized configuration section <mailSettings> () (/etc/mono/2.0/machine.config line 974)
at System.Configuration.ConfigInfo.ThrowException (System.String text, System.Xml.XmlTextReader reader) [0x00000]
at System.Configuration.SectionGroupInfo.ReadContent (System.Xml.XmlTextReader reader, System.Configuration.Configuration config, Boolean overrideAllowed, Boolean root) [0x00000]
at System.Configuration.SectionGroupInfo.ReadData (System.Configuration.Configuration config, System.Xml.XmlTextReader reader, Boolean overrideAllowed) [0x00000]
at System.Configuration.SectionGroupInfo.ReadContent (System.Xml.XmlTextReader reader, System.Configuration.Configuration config, Boolean overrideAllowed, Boolean root) [0x00000]
at System.Configuration.SectionGroupInfo.ReadRootData (System.Xml.XmlTextReader reader, System.Configuration.Configuration config, Boolean overrideAllowed) [0x00000]
at System.Configuration.Configuration.ReadConfigFile (System.Xml.XmlTextReader reader, System.String fileName) [0x00000]
at System.Configuration.Configuration.Load () [0x00000]
at System.Configuration.Configuration.Init (IConfigSystem system, System.String configPath, System.Configuration.Configuration parent) [0x00000]
at System.Configuration.Configuration..ctor (System.Configuration.InternalConfigurationSystem system, System.String locationSubPath) [0x00000]
at System.Configuration.InternalConfigurationFactory.Create (System.Type typeConfigHost, System.Object[] hostInitConfigurationParams) [0x00000]
at System.Web.Configuration.WebConfigurationManager.OpenWebConfiguration (System.String path, System.String site, System.String locationSubPath, System.String server, System.String userName, System.String password) [0x00000]
at System.Web.Configuration.WebConfigurationManager.OpenWebConfiguration (System.String path) [0x00000]
at System.Web.Configuration.WebConfigurationManager.GetSection (System.String sectionName) [0x00000]
at System.Web.HttpApplication.InitOnce (Boolean full_init) [0x00000]
at System.Web.HttpApplication.Start (System.Object x) [0x00000]

11/22/2008 2:50:55 PM
Gravatar
Total Posts 18439

Re: Server error in '/' application

That's a very old version of Mono, its not going to work.

Hope it helps,

Joe

11/23/2008 1:18:57 AM
Gravatar
Total Posts 4

Re: Server error in '/' application

figures debian would be out of date.  thanks for the help

11/23/2008 1:29:12 AM
Gravatar
Total Posts 4

Re: Server error in '/' application

ok I updated to 1.9.1 from backports and i get this error

Server error in '/' application

--------------------------------------------------------------------------------

Description: Error processing request.
Error Message: HTTP 500.

Stack Trace: System.Configuration.ConfigurationErrorsException: The section <siteMap> can't be defined in this configuration file (the allowed definition context is 'MachineToApplication'). () ( line 680)
at System.Configuration.SectionInfo.ReadData (System.Configuration.Configuration config, System.Xml.XmlTextReader reader, Boolean overrideAllowed) [0x00000]
at System.Configuration.SectionGroupInfo.ReadContent (System.Xml.XmlTextReader reader, System.Configuration.Configuration config, Boolean overrideAllowed, Boolean root) [0x00000]
at System.Configuration.SectionGroupInfo.ReadData (System.Configuration.Configuration config, System.Xml.XmlTextReader reader, Boolean overrideAllowed) [0x00000]
at System.Configuration.SectionGroupInfo.ReadContent (System.Xml.XmlTextReader reader, System.Configuration.Configuration config, Boolean overrideAllowed, Boolean root) [0x00000]
at System.Configuration.SectionGroupInfo.ReadRootData (System.Xml.XmlTextReader reader, System.Configuration.Configuration config, Boolean overrideAllowed) [0x00000]
at System.Configuration.Configuration.ReadConfigFile (System.Xml.XmlTextReader reader, System.String fileName) [0x00000]
at System.Configuration.Configuration.Load () [0x00000]
at System.Configuration.Configuration.Init (IConfigSystem system, System.String configPath, System.Configuration.Configuration parent) [0x00000]
at System.Configuration.Configuration..ctor (System.Configuration.InternalConfigurationSystem system, System.String locationSubPath) [0x00000]
at System.Configuration.InternalConfigurationFactory.Create (System.Type typeConfigHost, System.Object[] hostInitConfigurationParams) [0x00000]
at System.Web.Configuration.WebConfigurationManager.OpenWebConfiguration (System.String path, System.String site, System.String locationSubPath, System.String server, System.String userName, System.String password) [0x00000]
at System.Web.Configuration.WebConfigurationManager.OpenWebConfiguration (System.String path) [0x00000]
at System.Web.Configuration.WebConfigurationManager.GetSection (System.String sectionName) [0x00000]
at System.Web.HttpApplication.InitOnce (Boolean full_init) [0x00000]
at System.Web.HttpApplication.Start (System.Object x) [0x00000]
 

 

11/23/2008 4:33:13 AM
Gravatar
Total Posts 18439

Re: Server error in '/' application

You're still using the 1.1 framework profile, you need ASP.NET 2.0 profile. To do that you need to use xsp2 or mod-mono-server2

http://www.mono-project.com/ASP.NET

http://www.mono-project.com/Mod_mono

Hope it helps,

Joe

 

12/8/2008 10:15:21 PM
Gravatar
Total Posts 2

Re: Server error in '/' application

Greetings Joe,

I to am having a similiar issue. Running IIS6, ASPNET2.0, MSSQL5.0 Mojo2.2.2.7.9 on GoDaddy shared. Originally we had a list of security errors with MySQL and switched to MSSQL and this is all the error message. We've triple checked the custom error mode is off and with GoDaddy and they did not really have an explanation, hopefully you could help. Thank you in advance for your assistance.

 

Runtime Error
Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.

Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customErrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customErrors> tag should then have its "mode" attribute set to "Off".

<!-- Web.Config Configuration File -->

<configuration>
<system.web>
<customErrors mode="Off"/>
</system.web>
</configuration>


Notes: The current error page you are seeing can be replaced by a custom error page by modifying the "defaultRedirect" attribute of the application's <customErrors> configuration tag to point to a custom error page URL.

<!-- Web.Config Configuration File -->

<configuration>
<system.web>
<customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>
</system.web>
</configuration> 

12/9/2008 5:36:18 AM
Gravatar
Total Posts 18439

Re: Server error in '/' application

Hi,

What did you do to change to MS SQL? did you replace all the data dlls?

Did you run /Setup/Default.aspx with no errors?

Are there any errors logged in /Data/currentlog.config?

Your host should see an error in the event log that may give more clues. There is no way to solve it without knowing the error that is happening.

Hope it helps,

Joe

12/9/2008 6:08:10 PM
Gravatar
Total Posts 2

Re: Server error in '/' application

I'm bad, upon running Setup this is the error message below, running in Medium trust:

Required permissions cannot be acquired.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Security.Policy.PolicyException: Required permissions cannot be acquired.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[PolicyException: Required permissions cannot be acquired.]
System.Security.SecurityManager.ResolvePolicy(Evidence evidence, PermissionSet reqdPset, PermissionSet optPset, PermissionSet denyPset, PermissionSet& denied, Boolean checkExecutionPermission) +2770052
System.Security.SecurityManager.ResolvePolicy(Evidence evidence, PermissionSet reqdPset, PermissionSet optPset, PermissionSet denyPset, PermissionSet& denied, Int32& securitySpecialFlags, Boolean checkExecutionPermission) +57

[FileLoadException: Could not load file or assembly 'Mono.Data.Sqlite, Version=1.0.0.0, Culture=neutral, PublicKeyToken=138411798f1650f6' or one of its dependencies. Failed to grant minimum permission requests. (Exception from HRESULT: 0x80131417)]
System.Reflection.Assembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection) +0
System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection) +54
System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +211
System.Reflection.Assembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +141
System.Reflection.Assembly.Load(String assemblyString) +25
System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +32

[ConfigurationErrorsException: Could not load file or assembly 'Mono.Data.Sqlite, Version=1.0.0.0, Culture=neutral, PublicKeyToken=138411798f1650f6' or one of its dependencies. Failed to grant minimum permission requests. (Exception from HRESULT: 0x80131417)]
System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +596
System.Web.Configuration.CompilationSection.LoadAllAssembliesFromAppDomainBinDirectory() +211
System.Web.Configuration.CompilationSection.LoadAssembly(AssemblyInfo ai) +46
System.Web.Compilation.BuildManager.GetReferencedAssemblies(CompilationSection compConfig) +177
System.Web.Compilation.BuildProvidersCompiler..ctor(VirtualPath configPath, Boolean supportLocalization, String outputAssemblyName) +185
System.Web.Compilation.CodeDirectoryCompiler.GetCodeDirectoryAssembly(VirtualPath virtualDir, CodeDirectoryType dirType, String assemblyName, StringSet excludedSubdirectories, Boolean isDirectoryAllowed) +350
System.Web.Compilation.BuildManager.CompileCodeDirectory(VirtualPath virtualDir, CodeDirectoryType dirType, String assemblyName, StringSet excludedSubdirectories) +125
System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled() +378

[HttpException (0x80004005): Could not load file or assembly 'Mono.Data.Sqlite, Version=1.0.0.0, Culture=neutral, PublicKeyToken=138411798f1650f6' or one of its dependencies. Failed to grant minimum permission requests. (Exception from HRESULT: 0x80131417)]
System.Web.Compilation.BuildManager.ReportTopLevelCompilationException() +57
System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled() +612
System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters) +644

[HttpException (0x80004005): Could not load file or assembly 'Mono.Data.Sqlite, Version=1.0.0.0, Culture=neutral, PublicKeyToken=138411798f1650f6' or one of its dependencies. Failed to grant minimum permission requests. (Exception from HRESULT: 0x80131417)]
System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +3465427
System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +69
System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +279


Version Information: Microsoft .NET Framework Version:2.0.50727.1433; ASP.NET Version:2.0.50727.1433

 

Would this issue require the same resolve as (For medium trust set EnableOpenIDAuthentication = false in Web.config and delete the Janrain.OpenId.dll from the bin). As you described here? http://www.mojoportal.com/Forums/Thread.aspx?pageid=5&mid=34&ItemID=3&thread=1031&pagenumber=1

 

Or is this completely different? Once again, Thank you for all your assistance.

12/10/2008 4:39:01 AM
Gravatar
Total Posts 18439

Re: Server error in '/' application

Hi,

If the file Mono.Data.Sqlite.dll exists in the /bin folder, delete it.

Yes, it looks like you are running in medium trust and should configure for medium trust.

Hope it helps,

Joe

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