error on web config section

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/4/2009 8:11:17 AM
Gravatar
Total Posts 1

error on web config section

WS 2003

SQL Express 2005

mojoportal-2-3-1-6

 

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: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS.

 

Source Error:

 

 

Line 709:

Line 710: -->

Line 711: <machineKey validationKey="55BA53B475CCAE0992D6BF9FE463A5E97F00C6C16DA3D7DF9202E560078AB501643C15514785FEE30FEF26FC27F5CE594B42FFCA55452EF90E8A056B4DAE9F39" decryptionKey="939232D527AC4CD3E449441FE887DA110A16C1A36924C424CBAAE3F00282436C" validation="SHA1" decryption="AES" />

Line 712: <!--

Line 713: The above key is better so I changed it, but leaving this one here

 

 

Source File: c:\inetpub\wwwroot\mojoportal\web.config Line: 711

 

 

 

Show Additional Configuration Errors:

 

 

It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS. (c:\inetpub\wwwroot\mojoportal\web.config line 766)

It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS. (c:\inetpub\wwwroot\mojoportal\web.config line 778)

It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS. (c:\inetpub\wwwroot\mojoportal\web.config line 784)

It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS. (c:\inetpub\wwwroot\mojoportal\web.config line 995)

It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS. (c:\inetpub\wwwroot\mojoportal\web.config line 1001)

It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS. (c:\inetpub\wwwroot\mojoportal\web.config line 1149)

It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS. (c:\inetpub\wwwroot\mojoportal\web.config line 1151)

It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS. (c:\inetpub\wwwroot\mojoportal\web.config line 1152)

 

 

 

 

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

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

9/4/2009 8:23:36 AM
Gravatar
Total Posts 18439

Re: error on web config section

Most likely you are running another .NET app in the root and running mojoportal in a virtual directory beneath it. In this case a machine key defined in the root level app interferes with the mojoportal one. There are ways around that kind of issue by wrapping the system.web section in a location element. Do a little searching and reading about the location elelment in web.config if that is your situation.

Its also possible that your machine.config does not allow machine key in web.config if some strict policy is being enforced.

Hope it helps,

Joe

3/3/2010 1:17:16 PM
Gravatar
Total Posts 2

Re: error on web config section

godaddy hosting account with II6 and ASP 3.5 sp1

mojoportal-2-3-3-9 mssql-deploymentfiles

 

I am having the same issue. I followed the below instructions:

# Copy your wwwroot mojoportal files to any folder it does not have to be root, a folder named mojoportal would be nice :)
# Upload using filezilla so you would know if any files had problems, its 8000 files strong and the built in
FTP client for Dreamweaver will take forever and you might never know what was uploaded or not.
# A better way might be to ZIP the files, you which to want to upload and use the function inside the HOSTING CONTROL CENTER to unzip the files again. This where much faster than uploading over 8000 files.
# Log on to godaddy.com and find your HOSTING CONTROL CENTER, click on YOUR FILES, on the right hand side put a
checkmark on your Data folder and select the permissions icon on the top. Uncheck Inherit and check write.
Very Important - put a check on Reset all children to inherit. then clik ok. Do the same to the folder
located the NeatUpload folder located on app_data\NeatUpload_Temp.
# Setup a MS SQL database on godaddy sorry I dont describe how.
Look for MSSQLConnectionString on the Web.config file and change it with your information it would look close
to this:
<add key="MSSQLConnectionString"
value="server=yourname.db.3888244.hostedresource.com;UID=username;PWD=password;database=username" />
# Next step is medium trust:
1.Rename Web.config file to Web.fulltrust.config
2.Rename Web.mediumtrust.config to Web.config
3.Delete DotNetOpenId.dll from the /bin folder
4.Make sure and visit your /Setup/Default.aspx page, it should tell you a setting you need to add to
Web.config for the search engine to get around a medium trust issue.
http://www.mojoportal.com/mediumtrust.aspx
# After setting your connection string and uploading the edited file, visit the web page at
http://yoursiterootordomainname/Setup/Default.aspx and mojoportal setup will proceed with installing the
tables and other database obejcts into your database.

 

I keep getting stuck when visiting rootdomain/wwwroot/Setup/Default.aspx page. I get the same machine key error.

3/3/2010 3:45:56 PM
Gravatar
Total Posts 2

Re: error on web config section

I figured it out I had to set my wwwroot folder as a application root in go daddy's IIS.

6/24/2010 9:57:20 AM
Gravatar
Total Posts 1

Re: error on web config section

tengo el mismo error y no se como Repararlo ??? help me!!!

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