The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum for Programming
 Forum for Origin C
 origin COM in Windows 2003
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

alexey_ov

Russia
Posts

Posted - 10/21/2004 :  07:46:30 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
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()

Please help.

Alexey

Edited by - alexey_ov on 10/21/2004 10:53:19 AM

larry

USA
5 Posts

Posted - 10/25/2004 :  12:37:25 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Alexey,

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.

Best
Larry


Edited by - larry on 10/25/2004 4:29:15 PM
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000