Questions tagged [medium-trust]

Medium trust is the default trust level in ASP.NET. It prevents applications from accessing shared system resources and eliminates the potential for application interference.

Filter by
Sorted by
Tagged with
1 vote
0 answers
139 views

how can i change my application trust level to medium level?

I bought an hosting provides medium trust level. And i try to make a web site. i couldn't make it work in my host location. I change the trust level in the iis manager. I deploy the project and ...
Handelika's user avatar
  • 196
1 vote
1 answer
122 views

Using NServiceBus in Partial Trust Application

We are trying to send NServiceBus messages from a Microsoft Dynamics CRM plugin and running into issues like this: Attempt by security transparent method [Our_Namespace].GetStandardBus(System.String)'...
Mark's user avatar
  • 11
0 votes
2 answers
17k views

System.Security.Permissions.FileIOPermission Error When Trying to Upload a File Based on Trust Levels

I am developing a web application on Visual Studio 2013. In my application, users are able to upload images(saving to computer's file system for local, saving to server's file system after publishing)....
Ömer Kaya's user avatar
3 votes
0 answers
262 views

Asp.Net MVC Applictaion Not running on Medium Trust Level [duplicate]

Trying to deploy Asp.net MVC application on Big-rock hosting Server but Big-rock hosting Server not allow <trust level="Full"/>.Application properly run on my local machine with <trust level="...
Ankush Guhe's user avatar
0 votes
2 answers
962 views

Running ASP.NET MVC on Meduim-Trust environment

I am newbie to ASP.NET MVC, I developed a new web application using ASP.NET MVC, Entity Framework on .NET 4.5 and it is working just fine. When trying to deploy onto a shared hosting server, I got an ...
Ahmad Ghuniam's user avatar
0 votes
1 answer
642 views

How to set trust level for complete asp.net web application?

I need to set the trust level of a sample asp.net web application so that my hosting provider can support it. I changed the trust level in the web.config but that doesn't seem to work. I have been ...
who-aditya-nawandar's user avatar
0 votes
0 answers
633 views

MVC 5 Website - Shared Hosting - Medium Trust

I recently hosted an asp.net MVC 5 website on shared hosting of hostgator. Its throwing me security errors. I contacted the support and they replied me that the website has to be Medium trust. They ...
Fayaz's user avatar
  • 5
1 vote
1 answer
2k views

How to set trust level?

My web hosting's configurations is requesting me to create a trust nevel and set it to menimum to my web site. I did some search and found on ASP.NET 4+ it's done by adding this to web.config: <...
Jack's user avatar
  • 16.3k
2 votes
0 answers
707 views

ASP.NET Trust Level other than Full

Background My company hired a security firm to assess our website. One of their recommendations was to run the site under minimal trust. I believe this will be too restrictive, but I would like to ...
Mark Good's user avatar
  • 4,269
0 votes
1 answer
1k views

Trust level for components of the Default ASP.NET MVC project in VS 2015? [duplicate]

