Mono Support New Registered users can not login. 4.5 (Closed)

Viewed 31403 time(s), 13 post(s), 10/21/2011 7:53:31 PM - by shawndg
10/21/2011 8:02:28 PM
1871 Reputation 252 Total posts

I am having a problem with new logins.

I extended the Monox - Registration a well back and had no problems untill I upgraded to 4.5.

Now all the users registering using my custom registration are not working..

after you login with one, the page forwards back to default.aspx but I am greeted with the following error msg.

Cannot set ExportMode after Load if not in shared mode or if there is no
WebPartManager or if the WebPart is outside of a Zone.

Users who already had accounts before the upgrade appear to work.

1
10/21/2011 8:01:48 PM
1871 Reputation 252 Total posts

Figured it out...

Here is the problem, and I think it may be a bug..

You must add the user to the users rule or else you will be greeted with a ugly error upon login..

Server Error in '/' Application.

Cannot set ExportMode after Load if not in shared mode or if there is no WebPartManager or if the WebPart is outside of a Zone.


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.InvalidOperationException:
Cannot set ExportMode after Load if not in shared mode or if there is
no WebPartManager or if the WebPart is outside of a Zone.

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:

[InvalidOperationException: Cannot set ExportMode after Load if not in shared mode or if there is no WebPartManager or if the WebPart is outside of a Zone.]
System.Web.UI.WebControls.WebParts.WebPart.set_ExportMode(WebPartExportMode value) +1240918
MonoSoftware.MonoX.BasePart.OnPreRender(EventArgs e) +162
MonoSoftware.MonoX.ModuleGallery.MonoXListModule.OnPreRender(EventArgs e) +38
System.Web.UI.Control.PreRenderRecursiveInternal() +103
System.Web.UI.Control.PreRenderRecursiveInternal() +175
System.Web.UI.WebControls.WebParts.WebPart.PreRenderRecursiveInternal() +42
System.Web.UI.Control.PreRenderRecursiveInternal() +175
System.Web.UI.Control.PreRenderRecursiveInternal() +175
System.Web.UI.Control.PreRenderRecursiveInternal() +175
System.Web.UI.Control.PreRenderRecursiveInternal() +175
System.Web.UI.Control.PreRenderRecursiveInternal() +175
System.Web.UI.Control.PreRenderRecursiveInternal() +175
System.Web.UI.Control.PreRenderRecursiveInternal() +175
System.Web.UI.Control.PreRenderRecursiveInternal() +175
System.Web.UI.Control.PreRenderRecursiveInternal() +175
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2496


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1

2
10/21/2011 8:27:12 PM
1871 Reputation 252 Total posts

More info..

In my web config I have..

<appSettings>
<add key="DefaultUserRoles" value="Users" />

So they should be added to it, but they are not..

maybe bug ?

3
10/22/2011 6:39:00 AM
15993 Reputation 2214 Total posts

Hi,

thanks we will take a look at the issue in Monday, generally there is an issue related to adding user to appSettings role.

Regards

4
10/24/2011 12:45:09 PM
15993 Reputation 2214 Total posts

Hi,

I have tested the issue and it is working fine, can you please check the MonoX logs / EventViewer and get back to us ?

Regards

5
10/24/2011 1:08:14 PM
1871 Reputation 252 Total posts

There are more issues..

Users who don't have the users rule are greeted with a runtime error upon login.

We have news writers who have their own custom rule, if we give them the users rule they then are denied proper rights.

Before, users never needed the users rule to login.. now if they dont have it they are greeted with a run time error =/

6
10/24/2011 1:26:56 PM
1871 Reputation 252 Total posts

Here is the log..

Event code: 3005
Event message: An unhandled exception has occurred.
Event time: 10/24/2011 9:23:17 AM
Event time (UTC): 10/24/2011 1:23:17 PM
Event ID: 91595c7798da4592adea5ee0f3c9d6a3
Event sequence: 180
Event occurrence: 1
Event detail code: 0

Application information:
Application domain: /LM/W3SVC/2/ROOT-1-129639353784803000
Trust level: Full
Application Virtual Path: /
Application Path: C:\#PittsburghSceneProd\
Machine name: SHAWN-PC

Process information:
Process ID: 5112
Process name: w3wp.exe
Account name: NT AUTHORITY\NETWORK SERVICE

Exception information:
Exception type: InvalidOperationException
Exception message: Cannot set ExportMode after Load if not in shared mode or if there is no WebPartManager or if the WebPart is outside of a Zone.
at System.Web.UI.WebControls.WebParts.WebPart.set_ExportMode(WebPartExportMode value)
at MonoSoftware.MonoX.BasePart.OnPreRender(EventArgs e)
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)



Request information:
Request URL: http://localhost/default.aspx
Request path: /default.aspx
User host address: ::1
User: k-mo
Is authenticated: True
Authentication Type: Forms
Thread account name: NT AUTHORITY\NETWORK SERVICE

Thread information:
Thread ID: 27
Thread account name: NT AUTHORITY\NETWORK SERVICE
Is impersonating: False
Stack trace: at System.Web.UI.WebControls.WebParts.WebPart.set_ExportMode(WebPartExportMode value)
at MonoSoftware.MonoX.BasePart.OnPreRender(EventArgs e)
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)


Custom event details:

7
10/24/2011 1:53:19 PM
15993 Reputation 2214 Total posts

Hi,

can you try to upgrade with the latest MonoX version that you can find attached (Nightly build) just o be sure that this isn't a bug that we had already handled.

Regards

8
10/27/2011 2:53:36 PM
1871 Reputation 252 Total posts

Ok I tried it and now I am getting a new error when even trying to navigate to the page.

Server Error in '/' Application.

Parser Error

Description: An error occurred during the parsing of
a resource required to service this request. Please review the
following specific parse error details and modify your source file
appropriately.


Parser Error Message: Could not load file or
assembly 'AjaxControlToolkit, Version=3.0.30930.28736, Culture=neutral,
PublicKeyToken=28f01b0e84b6d53e' or one of its dependencies. The located
assembly's manifest definition does not match the assembly reference.
(Exception from HRESULT: 0x80131040)

Looks like the AjaxControlToolkit is out of wack now...
do you guys have the dll version your using ?

9
10/27/2011 3:01:02 PM
15993 Reputation 2214 Total posts

Yes, here you are.

Regards

10
1 2
This is a demo site for MonoX. Please visit Mono Software for more info.