XMLSerializer and dependencies not found

The XMLSerializer needs permissions to the Windows\Temp directory to work as it compiles an assembly on the fly. Without permissions you may get file i/o exceptions raised during serialization.
Usually the error looks something like:
File or assembly name [tempfilename], or one of its dependencies, was not found.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.IO.FileNotFoundException: File or assembly name  [tempfilename], or one of its dependencies, was not found.

This is common in an ASP.NET application where you are running without permissions to Windows\Temp but can occur on any application that has this characterstic. You can find more on this on Scott Hanselman’s blog, .NET 24/7, or the knowledge base.
This entry was posted in Computers and Internet. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s