Changing the webservice default temp directory?

J

jerry4

I'm getting the error:

Unable to generate a temporary class (result=1).
error CS2001: Source file 'C:\WINDOWS\TEMP\2dzvwfyi.0.cs' could not be
found
error CS2008: No inputs specified

It happens when the constructor for my webservice is called. I've
already figured out that I can give my user read/write access to c:
\windows\temp, but I'd prefer to tell the webservice to use my virtual
directory\temp for temp files.

Does anyone know of a way to do this?

Not sure if this is important, but this is a ASP.Net AJAX
ScriptService web service being called from client side javascript
code.

Thanks for any help!
 
T

Tiago Halm

I would say your webservice uses System.Xml because some features of .NET
serialization do use the %TEMP% directory for (de)serializing process.

However, you do not want to set IIS mapped folders as NTFS writable, this is
definitely a security risk. And, don't worry if another
serialization-dependent .NET app comes around and uses this %TEMP% folder
too. .NET assures that unique files are used when performing the
(de)serialization process.

Tiago Halm
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,482
Members
44,901
Latest member
Noble71S45

Latest Threads

Top