WebORB for .NET ERROR: Access to path is denied

I want to write more about my recent experiences with WebORB for .NET, an amf remoting solution to integrate Flex with .NET, but that'll have to wait until I complete this project.  

The day was going along swimmingly and I was testing my services via the WebOrb management console when I bumped into this error message as I selected a new assembly:

faultCode:Server.Processing faultString:'Access to the path 'C:\inetpub\wwwroot\weborb30\weborbassets\codegen\{guid}.codegen' is denied. 

Problem
Although I have generated code from the previous version of WebOrb 3.4, this error is coming from v3.5.0 and evidently my file permissions were not set to allow writing to that temp path. It would appear this was not correctly setup during the install.

Running the WebORB diagnostics page verified this under the heading of "WebORB Permissions Summary > WebORB can generate client code"

System.UnauthorizedAccessException: Access to the path 'C:\inetpub\wwwroot\weborb30\weborbassets\codegen\{guid}' is denied.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
at System.IO.File.OpenWrite(String path)
at a.b(String A_0)

Solution
I granted the local IIS_IUSRS account modify permissions on my Vista workstation for the codegen directory, and this resolved the issue.

The diagnostics and console for WebORB have made this integration nearly painless.

 


Categories: ASP.NETFlexPermalink