Strange exception (about webservices, temp directory and XML serialization)



When trying to use a webservices, not very often I obtain the following exception:

Server was unable to process request. ---> Access to the temp directory is denied. Identity 'NT AUTHORITY\NETWORK SERVICE' under which XmlSerializer is running does not have sufficient permission to access the temp directory. CodeDom will use the user account the process is using to do the compilation, so if the user doesnt have access to system temp directory, you will not be able to compile. Use Path.GetTempPath() API to find out the temp directory location.

I don't find any feedback or info on the web about this. If anyone could point me to any place to find out something so as to solve the problem.

Thanks in advance.

Regards,

Andrew [ knocte ]

P.S.: Using VS2005 (.NET 2.0) with WinXP Pro SP2.

--
.



Relevant Pages