medium-trust

Using db4o with multiple application instances under medium trust

I recently stumbled over the object database engine db4o which I think looks really interesting. I would like to use it in an ASP.NET MVC application that will be deployed to a shared hosting environment under medium trust. Because of the trust level, I'm restricted to using db4o in embedded/in-process mode. That in itself should be no ...

What is Medium Trust in Asp.net?

What is Medium Trust in Asp.net? When should we use Medium Trust in Asp.net? ...

Can GhostScript run in Medium Trust?

I am using GhostScript to generate some thumbnails of PDF pages in an ASP.NET application. I have it wrapped in this library called GhostScriptSharp that just uses DllImport to call methods in the GhostScript DLL. It looks like this wont work on a medium trust hosting environment, either because of the fact that it is calling unmanaged...

Using fyiReporting in a medium trust host

Anyone knows if fyiReporting RDL reports require Full trust like RDLC or they can work in Medium trust? ...

changing oledb for medium trust hosts - quick solution?

A small website I did for a friend about 6-7 years ago is no longer working because the host is now medium trust and the app reads in a schedule via a .csv and using oledb. Here is the code string sConnectionString = "Provider=Microsoft.JET.OLEDB.4.0;" + @"Data Source=" + System.Web.HttpContext.Current.Request.PhysicalApplicationPath + ...

How do I load a file from bin folder in ASP.NET in medium trust

I need to load an xML file from the bin folder in ASP.NET (MVC, not that it would count). I can't get the bin folder path nor load the file otherwise.. I need to feed the following method : using(var file = System.IO.File.OpenRead(/* something */)) { } ...

ASP.NET + GoDaddy Free Hosting?

Has anyone successfully been able to deploy ASP.NET website to GoDaddy's free hosting? I am talking about free hosting that comes with a domain package from GoDaddy. The catch of the free hosting is having an annoying Google Ads banner in a frame on top of the page. I've searched Google, stackoverflow and GoDaddy forums but I can't find...

Security Exception when using Custom ASP.NET Healthmonitoring event in medium trust

Hi, I'm using custom healthmonitoring events in ASP.NET We recently moved to a new server with default High Trust Permissions. Literature says that healthmonitoring and custom events should work under Medium or higher trust (http://msdn.microsoft.com/en-us/library/bb398933.aspx). Problem is - it doesn't. In less than full trust I get a...

Convert (almost) any video file to FLV in a shared hosting medium trusted environment

I've been tasked with creating some YouTube like functionality for a client's web site. I tried going the ffmpeg route but the hosting environment needs full trust. Right now, they are using Rackspace Cloud Sites, and of course, they are medium trust. They have been with them for about a year and a half and they absolutely love them. D...

Medium-Trust File I/O permission

According to this MSDN article about medium trust, under medium-trust: FileIOPermission is restricted. This means you can only access files in your application's virtual directory hierarchy. Your application is granted Read, Write, Append, and PathDiscovery permissions for your application's virtual directory hierarchy. ...

Expression<TDelegate>.Compile in Medium Trust environment

When trying to compile an Expression in a medium trust web app I'm getting a MethodAccessException. Does anyone know of another way to compile an expression under medium trust or a workaround to avoid this exception? The code that throws the exception: Expression<Func<object>> efn = Expression.Lambda<Func<object>>(Expression.Conver...

DSOFile and Medium Trust

(C#, ASP.NET 3.5 Environment) I'm using Microsoft's DSOFile.dll for counting the pages in a word document (.doc format). When I deployed my application to a medium trust environment (GoDaddy) I got a security exception. I narrowed my web service down to the line which is causing the problem, and it looks like it takes place in the follow...

Medium Trust with ISerializable

I'm running a site in medium trust, one class implements ISerializable. Eberything works fine locally, but on the server, I get the error: Inheritance security rules violated while overriding member: 'User.GetObjectData(System.Runtime.Serialization.SerializationInfo, System.Runtime.Serialization.StreamingContext)'. Security accessibili...

How to run System.Web.DataVisualization in Medium Trust at on Rackspace Cloud Sites

Hi I am having problems getting Microsoft Charting: System.Web.DataVisualization.dll To work in the Medium Trust on Windows Server 2008 on IIS 7 Using .Net 3.5 In an environment at Rackspace on their Cloud Sites. I get this error message from the Rackspace hosting environment: Security Exception Description: The application att...

OleDbPermission and ASP.NET medium trust

Hi, I'm following this document in order to run my website in a medium trust environment. My web app uses OleDb, so I need to give it permission in medium trust. I've done everything that is in that article and it's still not working :( In my web_mediumtrust.config I've added the following security class: <SecurityClass Name="OleDbPer...

Using ELMAH in medium trust

Hi, I'm building an ASP.net mvc app, and am having some problems getting ELMAH deployed using xml logging to a medium trust server, though it works fine on my local machine. It keeps getting a 404 error. The problem might be that the host doesn't allow relative filepaths, so the "~/App_Data" doesn't work for logging. I switched tha...

MvcContrib.Castle Meduim Trust & Signed Assemblies

Hi I have a class library which references MvcContrib.Castle. My Assembly is signed, but will not compile error Error 129 Assembly generation failed -- Referenced assembly 'MvcContrib.Castle' does not have a strong name I have tried added to the AssemblyInfo.cs using System.Security; [assembly: AllowPartiallyTrustedCallers] the i...

ADO.Net Data Services Not Running in Medium Trust

I am trying to build a proof-of-concept on ADO.Net data services for my team, but I seem to be running into issues with my web server's medium trust settings. The data service is simple, just exposing a few tables as an example, and I am not using any service operations. Also, the service is the only endpoint in my project; I am not ru...

Can I run a new process from a medium-trust ASP.NET application?

I'm building an ASP.NET MVC site where I want to use OpenSTV to conduct polls. To run results through OpenSTV, I'd have to run the executable. Is that allowed from a medium-trust ASP.NET application? ...

What's a feasible method of implementing a "tasks" application that runs alongside an ASP.NET MVC site in Medium Trust?

I'm writing an ASP.NET MVC site where I need to have a "Tasks" application that runs alongside the website. Such a "Tasks" application would collect data at set intervals and insert it into the database. Of course, I could write a simple Console Application and use the Windows Task Scheduler to run it, but my site is being hosted by GoD...