MonoX support board

Start the conversation, ask questions and share tips and solutions with fellow developers.

Non-registered users can only browse through our support boards. Please register now if you want to post your questions. It takes a second and it is completely free. Alternatively, you can log in without registration using your credentials at major sites such as Google, Microsoft Live, OpenId, Facebook, LinkedIn or Yahoo.

Security exception (Closed) (Mono Support )

Viewed 126180 time(s), 14 post(s) 10/14/2013 9:24:11 PMby darryljneil
khorvat

khorvat

10/17/2013 10:03:53 AM
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
This content has not been rated yet. 
15993 Reputation 2214 Total posts
darryljneil

darryljneil

10/16/2013 2:21:13 PM
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.
This content has not been rated yet. 
207 Reputation 23 Total posts
khorvat

khorvat

10/14/2013 10:36:19 PM
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
This content has not been rated yet. 
15993 Reputation 2214 Total posts
darryljneil

darryljneil

10/15/2013 1:47:37 PM
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.
This content has not been rated yet. 
207 Reputation 23 Total posts
khorvat

khorvat

10/15/2013 1:59:16 PM
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
This content has not been rated yet. 
15993 Reputation 2214 Total posts
darryljneil

darryljneil

10/15/2013 2:08:32 PM
I've attached a screenshot of the error.
 
This content has not been rated yet. 
207 Reputation 23 Total posts
khorvat

khorvat

10/15/2013 3:09:01 PM
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
This content has not been rated yet. 
15993 Reputation 2214 Total posts
darryljneil

darryljneil

10/15/2013 10:43:53 PM
 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.
This content has not been rated yet. 
207 Reputation 23 Total posts
khorvat

khorvat

10/16/2013 7:09:22 AM
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
This content has not been rated yet. 
15993 Reputation 2214 Total posts
khorvat

khorvat

10/16/2013 8:14:11 AM
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
This content has not been rated yet. 
15993 Reputation 2214 Total posts
khorvat

khorvat

10/16/2013 8:16:51 AM
Also are you sure that all of the Session handling in the Page_Load, PopulateUsers & CheckQueryString is workign correctly on the production ?
This content has not been rated yet. 
15993 Reputation 2214 Total posts
1 2