Click here to Skip to main content
15,891,629 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: using nested repeater Pin
Not Active23-Nov-10 5:28
mentorNot Active23-Nov-10 5:28 
QuestionHyper Reference Tag from SQL Procedure [modified] Pin
Satish_S16-Nov-10 23:51
Satish_S16-Nov-10 23:51 
AnswerRe: Hyper Reference Tag from SQL Procedure Pin
Satish_S17-Nov-10 22:32
Satish_S17-Nov-10 22:32 
QuestionInvalid typecast with checkbox checked attibute using DataBinder.Eval Pin
grewin16-Nov-10 23:45
grewin16-Nov-10 23:45 
AnswerRe: Invalid typecast with checkbox checked attibute using DataBinder.Eval Pin
C#Coudou26-Nov-10 16:59
C#Coudou26-Nov-10 16:59 
QuestionVS2008 SOAP Client - losing Session problem Pin
anbam16-Nov-10 22:34
anbam16-Nov-10 22:34 
Questionparent/child window Pin
C#Coudou16-Nov-10 21:00
C#Coudou16-Nov-10 21:00 
QuestionFileIOPermission exception with sharpPDF library writing PDF to child dir. Pin
David Hovey16-Nov-10 16:20
David Hovey16-Nov-10 16:20 
Having problems with free PDF library sharpPDF and allowing it to write PDF file to child directory within ASP.NET application. The PDF is created just fine in my development environment but when deployed to production application (on same computer just separate folder) I receive the below exception.

I tried several different things such as:

- adding <trust level="Full"> to my web.config file for the application.
- verifying NTFS security settings on app directory. Added IIS_WPG with modify privileges. IIS_USRS had modify access already. As well NETWORK SERVICE has modify privileges.


Let me know any suggestions.


Description: The application attempted to perform an operation not allowed by the security policy.  To grant this application the required permission please contact your system administrator or change the application's trust level in the configuration file. <br />
<br />
Exception Details: System.Security.SecurityException: Request for the permission of type 'System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.<br />
<br />
Source Error: <br />
<br />
<br />
Line 97:             }<br />
Line 98: <br />
Line 99:             pDoc.createPDF(strOutputFilename);<br />
Line 100:<br />
Line 101:            Response.ContentType = "Application/pdf";<br />
<br />
Source File: D:\TerritoryServer\Workspace\WebApp\rtest.aspx.cs    Line: 99 <br />
<br />
Stack Trace: <br />
<br />
<br />
[SecurityException: Request for the permission of type 'System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.]<br />
   System.Security.CodeAccessSecurityEngine.Check(Object demand, StackCrawlMark& stackMark, Boolean isPermSet) +0<br />
   System.Security.CodeAccessPermission.Demand() +54<br />
   System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy) +2103<br />
   System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy) +138<br />
   System.IO.FileStream..ctor(String path, FileMode mode) +91<br />
   sharpPDF.pdfDocument.createPDF(String outputFile) +82<br />
   TerritoryServer.rtest.Page_Load(Object sender, EventArgs e) in D:\TerritoryServer\Workspace\WebApp\rtest.aspx.cs:99<br />
   System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +25<br />
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +42<br />
   System.Web.UI.Control.OnLoad(EventArgs e) +132<br />
   TerritoryServer.SecurePage.OnLoad(EventArgs e) in D:\TerritoryServer\Workspace\WebApp\clsSecurePage.cs:92<br />
   System.Web.UI.Control.LoadRecursive() +66<br />
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +11045655<br />
   System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +11045194<br />
   System.Web.UI.Page.ProcessRequest() +91<br />
   System.Web.UI.Page.ProcessRequest(HttpContext context) +240<br />
   ASP.rtest_aspx.ProcessRequest(HttpContext context) in c:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\root\de52e180\1e8e29d2\App_Web_poyidmvv.3.cs:0<br />
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +599<br />
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +171

AnswerRe: FileIOPermission exception with sharpPDF library writing PDF to child dir. Pin
Eddy Vluggen17-Nov-10 0:16
professionalEddy Vluggen17-Nov-10 0:16 
GeneralRe: FileIOPermission exception with sharpPDF library writing PDF to child dir. Pin
David Hovey17-Nov-10 1:46
David Hovey17-Nov-10 1:46 
GeneralRe: FileIOPermission exception with sharpPDF library writing PDF to child dir. Pin
Eddy Vluggen17-Nov-10 4:53
professionalEddy Vluggen17-Nov-10 4:53 
AnswerRe: FileIOPermission exception with sharpPDF library writing PDF to child dir. Pin
T M Gray17-Nov-10 9:27
T M Gray17-Nov-10 9:27 
GeneralRe: FileIOPermission exception with sharpPDF library writing PDF to child dir. Pin
David Hovey17-Nov-10 17:34
David Hovey17-Nov-10 17:34 
Questionlink button under repeater Pin
Dhyanga16-Nov-10 7:14
Dhyanga16-Nov-10 7:14 
AnswerRe: link button under repeater Pin
Eddy Vluggen16-Nov-10 9:10
professionalEddy Vluggen16-Nov-10 9:10 
GeneralRe: link button under repeater Pin
Dhyanga16-Nov-10 9:17
Dhyanga16-Nov-10 9:17 
Questionsession start is getting fired on each page click Pin
raghvendrapanda16-Nov-10 1:20
raghvendrapanda16-Nov-10 1:20 
Questionregarding update panel event Pin
Tridip Bhattacharjee16-Nov-10 0:36
professionalTridip Bhattacharjee16-Nov-10 0:36 
Questionstandard mobile resolation Pin
behzadcp15-Nov-10 23:37
professionalbehzadcp15-Nov-10 23:37 
AnswerRe: standard mobile resolation Pin
NeverHeardOfMe16-Nov-10 1:44
NeverHeardOfMe16-Nov-10 1:44 
GeneralRe: standard mobile resolation Pin
RaviRanjanKr17-Dec-10 21:28
professionalRaviRanjanKr17-Dec-10 21:28 
QuestionmailMsg.BodyFormat Pin
padmanabhan N15-Nov-10 22:31
padmanabhan N15-Nov-10 22:31 
AnswerRe: mailMsg.BodyFormat Pin
NeverHeardOfMe15-Nov-10 23:13
NeverHeardOfMe15-Nov-10 23:13 
GeneralRe: mailMsg.BodyFormat Pin
padmanabhan N17-Nov-10 23:07
padmanabhan N17-Nov-10 23:07 
GeneralRe: mailMsg.BodyFormat Pin
NeverHeardOfMe17-Nov-10 23:30
NeverHeardOfMe17-Nov-10 23:30 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.