installation - help web.conf

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.
12/12/2008 9:05:41 AM
Gravatar
Total Posts 8

installation - help web.conf

Hello, helps me with web.conf

Used Suse 11

 

I go to setup xsp, mono is mod_mono in YAST

 

xsp.exe 1.9.1.0

Mono JIT compiler version 1.9.1 (tarball)

mod-mono-server.exe 1.9.1.0

 

My http.conf

Alias /test "/home/matheus/mojoportal"
MonoApplications "/test:/home/matheus/mojoportal"
<Location /test>
SetHandler mono
</Location>

My mod-mono.conf


<IfModule !mod_mono.c>
LoadModule mono_module /usr/lib/apache2/mod_mono.so
MonoAutoApplication enabled

AddType application/x-asp-net .aspx
AddType application/x-asp-net .asmx
AddType application/x-asp-net .ashx
AddType application/x-asp-net .asax
AddType application/x-asp-net .ascx
AddType application/x-asp-net .soap
AddType application/x-asp-net .rem
AddType application/x-asp-net .axd
AddType application/x-asp-net .m
AddType application/x-asp-net .cs
AddType application/x-asp-net .config
AddType application/x-asp-net .Config
AddType application/x-asp-net .dll
DirectoryIndex index.aspx
DirectoryIndex Default.aspx
DirectoryIndex default.aspx
</IfModule>

Error Occurred:

 

Server Error in '/test' Application

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

Unrecognized attribute. (/home/matheus/mojoportal/Web.config line 22)
Description: HTTP 500. Error processing request.

Stack Trace:

System.Configuration.ConfigurationException: Unrecognized attribute. (/home/matheus/mojoportal/Web.config line 22)
at System.Configuration.ConfigurationData.ThrowException (System.String text, System.Xml.XmlTextReader reader) [0x00000]
at System.Configuration.ConfigurationData.ReadSectionGroup (System.Xml.XmlTextReader reader, System.String configSection) [0x00000]
at System.Configuration.ConfigurationData.ReadSections (System.Xml.XmlTextReader reader, System.String configSection) [0x00000]
at System.Configuration.ConfigurationData.ReadConfigFile (System.Xml.XmlTextReader reader) [0x00000]
at System.Configuration.ConfigurationData.Load (System.String fileName) [0x00000]

--------------------------------------------------------------------------------
Version information: Mono Version: 1.1.4322.2032; ASP.NET Version: 1.1.4322.2032

 

Help me please,

Matheus

12/12/2008 9:11:54 AM
Gravatar
Total Posts 18439

Re: installation - help web.conf

Version information: Mono Version: 1.1.4322.2032; ASP.NET Version: 1.1.4322.2032

You need a newer version of Mono and you need to use 2.0 framework runtime not 1.1 (ie xsp2 and modmonoserver2 instead of xsp and modmonoserver) See the documentation on the Mono site.

Hope it helps,

Joe

12/12/2008 10:43:37 AM
Gravatar
Total Posts 8

Re: installation - help web.conf

 

I made the following alteration

/etc/apache2/httpd.conf

MonoServerPath /usr/bin/mod-mono-server2

 

I modified the version of the mod-mono-server, the following error this ocorrend,

 

Server Error in '/test' Application

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

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>

--------------------------------------------------------------------------------
Version information: Mono Version: 2.0.50727.42; ASP.NET Version: 2.0.50727.42

12/12/2008 10:53:23 AM
Gravatar
Total Posts 8

Re: installation - help web.conf

My web.conf

 

<!-- CUSTOM ERROR MESSAGES
Set customErrors mode="On" or "RemoteOnly" to enable custom error messages, "Off" to disable.
Add <error> tags for each of the errors you want to handle.

"On" Always display custom (friendly) messages.
"Off" Always display detailed ASP.NET error information.
"RemoteOnly" Display custom (friendly) messages only to users not running
on the local Web server. This setting is recommended for security purposes, so
that you do not display application detail information to remote clients.

-->
<!-- <customErrors mode="RemoteOnly" defaultRedirect="Error.htm"> -->
<customErrors mode="On" defaultRedirect="Error.htm">
<error statusCode="404" redirect="~/PageNotFound.aspx" />
</customErrors>

12/12/2008 11:20:23 AM
Gravatar
Total Posts 18439

Re: installation - help web.conf

You need to install the newest version of Mono, its very easy with Open Suse, check the Mono site for the installation url and use YAST.

Hope it helps,

Joe

12/15/2008 11:35:23 AM
Gravatar
Total Posts 8

Re: installation - help web.conf

Hello, Joe