I am having problems with required trust level with my web host using an ASP.NET MVC application created in VS 2015. So I created a "dummy" application from the template (none of my own code - just ...
user5719373's user avatar
0 votes
1 answer
217 views

Is it possible to grant Full Trust to url within Medium Trust Web site

I'm using Dlls (Cells & PDF) from Aspose and ran into permission issue because the site must be set to Medium Trust while the DLLs requires Full Trust. I have attempted to different method to ...
devwithabeer's user avatar
0 votes
1 answer
309 views

crystal report trust level issue

I have developed my application in which I'm using crystal reports. When i run the application in my system the crystal reports runs fine. But when i change my trust level to Medium i am getting an ...
Abdulla Jidda's user avatar
0 votes
1 answer
197 views

I/O permission issue in medium trust environment in ASP.Net hosting

I have hosted my site and API on share hosting plan(on bigrock server - hosting provider company) Till now i have full trust so i never faced issue while storing and retrieving image from/to server. ...
XeS's user avatar
  • 61
0 votes
1 answer
56 views

Does ELMAH works in medium trust environment

I've a ASP.NET MVC website running successfully for a while. The hosting company suddenly changed the trust level to medium and I'm started to see 503 errors strangely. I'm using Fluent NHibernate and ...
VJAI's user avatar
  • 32.3k
0 votes
1 answer
212 views

Google OAuth 2.0 in .NET4 fails to create ServiceAccount on medium trust level server

I would like to read some calendar events inside a .NET4.0 web service. Because no user is involved I used a service account authorization method. It works perfectly on my local machine. But when I ...
Armin Müller's user avatar
0 votes
1 answer
2k views

Should OutputCacheProfiles (in webconfig) be accessible under a medium trust environment?

I'm trying to use DevTrends Donut Caching in an MVC app in a shared hosting environment. When I upload the app I get this error: System.Security.SecurityException: MvcDonutCaching does not have ...
Martin Hansen Lennox's user avatar
1 vote
0 answers
123 views

Changing from Full Trust to Medium Trust

I have an ASP.NET website which run under .NET3.5 full trust for years. Now I am moving it to another hosting provider. I changed the project to .NET 4.0 and the provider is using medium trust. This ...
Martin Mulder's user avatar
0 votes
1 answer
97 views

Create AppDomain in restricted security environment

In .net4 the AppDomain.Create methods are marked with the SecuritySafeCritical attribute. When these methods are invoked inside an environment with medium trust level a SecurityException is thrown (...
Thanasis Ioannidis's user avatar
0 votes
1 answer
216 views

Moving from Castle Windsor to an IoC that runs under Medium Trust

I've inherited a project which was running on a host who had set up Full Trust, as this is required for the Castle Windsor IoC. The new host, however, will only run in Medium Trust (as do most shared ...
ingredient_15939's user avatar
0 votes
1 answer
552 views

Run Umbraco 6.x in Medium Trust / Shared hosting environment

I have a Umbraco 6.1.5 project, and i want to deploy it to a shared hosting environment. I read that Umbraco 6 can run in Medium Trust, but i cant find much more info than just that one sentence. ...
Tys's user avatar
  • 3,592
2 votes
2 answers
6k views

.NET 4.0 Medium Trust Level and MYSQL connection

I have a problem and I think a proper answer will help a lot of people which is having same problem.Because it is a common and not well answered problem. The problem is about "Medium trust level" ...
Berhan Cem Özelbiçer's user avatar
0 votes
1 answer
454 views

Where can I download Ninject with Medium Trust for ASP .NET 4.5

My site is working good on my local. but on Godady server it is throwing Method Access Exception : I found this article. Ninject error on deployment So Now I found that Godady allows medium Trust ...
Inder's user avatar
  • 29
2 votes
0 answers
110 views

Checking user access permissions to a virtual path in medium trust

If I wanted to check whether the current user has access to a given url in full trust I can use code like this. IPrincipal user = context.User ?? new GenericPrincipal(new ...
James South's user avatar
  • 10.2k
45 votes
2 answers
19k views

Is trying to develop for Medium Trust a lost cause?

I started developing a new MVC app with Entity Framework code-first and Unity for dependency injection. I used EF5 and Unity because I thought they were supposed to work in Medium Trust. However, when ...
Sam's user avatar
  • 9,963
1 vote
2 answers
2k views

Save file to a folder in the website in medium trust in ASP.NET

In my website I save images to a folder(Photos) in code-behind by calling ImageUploadControl.PostedFile.SaveAs(HttpContext.Current.Server.MapPath("~/Photos/" + Name + ext)); which throws an error '...
Ashwin Singh's user avatar
  • 7,227
8 votes
1 answer
478 views

System.Web.Providers doesn't work in medium trust

I have an ASP.NET WebForms app using Microsoft ASP.NET Universal Providers (NuGet) for membership and roles. Under full trust everything works fine, but when I edit web.config to specify medium trust ...
Roger's user avatar
  • 2,178
3 votes
0 answers
311 views

Digital Signing/Decrypting with asymmetric key in medium trust .NET 4.0

I have some files which I would like to sign digitally with my own certificate in ASP:NET. In 3.5 .NET (medium trust) I managed to do this, but when switching to .NET 4.0 in medium trust I have the ...
JJschk's user avatar
  • 431
1 vote
1 answer
675 views

orchard in a shared hosting with medium trust

I've installed our Orchard 1.2.41 based website on a shared hosting with medium trust. The site won't work, complaining with the infamous error: Exception Details: System.Security.SecurityException: ...
pomarc's user avatar
  • 2,234
8 votes
1 answer
4k views

Compiling MVC application for Medium Trust Level

I am trying to deploy an ASP.NET MVC4 site to a HostGator shared windows host. I am running into some trouble when their technical support tells me I have to compile my application for medium security....
sec_goat's user avatar
  • 1,272
3 votes
0 answers
530 views

Ninject and trust level medium

I am trying to host my asp.net mvc 4 web app using hostgator. The problem at hand is the fact that the plan I am using only allows for the medium trust level. My application currently has the Ninject ...
Bob's user avatar
  • 841
0 votes
1 answer
655 views

Ninject + MVC3 + Medium Trust Environment

Ok, read a lot of questions about this, but really didn't see any solution that works for me... So, any help will be very apreciated. I'm running a MVC3 web application with Ninject installed through ...
Marcelo Myara's user avatar
0 votes
2 answers
357 views

Unable To Edit AppSetting In Web.Config In Medium Trust?

I am trying to update an appSetting in the web.config in an MVC3 app running in medium trust. It fails as soon as I try to call? var config = WebConfigurationManager.OpenWebConfiguration("~"); Tried ...
YodasMyDad's user avatar
  • 9,328
0 votes
2 answers
511 views

nHibernate 3.3.1 System.Security.Permissions.ReflectionPermission Error

I am trying to get my web application written in ASP.NET 4.0 working locally using medium trust. I'm using Go Daddy as web host and they use medium trust on their shared hosts. I've read that ...
ponyboy_nd's user avatar
1 vote
1 answer
1k views

Running Ninject 3 on medium trust level

I've an ASP.NET MVC3 application with Ninject 3. The Ninject 3 was installed using NuGet, and now I'm trying to publish this application on a host that uses medium trust level. So after I searched on ...
Leonardo Lima's user avatar
2 votes
4 answers
771 views

NHibernate 3.3.1 with Medium Trust error

I'm using NHibernate 3.3.1 in medium trust. It throw a Security Exception. In the NHibernate 3.3.1 say that it is compatible with medium trust. Has it any prerequisite?
Patrick Coelho's user avatar
-1 votes
1 answer
454 views

Security Exception with medium trust, ninject and entity framework

I keep getting this exception whenever I try running my project in medium trust. The project is MVC Forum, and even though I don't need to run any of my own sites in medium trust, I figure I better ...
Steen Tøttrup's user avatar
0 votes
1 answer
278 views

Asp Classic with ADODB needs to migrate to Medium Trust

I have a very large project written largely in ASP classic. It uses ADODB (recordsets mostly) in several thousand files. It is mandatory to move the project to Medium trust, although that can be ...
Eric Nielsen's user avatar
0 votes
1 answer
301 views

examine site search with umbraco 4.7 and medium trust

I'm trying to use umbraco examine for the site search. It works fine on the development machine, however, on the shared host, the indexes are not being built. the shared host uses medium trust. I've ...
user560498's user avatar
2 votes
2 answers
591 views

LDAP in medium trust

I've have a solution with one website and several projects. The projects all have the AllowPartiallyTrustedCallers attribute and are strongly-named. The site works in full trust. However, after ...
eych's user avatar
  • 1,262
1 vote
1 answer
239 views

Cassette throwing Security Exception

I've published an MVC 3 web application using Cassette on a Windows 2008 server with medium-trust security level (the hosting company doesn't allow me to change the security level). According to this ...
peflorencio's user avatar
  • 2,292
2 votes
1 answer
747 views

Get NHibernate working on shared hosting with medium trust

A friend made a ASP.NET website work with NHibernate locally on his computer, and on my computer after I downloaded it from a SVN repository. However, we're trying to host it on a shared hosting ...
MarioDS's user avatar
  • 12.9k
1 vote
1 answer
81 views

Castle Active Record in Medium Trust?

I have downloaded the Active Record and NHibernate and compiled both with the flag "AllowPartiallyTrustedCallers". But I'm still getting errors in the method "ActiveRecordStarter.Initialize" on the "...
diegodsp's user avatar
  • 881
0 votes
0 answers
187 views

EF4 mvc .net 4 medium trust MetadataException

I have an MVC .NET 4.0 web application which is using an EF4 Entity Model (database generated). In full trust all works ok, but in medium trust this exception is thrown when code is trying to access a ...
jaap's user avatar
  • 373
0 votes
1 answer
267 views

Linq to SQL with medium trust level

I used Linq to SQL in an ASP.NET app that I now need to deploy on a server. Unfortunately, the hosting sever can only offer a medium level trust. My app crashes not having permission of type ...
morsanu's user avatar
  • 975
0 votes
1 answer
159 views

Can I run distributed transactions in ASP.NET in medium trust?

I was trying to determine the hardware and software requirements for developing an app and I was wondering if you can run a distributed transaction (through MSDTC) to two different SQL Server ...
Andrei Rînea's user avatar
1 vote
1 answer
376 views

ReflectionPermission problems when using Ninject 2.2, Fluent NHibernate in a Medium Trust environment

I am using (from Nuget packages) Ninject 2.2 and Fluent NHibernate 1.3 (NHibernate v3.2 under the hood) and I've hit a brick wall. I am using Fluent config to point to my database, mappings etc: var ...
Greg's user avatar
  • 31.2k
1 vote
2 answers
492 views

RavenDB EmbeddedDocumentStorage in Medium Trust

I'm trying to use RavenDB in Medium Trust, I would like to try the embedded model, since the hosting (cheap) I use will not allow to install a service. My code to initialize is the following: private ...
Felice Pollano's user avatar
2 votes
1 answer
263 views

Possible to run a C++ dll in a medium trust environment?

I have an issue with an open source C++ project that I have been using where when I run it on my development machine (full trust) it works fine. When I deploy it to my hosting environment my site ...
Abe Miessler's user avatar
0 votes
1 answer
147 views

Looking for an embedded database for medium trust

Is there some ( possibly OS ) embeddable DB engine file based ( like firebird or SQLite ) that can work on a Meidum Trust ASP.NET application ? Any no-sql solution for the same scenario ?
Felice Pollano's user avatar
1 vote
1 answer
1k views

How can I run an exe or windows service in medium trust?

I would like to run exes and Windows Services in Medium Trust, but all the literature I can find suggests using <system.web> <trust level="Medium"/> </system.web> for ASP.NET, ...
mcintyre321's user avatar
  • 13.1k