Why does a .NET 4.0 program produce a system.unauthorizedAccess error on a Windows Server 2012 machine with .NET 4.5 installed? -


i'm getting error seems occur on machines running windows server 2012. application written .net 4.0 environment. hypothesis in .net 4.5 isn't playing nicely application. have no other ideas.

the application designed create pdf files. calling multiple instances of itself. main application call exe file set of parameters indicate pdf files create.

in way can call multiple exe files, speeding process. testing purposes, can disable calls outside programs changing setting create pdf files same program, more slowly.

the pdf files saved onto local hard drive. user should have access local drives , administrator privileges. there no hidden folders.

as main application goes call new instance of itself, crash. see picture below. either can't use exe file, or can't write local drive. i'm not sure which; if need create log will, can determine if application can't call exe file or if application can't write local drive.

however, if run same application administrator runs correctly. running administrator isn't viable solution long term. makes me think it's not .net issue.

another thing, if change setting create pdf files internally run correctly. doesn't require elevated privileges. proves user should have access drive.

the application has run stably(ish) months off older system windows server 2003 .net 4.0 installed.

i'm attempting move application new server, windows server 2012, default .net 4.5 or above installed.

i have no debugger on target system. runs fine on development environment , old production environment.

picture of error message box

the problem ended being referencing shared local drive. reason did not have permission on share drive write anything. changed output path \\"c-drive\ c:\... . fixed problem.


Comments

Popular posts from this blog

python - No exponential form of the z-axis in matplotlib-3D-plots -

php - Best Light server (Linux + Web server + Database) for Raspberry Pi -

c# - "Newtonsoft.Json.JsonSerializationException unable to find constructor to use for types" error when deserializing class -