Origin Version (Select Help-->About Origin): OriginPro 75 Operating System: Windows XP/2003
Dear All,
can't initialize origin COM object from web-application in Windows 2003. At the same time it works good under Windows XP. I wonder, why is so different? I'm sure this trouble is not because of any security settings. Debugger issues an error message as follows:
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.Runtime.InteropServices.COMException: Server execution failed
Stack Trace:
[COMException (0x80080005): Server execution failed] gmetxar.termo.Page_Load(Object sender, EventArgs e) in c:\inetpub\wwwroot\xxxxx.aspx.cs:34 System.Web.UI.Control.OnLoad(EventArgs e) System.Web.UI.Control.LoadRecursive() System.Web.UI.Page.ProcessRequestMain()
It seems that Origin could not find the User Files folder from web application in Windows 2003. That is the user specific folder created after Origin installation, my Origin User Files folder is: C:\Documents and Settings\larry\Application Data\OriginLab\Origin75E\User Files By default IIS 6.0 runs under ASP.NET account, which does not have a corresponding User Files folder. That caused the execution exception.
You probably can see the following DCOM error message from your system log: The server {2F234A01-A4EB-4EAB-A130-A13C97953F0B} did not register with DCOM within the required timeout.
Here is a workaround: please try to set the impersonation in your web.config file. In the <system.web></system.web> section add: <identity impersonate="true" userName="domain\user" password="mypwd" />
Please replace "domain\user" with the account you were using to install Origin. Also, make sure that account has permission to launch Origin COM server (that can be configured through dcomcnfg tool).
However, this requires the user account being used has to be logged in. I will keep your posted if a better solution comes up.