views:

16

answers:

0

Hi Overflowers, Hope somebody can help this poor distraught noob. I have inherited another devs app and I'm trying to add some much needed functionality to it. The issue in question is creating an Invoice from a crystal report that can be downloaded as a pdf. I got the code working in Visual Studio (It's a C# MVC application, built on top of a windows app with API calls) but when I tried deploying to my local test server I get:

[SecurityException: Request for the permission of type 'System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.]

I've granted Fulltrust to the application in IIS, I've also tried a number of things like adding a request for full trust in both the Global.asx and the custom assembly with the calling service/class in it all with no joy.

The app is split into multiple assemblies with a repository layer, service layer and the controllers and views all being in seperate assemblies (Most of which seems daft but I just inherited it and we are about to begin a rewrite once this work is finished, company political Dont ask :( )

Any help / suggestions much appreciated.