Login.aspx returns error on first use

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.
1/29/2010 5:49:57 PM
Gravatar
Total Posts 1

Login.aspx returns error on first use

It's ironic how the login.aspx and register.aspx fail at first install while all other pages outside /Secure/ directory is fine. Any pre-requisites to make this fully running? Error.htm?aspxerrorpath=/Secure/Login.aspx 

  ♦ Database access and connectionstrings are validated and working okay.

  ♦  Data folder permissions has been set to read/write.

  ♦  <add key="SSLIsAvailable" value="false" /> 

  ♦  Mojoportal installation is the only app running in the web server's wwwroot

I turned off <customErrors> and got the message below:

Exception Details: System.NotSupportedException: Collection is read-only.

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:


[NotSupportedException: Collection is read-only.]
System.Collections.Specialized.NameValueCollection.Set(String name, String value) +5259386
System.Web.HttpHeaderCollection.SynchronizeHeader(String name, String value) +32
System.Web.HttpRequest.SynchronizeHeader(String name, String value) +44
System.Web.Hosting.IIS7WorkerRequest.GetHeaderChanges(HttpContext ctx, Boolean forRequest) +941
System.Web.Hosting.IIS7WorkerRequest.SynchronizeVariables(HttpContext context) +52  

What else?

Best regards,
Jeremy

1/31/2010 1:51:25 PM
Gravatar
Total Posts 18439

Re: Login.aspx returns error on first use

This error is not happening in mojoPortal code, that stack trace does not show any mojoPortal code.

The only times  I have seen this error (I have heard of this error 2x before) is when you have an ISAPI Re-Write module installed on IIS 7 when it was designed for IIS 6. Those old dlls for IIS 6 write to the headers at a point in the request lifecycle that apparently IIS 7 does not like. So I suspect there is some re-write rule about login or register making it affect those urls.

If you have such a beast installed I would uninstall it and replace with the newer free Re-write module for IIS 7/7.5 prvided by the IIS Team via the Web Platform Installer.

Other than that make sure you are up to date on all windows updates and .NET 3.5 SP1.

Hope it helps,

Joe

6/22/2010 1:00:04 PM
Gravatar
Total Posts 2

Re: Login.aspx returns error on first use

Hello

I'm having the same issue,

 

Server Error in '/' Application.


Collection is read-only.

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.NotSupportedException: Collection is read-only.

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:

					[NotSupportedException: Collection is read-only.]
   System.Collections.Specialized.NameValueCollection.Set(String name, String value) +5317518
   System.Web.HttpHeaderCollection.SynchronizeHeader(String name, String value) +32
   System.Web.HttpRequest.SynchronizeHeader(String name, String value) +44
   System.Web.Hosting.IIS7WorkerRequest.GetHeaderChanges(HttpContext ctx, Boolean forRequest) +941
   System.Web.Hosting.IIS7WorkerRequest.SynchronizeVariables(HttpContext context) +52
   System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +477


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

 

 

This error happens when I try to login or whatever when you try to submit something.

Version : 2-3-4-5-mssql-net35

Operating System : XP

6/22/2010 2:19:16 PM
Gravatar
Total Posts 18439

Re: Login.aspx returns error on first use

Hi,

Possibly this is caused by some 3rd party ISAPI filter you may have installed.

The only suggestion I can think of other than that is to try using Medium Trust configuration

Hope it helps,

Joe

6/24/2010 11:28:19 AM
Gravatar
Total Posts 2

Re: Login.aspx returns error on first use

Thanks Joe using Web.mediumtrust  I can sign in

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