medium-trust

How do you check if you are running in Medium Trust environment in .NET?

I am running a website on shared hosting at GoDaddy (not my choice, because it is always Medium Trust), and I have some advanced features that I would like to turn on if the application is run in High Trust. So would like to know, if there is an way to check if at runtime if the application is running in Medium Trust environment in .N...

Subsonic 3.0 Medium Trust Issue

Hi guys, I'm having an issue with running Subsonic in medium trust and don't know if i'm querying wrong - if there is some part of subsonic 3.0.3 that doesn't like medium trust can someone tell me? Someone else posted somethin similar a while ago and there was no real reply on whether it did exist or not (the bug). Rob said it had been ...

Graphs in ASP.NET Medium Trust

I've tried to use MSChart and ZedGraph but they both require Full Trust. Are there any other graphing libraries that I could use in Medium Trust webhosting? I have to note that I have very low ASP.NET knowledge so far. Thanks, Petr EDIT: At the end, ZedGraph seems to be running well in Medium Trust. I just added the following line to A...

ASP.Net Application Trust Medium File IO Outside Virtual Directory

I am trying to determine how suicidal this is... I have a hosting environment where a custom ASP.Net CMS application needs to access the files in the root folder of a website even though it is in a virtual folder so it can be shared accross many sites. I can modify the Medium trust on the server and came up with this... <IPermission c...

XmlSerializer under Medium trust bombs

I am having trouble using XmlSerializer with medium trust in my ASP.NET MVC 2 application. The stack trace is: [SecurityException: That assembly does not allow partially trusted callers.] Bactum.PracticeTesting.MultipleChoiceQuestion.set_Prompt(String value) +0 Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderQ...

trust medium in asp.net mvc

When i try to run my project in trust medium or high it says [PolicyException: Required permissions cannot be acquired.] [FileLoadException: Could not load file or assembly but i'm running all the assemblies in bin only. ...

How to prevent InvalidOperationException with XmlDataSource in medium trust for the same domain

I'm using an XmlDataSource to fetch an RSS feed on the same domain. Ever since my ISP moved to medium trust, that code is failing with a System.InvalidOperationException. Is there a way to fix this? ...

asp.net 1.0 website that is getting a 'does not allow partially trusted callers' error during sendmail.

I have an old asp.net 1.0 website that throws an error during the sending of email. The error: Exception Details: System.Security.SecurityException: That assembly does not allow partially trusted callers. Is there a way to fix this without recompiling or changing code? host doesnt' allow fulltrust. ...

How can I narrow down which call is making a fully trusted call?

My host only allows medium trusted web applications. I am getting this error: Exception Details: System.Security.SecurityException: That assembly does not allow partially trusted callers. I have the code, what should I change? I read I can add a attribute in each file: [assembly:AllowPartiallyTrustedCallers] but my solution has tons ...

ASP.NET - PDF Component in Medium Trust

Can anyone recommend some ASP.NET-compatible PDF Components that work in a medium trust environment? I read that ITextSharp works well, but coming from ABCPdf and ASPPdf, the thought of compiling the entire PDF in code is very daunting. Ideally I'd like to use something like wkhtmltopdf to simply convert HTML pages to PDFs (but of course...

How to mimick medium trust?

Is it possible to change my local dev environment (preferrably just a single IIS site) to work under medium trust? ...

Lucene.NET in medium trust

Does know how to make Lucene .NET 2.3.2 run in a medium trust environment? GoDaddy doesn't like it the way it is. ...

nhibernate Operation could destabilize the runtime.

Locally my site works, but at host I am getting the error: "Operation could destabilize the runtime." I am using nhibernate. I am using the repository pattern. [VerificationException: Operation could destabilize the runtime.] CategoryProxy..ctor() +6 [TargetInvocationException: Exception has been thrown by the target of an invocat...

Allowing partially trusted callers security exception is been thrown althought running on Full trust mode

Hey, While developing using ASP.net 2.0 (C#) and NHibernate 2.1.0 I am getting the error: System.TypeInitializationException: The type initializer for 'NHibernate.ByteCode.LinFu.ProxyFactory' threw an exception. ---> System.Security.SecurityException: That assembly does not allow partially trusted callers. This error is been thrown o...

SMO System.Security.SecurityException

Hello everybody I wrote a backup procedure using smo. this procedure works great on my dev box, but once deployed to the hosting company's web server it throws above exception ("System.Security.SecurityException: That assembly does not allow partially trusted callers.") I did some research on the subject and it seems that hosting compa...

Using .NET Entity Framework in Medium Trust Enviroment like Mosso/Rackspace Cloud Hosting

I have an application that is using .net's Entity Framework. This application runs fine on my local machine and my local server. However, trying to run the app on mosso which runs in medium trust returns an error. I am not sure how to appropriately use entity framework in medium trust. I have the entity model in a separate project ...

Which IOC runs in medium trust

Hi I am trying to get a website running with Mosso that has Castle Windsor as my IOC, however I am getting the following error. [SecurityException: That assembly does not allow partially trusted callers.] GoldMine.WindsorControllerFactory..ctor() in WindsorControllerFactory.cs:33 GoldMine.MvcApplication.Application_Start() in Glob...

APTCA SecurityException with ASP.NET Development Server running against machine-level Full-Trust

The strange thing is that, my teammates and I are faced with APTCA SecurityException randomly when running our ASP.NET MVC website against ASP.NET Development Server (local development). Machine-level web.config shows that trustLevel is, by default, "Full". There is no override in application-level web.config. The exception happens rando...

Entity Framework - Medium Trust

I'm trying to get the entity framework working in medium trust. I've tried splitting the files and using a separate assembly but I seem to have one problem after another. I moved the EDMX to a separate assembly, which causes a single .dll to be outpit to the sites /Bin directory. I'm referencing this as below from web.config. <add name...

NHibernate 2.1.2 in medium trust.

I'm trying to configure nhibernate 2.1.2 to run in medium trust, without any luck. I have tried follwing the suggestions to run in medium trust and pre-generating the proxies. I then tried to remove all references to lazy loading setting the default-lazy="false" on all classes and bags. However this threw an exception asking me to confi...