CodeDom Security/Permission Issues
From: Troy (Troy_at_discussions.microsoft.com)
Date: 09/03/04
- Next message: Troy: "RE: CodeDom Security/Permission Issues"
- Previous message: Scott M.: "Re: General question"
- Next in thread: Troy: "RE: CodeDom Security/Permission Issues"
- Reply: Troy: "RE: CodeDom Security/Permission Issues"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 3 Sep 2004 12:03:02 -0700
Hello,
We have an application that uses CodeDom for dynamic in-memory complation of
code. The same code (library) is used by both an ASP.net web site and a
Windows Service. The code runs fine in the web environment, but I get file
IO errors related to temporary files when it is run in by the Service.
I realize that CodeDom has to create temporary files even when doing
in-memory compilation. However, by default, the service runs using the local
system account. So I would think it has the necessary priveledges. I have
also set it to run under the local Administrator account and various others,
to no avail.
If anyone has experienced this problem and/or knows a resolution, I would
really appreaciate the help. An example error description is copied below.
Thanks,
Troy
Message = System.IO.FileNotFoundException: Could not find file
"C:\WINDOWS\TEMP\0vseyis4.dll".
File name: "C:\WINDOWS\TEMP\0vseyis4.dll"
at System.IO.__Error.WinIOError(Int32 errorCode, String str)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess
access, FileShare share, Int32 bufferSize, Boolean useAsync, String msgPath,
Boolean bFromProxy)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess
access, FileShare share)
at System.CodeDom.Compiler.CodeCompiler.FromFileBatch(CompilerParameters
options, String[] fileNames)
at
System.CodeDom.Compiler.CodeCompiler.FromSourceBatch(CompilerParameters
options, String[] sources)
at System.CodeDom.Compiler.CodeCompiler.FromSource(CompilerParameters
options, String source)
at
System.CodeDom.Compiler.CodeCompiler.System.CodeDom.Compiler.ICodeCompiler.CompileAssemblyFromSource(CompilerParameters options, String source)
at Inginix.Deployment.Business.DataConditionDefinition.Compile()
- Next message: Troy: "RE: CodeDom Security/Permission Issues"
- Previous message: Scott M.: "Re: General question"
- Next in thread: Troy: "RE: CodeDom Security/Permission Issues"
- Reply: Troy: "RE: CodeDom Security/Permission Issues"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|