Print Page | Close Window

Inheritance security rules violated

Printed From: IdeaBlade
Category: DevForce
Forum Name: DevForce 2010
Forum Discription: For .NET 4.0
URL: http://www.ideablade.com/forum/forum_posts.asp?TID=2427
Printed Date: 24-Apr-2024 at 3:38am


Topic: Inheritance security rules violated
Posted By: dcsoft
Subject: Inheritance security rules violated
Date Posted: 07-Jan-2011 at 8:09am
Hello, I am using DevForce 2010 6.0.7.0.  I am trying to deploy the standard DevForce Silverlight Business Application (JetPack Theme).  My ISP is OrcsWeb Shared Business Hosting plan.  

After a few rounds with tech support, the Silverlight app now successfully appears in a browser.  However, an IdeaBlade popup appears (almost illegible due to color choices) that says point browser to http://<mysite>/EntityService.svc for further debug info.  The browser shows:

---

Server Error in '/' Application.

Inheritance security rules violated while overriding member:
'IdeaBlade.Core.TracePublisher.InitializeLifetimeService()'. Security
accessibility of the overriding method must match the security accessibility
of the method being overriden.

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.TypeLoadException: Inheritance security rules
violated while overriding member:
'IdeaBlade.Core.TracePublisher.InitializeLifetimeService()'. Security
accessibility of the overriding method must match the security accessibility
of the method being overriden.

---

Searching the existing posts, I found this similar (though not identical) one:   http://www.ideablade.com/forum/forum_posts.asp?TID=1814 - http://www.ideablade.com/forum/forum_posts.asp?TID=1814

My first attempt was to add <trust level="Full" legacyCasModel="true" /> but due to the isp being a shared hosting plan, they do not allow full trust.  So is there a way for DevForce to operate on a partial trust basis and resolve this error?

Thanks,
David

PS I have examined a few ISP's (all with shared hosting plans) and must say I am dumbfounded they don't have a FAQ or step by step instructions on how to deploy a standard Silverlight app to their sites.  They say issues don't come up enough to justify the time to put a FAQ together.  Yet, I don't see how anyone can deploy Silverlight apps to these hosts without a lot of tech support.  It is one issue after another for me.  So is there any secret to how you all deploy your public facing Silverlight sites??




Replies:
Posted By: JoshO
Date Posted: 07-Jan-2011 at 8:01pm

I agree with you 100%, deploying on shared hosting providers is very frustrating. I have only successfully deployed to DiscountASP.net shared hosting. See this post - http://www.ideablade.com/forum/forum_posts.asp?TID=1434&KW=partial+trust&PID=5241&title=deploying-on-my-local-iis#5241 - http://www.ideablade.com/forum/forum_posts.asp?TID=1434&KW=partial+trust&PID=5241&title=deploying-on-my-local-iis#5241

We use dedicated and virtual dedicated servers from godaddy.com and maximumasp.com as well as our own servers.
 
Basically, DevForce currently requires "full trust" and the last time I tried, so do Silverlight apps using .NET RIA Services. I am the "IT guy" so I don't know if we plan on offering a "stripped down" down version of DevForce that will operate under "medium trust" or "partial trust" security especially since there are hosting providers that specialize in .NET deployments and support full trust.


Posted By: dcsoft
Date Posted: 07-Jan-2011 at 8:12pm
Thanks much for the reply, Josh.  It's exactly what I needed to know.  :-)

-- David



Print Page | Close Window