Thursday, November 6, 2008

BizTalk Hosted Web Service - Error CS2001

The project that I am currently on has an Orchestration that is exposed as a Web Service. This is running on Windows 2003, so we have created an app pool and assigned the BizTalk Isolated Host Instance user to this app pool's identity.


We just migrated our app to a pre-prod environment and were having some troubles connecting the client application to the BizTalk exposed web service. There were no errors in the event viewer on the BizTalk server, but there was in the client application's event viewer.


Here is the error:
Problem while generating request for waiting records: Server was unable to process request. ---> Unable to generate a temporary class (result=1).
error CS2001: Source file 'C:\WINDOWS\TEMP\hgz0bwpr.0.cs' could not be found
error CS2008: No inputs specified



There are a fair amount of CS2001 and CS2008 errors documented on the web, but I figured I would add this one to highlight that the error occurs on the client machine, not the host server.


How did I fix it?
I provided the BizTalk Isolated Host Instance user with the following permissions on the C:\Windows\temp folder:
  • Read & Execute

  • List Folder Contents

  • Read

Also note that this machine is internal to our network so if your machine is externally facing, you may want to further restrict some permissions.

2 comments:

Chirag Shah delivery guy said...

Hi Kent,

Can you tell me how to deploy orchestration exposed as a web service on a Test server i.e does the MSI package automatically creates the virtual directory.

Kent Weare said...

This link should help you out:

How to Add a Virtual Directory to an Application

http://msdn.microsoft.com/en-us/library/aa577889.aspx