problem creating pdf document using filestream and storing in DB
I have an application that is creates a PDF and then stores it in a database. On my local machine everything works great, but it fails with the following error when on the production server. The file stream Line 66 is.
using (FileStream fs = File.Create(@"Eval" + DaRec + ".pdf"))
System.UnauthorizedAccessException: Access to the path 'C:\Windows\SysWOW64\inetsrv\Eval1200.pdf' is denied. at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) at 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, Boolean useLongPath, Boolean checkHost) at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize) at System.IO.File.Create(String path) at GeneratePDF.Page_Load(Object sender, EventArgs e) in c:\Projects\appcreate\GeneratePDF.aspx.cs:line 66
Although this error talked about access denied. My server person indicates the error may be towards a machine key issue based on info from the server error logs. He sent me this address based on that error.