I updating mono and the apache, now I am with the following error:

Apache/2.2.8 (Linux/SUSE)
Mono JIT compiler version 2.0.1 (tarball)
xsp2.exe 2.0.0.0
 

Server Error in '/mojoportal' Application

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

Unrecognized configuration section <serviceHostingEnvironment> (/srv/www/htdocs/mojoportal/web.config line 874)
Description: HTTP 400. Error processing request.

Stack Trace:

System.Configuration.ConfigurationErrorsException: Unrecognized configuration section <serviceHostingEnvironment> (/srv/www/htdocs/mojoportal/web.config line 874)
at System.Configuration.ConfigInfo.ThrowException (System.String text, System.Xml.XmlReader reader) [0x00000]
at System.Configuration.SectionGroupInfo.ReadContent (System.Xml.XmlReader reader, System.Configuration.Configuration config, Boolean overrideAllowed, Boolean root) [0x00000]
at System.Configuration.SectionGroupInfo.ReadData (System.Configuration.Configuration config, System.Xml.XmlReader reader, Boolean overrideAllowed) [0x00000]
at System.Configuration.SectionGroupInfo.ReadContent (System.Xml.XmlReader reader, System.Configuration.Configuration config, Boolean overrideAllowed, Boolean root) [0x00000]
at System.Configuration.SectionGroupInfo.ReadRootData (System.Xml.XmlReader reader, System.Configuration.Configuration config, Boolean overrideAllowed) [0x00000]
at System.Configuration.Configuration.ReadConfigFile (System.Xml.XmlReader 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]

--------------------------------------------------------------------------------
Version information: Mono Version: 2.0.50727.42; ASP.NET Version: 2.0.50727.42

help me please,

 

12/15/2008 1:23:16 PM
Gravatar
Total Posts 18439

Re: installation - help web.conf

That bug is fixed in Mono svn head, but for version 2, you can comment out the <serviceHostingEnvironment> section in Web.config.

Hope it helps,

Joe

12/17/2008 4:39:35 AM
Gravatar
Total Posts 8

Re: installation - help web.conf

it forgives more for the difficulty, the following error this happening

 

Server Error in '/mojoportal' Application

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

Could not load type 'mojoPortal.Web.MonoCompilationSection, mojoPortal.Web'.
Description: HTTP 500. Error processing request.

Stack Trace:

System.TypeLoadException: Could not load type 'mojoPortal.Web.MonoCompilationSection, mojoPortal.Web'.
at (wrapper managed-to-native) System.Type:internal_from_name (string,bool,bool)
at System.Type.GetType (System.String typeName, Boolean throwOnError) [0x00000]
at Mono.Web.Util.SettingsMapping.get_MapperType () [0x00000]
at Mono.Web.Util.SettingsMapping.MapSection (System.Object input, System.Type type) [0x00000]
at Mono.Web.Util.SettingsMappingManager.MapSection (System.Object input, System.Type type) [0x00000]
at Mono.Web.Util.SettingsMappingManager.MapSection (System.Object input) [0x00000]
at System.Web.Configuration.WebConfigurationManager.GetSection (System.String sectionName, System.String path) [0x00000]
at System.Web.Configuration.WebConfigurationManager.GetSection (System.String sectionName) [0x00000]
at System.Web.Compilation.AppResourcesAssemblyBuilder..ctor (System.String canonicAssemblyName, System.String baseAssemblyPath, System.Web.Compilation.AppResourcesCompiler appres) [0x00000]
at System.Web.Compilation.AppResourcesCompiler.CompileGlobal () [0x00000]
at System.Web.Compilation.AppResourcesCompiler.Compile () [0x00000]
at System.Web.HttpApplicationFactory.InitType (System.Web.HttpContext context) [0x00000]

--------------------------------------------------------------------------------
Version information: Mono Version: 2.0.50727.1433; ASP.NET Version: 2.0.50727.1433

 

which solution

Matheus,

 

12/17/2008 4:43:17 AM
Gravatar
Total Posts 8

Re: installation - help web.conf

 

remember the update

 

Mono JIT compiler version 2.2

xsp2.exe 2.2.0.0

MojoPortal 2.2.8.0

12/17/2008 7:14:38 AM
Gravatar
Total Posts 18439

Re: installation - help web.conf

I think you are using the windows build of mojoportal. You need to use the "for-mono" release files (see the list of files on the download page at Codeplex) . The Mono build includes mojoPortal.Web.MonoCompilationSection, the windows build does not.

Or, if you have MonoDevelop you can use the source code and build the mojoportal.mds solution.

Hope it helps,

Joe

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