Mono Support Security exception (Closed)

Viewed 174108 time(s), 14 post(s), 10/14/2013 9:24:11 PM - by darryljneil
10/17/2013 10:03:53 AM
15993 Reputation 2214 Total posts

Please send us the hosting specs so I can see if there is anything suspicious there.

Regarding the session and MonoX, you can safely use the Session in MonoX, what I was thinking is that you may be using WebFarm or some kind of cloud that can trigger that kind of exception if you didn't handle "cloud" scenarios ?

Could heavy reliance on the Session be an issue with our web parts and MonoX? I'm thinking no, but though it wise to ask now.
Regards

1
10/16/2013 2:21:13 PM
207 Reputation 23 Total posts

We've just pushed our MonoX site to a hosted server and are experiencing the same issue with any of our custom web parts. The error is below.

2013-10-14 09:02:35,669 [6] ERROR MonoX [74.95.116.201] - Error
System.Security.SecurityException: Security error.
   at MonoSoftware.MonoX.BasePage.OnInit(EventArgs e)
   at System.Web.UI.Control.InitRecursive(Control namingContainer)
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
The Zone of the assembly that failed was:
MyComputer
2013-10-14 09:02:40,591 [11] WARN  MonoX [74.95.116.201] - Login error: Username:  Pass: 
2013-10-14 09:10:08,685 [8] WARN  MonoX [74.95.116.201] - Login error: Username:  Pass: 
2013-10-14 09:10:23,357 [10] ERROR MonoX [74.95.116.201] - Error
System.Security.SecurityException: Security error.
   at MonoSoftware.MonoX.BasePage.OnInit(EventArgs e)
   at System.Web.UI.Control.InitRecursive(Control namingContainer)
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
The Zone of the assembly that failed was:
MyComputer


It seems that this error is a show-stopper for our web parts. Any help on this log message would be great.

2
10/14/2013 10:36:19 PM
15993 Reputation 2214 Total posts

Hi,

  In our experience there are no issues with custom  WebParts in production. Can you please confirm if MonoX built in parts are working? We need to pinpoint the issue?

Thanks

3
10/15/2013 1:47:37 PM
207 Reputation 23 Total posts

Yes, MonoX web parts are working. However, our custom web parts have been working on internal development servers for the last six months, until moving them to a hosting site.

4
10/15/2013 1:59:16 PM
15993 Reputation 2214 Total posts

Can you please provide us with the full stack trace so we can check that out, in the meanwhile can you please see if there is any functionality in your code inside every WebPart or your BasePart that could break on the production server ?

Regards

5
10/15/2013 2:08:32 PM
207 Reputation 23 Total posts

I've attached a screenshot of the error.
 

6
10/15/2013 3:09:01 PM
15993 Reputation 2214 Total posts

There can be a few things that can be in your way:

- please disclose the "DirectorManager...Page_Load" method code if possible, if not please consider sending this to my InMail ?
- does you pages inherit from MonoX BasePage ?
- did you turn personalization on/off on those pages ?
- do you have WebPart manager on the master page or page ?

Regards

7
10/15/2013 10:43:53 PM
207 Reputation 23 Total posts

 does you pages inherit from MonoX BasePage ?
Our template page inherits from MonoX.BasePage

- did you turn personalization on/off on those pages ?
No, we have not made any modification to personalization

- do you have WebPart manager on the master page or page ?
Our master pages inherit MonoX.Master, which does have a PortalWebPartManager defined in the markup

I'll email you a code sample tonight. Thank you for your help.

8
10/16/2013 7:09:22 AM
15993 Reputation 2214 Total posts

Thanks Darryl we are reviewing the code, one more question did you try to run the exact same version from production on your local machine and get the same error or not ?

Regards

9
10/16/2013 8:14:11 AM
15993 Reputation 2214 Total posts

One thing that I have noticed is that you didn't provide us with the same error, your first post shows the BasePage.OnInit error while second one shows the BasePart.OnLoad error can you please check this ?

Can you please provide us with:
- correct error that you get with full stack trace if possible
- check if you get the same error with the production app on your local environment 
- provide us with your production hosting environment specification

Regards

10
10/16/2013 8:16:51 AM
15993 Reputation 2214 Total posts

Also are you sure that all of the Session handling in the Page_Load, PopulateUsers & CheckQueryString is workign correctly on the production ?

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