Cannot perform CAS Asserts in Security Transparent methods

This is the place to report bugs and get support. When posting in this forum, please always provide as much detail as possible.

Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum, do not report it as a bug.

This is the place to report bugs and get support

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.
Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum.
This thread is closed to new posts. You must sign in to post in the forums.
3/7/2011 1:55:43 PM
Gravatar
Total Posts 4

Cannot perform CAS Asserts in Security Transparent methods

I upgraded mojoportal to last version but i still have problem with shared files module, even though it is Informacije o sustavu
mojoPortal Verzija 2.3.6.2 MSSQL
Operating System Microsoft Windows NT 5.2.3790 Service Pack 2
ASP.NET Info v4.0.30319 Running in Partial Trust
fixed. I folowed all medium trust tips but still the same.

InvalidOperationException: Cannot perform CAS Asserts in Security Transparent methods]
   Brettle.Web.NeatUpload.UploadModule._GetModules(HttpContext ctx) +40
   Brettle.Web.NeatUpload.UploadModule.get_InstalledModule() +186
   Brettle.Web.NeatUpload.UploadModule.get_IsEnabled() +47
   Brettle.Web.NeatUpload.FileControl.InitializeFiles() +142
   Brettle.Web.NeatUpload.FileControl.get_Files() +59
   Brettle.Web.NeatUpload.FileControl.OnUnload(EventArgs e) +79
   System.Web.UI.Control.UnloadRecursive(Boolean dispose) +241
   System.Web.UI.Control.UnloadRecursive(Boolean dispose) +175
   System.Web.UI.Control.UnloadRecursive(Boolean dispose) +175
   System.Web.UI.Control.UnloadRecursive(Boolean dispose) +175
   System.Web.UI.Control.UnloadRecursive(Boolean dispose) +175
   System.Web.UI.Control.UnloadRecursive(Boolean dispose) +175
   System.Web.UI.Control.UnloadRecursive(Boolean dispose) +175
   System.Web.UI.Control.UnloadRecursive(Boolean dispose) +175
   System.Web.UI.Control.UnloadRecursive(Boolean dispose) +175
   System.Web.UI.Control.UnloadRecursive(Boolean dispose) +175
   System.Web.UI.Control.UnloadRecursive(Boolean dispose) +175
   System.Web.UI.Page.UnloadRecursive(Boolean dispose) +23
   System.Web.UI.Page.ProcessRequestCleanup() +43
   System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +253
   System.Web.UI.Page.ProcessRequest() +78
   System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) +21
   System.Web.UI.Page.ProcessRequest(HttpContext context) +49
   ASP.default_aspx.ProcessRequest(HttpContext context) +4
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +100
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75
 

 

3/8/2011 12:57:55 PM
Gravatar
Total Posts 18439

Re: Cannot perform CAS Asserts in Security Transparent methods

Hi,

Where are you hosted?

I've seen this error when using Rackspace Cloud hosting, but I'm not able to reproduce it on my machine under medium trust, so I suspect it is something incompatible with the way Rackspace Cloud and other "Cloud" host providers work. I'm not sure what the specific cause is or how to solve it.

Best,

Joe

3/8/2011 2:27:05 PM
Gravatar
Total Posts 4

Re: Cannot perform CAS Asserts in Security Transparent methods

I can give you access that you try. I asked admin of that server and he told me it is running in asp.net "Medium trust compliant mode". I can create admin accont and give it to you if you are interested

3/23/2011 4:07:34 AM
Gravatar
Total Posts 4

Re: Cannot perform CAS Asserts in Security Transparent methods

do you solve this problem? how? i have the same problem when i want upload some file... server admin told me its MVC 3.0. is it any way to change upload manager??

 

thank you

3/23/2011 1:20:45 PM
Gravatar
Total Posts 4

Re: Cannot perform CAS Asserts in Security Transparent methods

I didn't solved it. I still have a problem. I found out that my hosting provider use IIS 6, older architecture, and he cant change some thing mojo need to let it work. It is mainly questiuon of asp trust level settings.

3/27/2011 8:34:05 AM
Gravatar
Total Posts 18439

Re: Cannot perform CAS Asserts in Security Transparent methods

although I have not been able to produce this error myself under medium trust, I have added handling for this error in NeatUpload that "should" solve the problem. This will be in the next release of mojoPortal, coming later this week.

Best,

Joe

3/30/2011 9:13:34 AM
Gravatar
Total Posts 18439

Re: Cannot perform CAS Asserts in Security Transparent methods

mojoPortal 2.3.6.4 is now available and this problem "may" be fixed with the updated version of NeatUpload.

Best,

Joe

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