FAQ Search Memberlist RSS Feed Register Profile Log in to check your private messages Log in
Create Instance failed: 0x80080005 with Windows 7

 
Post new topic   Reply to topic    OPC Foundation Message Board Forum Index -> DCOM
View previous topic :: View next topic  
Author Message
VMugnier



Joined: 09 Mar 2010
Posts: 7

PostPosted: Tue Mar 09, 2010 2:42 pm    Post subject: Create Instance failed: 0x80080005 with Windows 7 Reply with quote

Hello,

We have our OPC server and we use it without any problem under Windows XP. But with Windows 7, it is impossible to connect remotly to it, we always have this message (see subject). In local, no problem.

We have the same installation as with Windows XP with the same OPC, DCOMCFNG config, same user...

When we try to connect to our server with Advosol OPC Security Analyzer, it says that "The user must have DCOM server launch rights."

What is different between Windows XP and 7 about that ?

thanks
Back to top
View user's profile Send private message
Fred_Loveless



Joined: 26 Aug 2005
Posts: 169
Location: Portland, Maine

PostPosted: Tue Mar 09, 2010 3:13 pm    Post subject: Reply with quote

What OPC Server are you using?
Are you runing as a service or on the desktop?
What are your UAC and Windows Defender settings?

These are good questiosn to start with, we may have more once we get answers to these.

Fred Loveless
Kepware Technologies
Back to top
View user's profile Send private message Send e-mail
Randy



Joined: 27 Feb 2003
Posts: 3553
Location: OPC Foundation

PostPosted: Tue Mar 09, 2010 4:23 pm    Post subject: Reply with quote

Windows 7 always has User Access Control enabled (UAC).
This will create problems for applications that try to update the registry on start.
Back to top
View user's profile Send private message Visit poster's website
VMugnier



Joined: 09 Mar 2010
Posts: 7

PostPosted: Wed Mar 10, 2010 9:43 am    Post subject: Reply with quote

Thanks for your answer.

We use our own OPC server developped with the Wintech OPC source code kit.
It is not running as a service.
The application server is already running when I try to connect to it.

I've just done a new test with the following parameters :
- Windows defender disabled.
- UAC turned to "never notify"
I still have the 0x80080005 error and the message "The user must have DCOM server launch rights."

Here is the whole diagnostic of the OPC Security Analyzer :

Code:
Diagnose access to OPC server 'OPC Kronos' on machine 'TEST-WINDOW7'.  Running on machine 'PC-VINCENT' as user ''PC-VINCENT\Vincent Mugnier''.
The interactive user is   PC-VINCENT\Vincent Mugnier
DCOM is activated on machine 'PC-VINCENT'.
The Registry could be read on machine 'TEST-WINDOW7' using the 'Remote Registry' server.
DCOM is activated on machine 'TEST-WINDOW7'.
No shared drive available or accessible
    This is not necessarily an error. Maybe the remote machine has no shared drives
    or the user 'PC-VINCENT\Vincent Mugnier' doesn't have access rights. You may need to run this application
    on the target machine to test the file access locally
Analyzer could connect to Registry on machine 'TEST-WINDOW7'.
The server description is   'OPC Kronos'.
The server CLSID is   '{2d1b6b4a-a637-470c-8150-c63f9f8f6263}'.
The server EXE is   'C:\Program Files\Rotronics\Kronos 4.0\Kronos.exe'.
The server AppID is '{2d1b6b4a-a637-470c-8150-c63f9f8f6263}'.
No AppID registry entry found for 'Kronos.exe'.
     This server has no security definitions configured.     It could be that the short filename is registerd.
The server EXE directory '\\TEST-WINDOW7\C\Program Files\Rotronics\Kronos 4.0' is not shared or not readable from user PC-VINCENT\Vincent Mugnier
    This is not necessarily an error. Maybe the directory is not shared
    or the user 'PC-VINCENT\Vincent Mugnier' doesn't have access rights.
    You may need to run this application on the target machine to test the file access locally.
    The EXE file must be accessible from the local user 'PC-VINCENT\Vincent Mugnier'.
The user 'PC-VINCENT\Vincent Mugnier' must have DCOM server launch rights.


I can remotly connect to a different server - Matrikon OPC Server - and I've also the following message :

Code:
No shared drive available or accessible
[...]
The server EXE directory '\\TEST-WINDOW7\C\PROGRA~1\Matrikon\OPC\SIMULA~1' is not shared or not readable from user PC-VINCENT\Vincent Mugnier


Is the indication "No AppID registry entry found for 'Kronos.exe'." suspect ? Even if I've the same with Windows XP but it never was a probleme...
Back to top
View user's profile Send private message
Fred_Loveless



Joined: 26 Aug 2005
Posts: 169
Location: Portland, Maine

PostPosted: Wed Mar 10, 2010 2:51 pm    Post subject: Reply with quote

When you compile your programs have you created a security manifest? Try running the server as and Administrator, then try running the server and client as administrators and see what happens. this is a WAG but if DCOM is set the same the next issue is going to be application runtime privilages.

Fred Loveless
Kepware Technologies
Back to top
View user's profile Send private message Send e-mail
VMugnier



Joined: 09 Mar 2010
Posts: 7

PostPosted: Thu Mar 11, 2010 3:08 pm    Post subject: Reply with quote

Well, about the manifest, I have doubt :
In our VC++2005 settings we have :
For Linker / Manifest File :
- generate a manifest : no
- manifest file : Kronos.exe.manifest
For Manifest tool , Input and Output :
- embed manifest : no
- Output manifest file : Kronos.exe.generated.manifest

In the result directory, I have 2 manifests, Kronos.exe.manifest and Kronos.exe.generated.manifest.
Back to top
View user's profile Send private message
VMugnier



Joined: 09 Mar 2010
Posts: 7

PostPosted: Thu Mar 11, 2010 3:11 pm    Post subject: Reply with quote

I've also done the test running the server and the client as administrator or not. I've install another Windows 7 PC to do it (for our previous tests, OPC clients are on XP computer).

I've seen no differences between each cases, always the same error and diagnose :
Code:
Connect to OPC DA server 'OPC Kronos' on machine 'TEST-WINDOW7'.  Running on machine 'TESTWINDOWS7-2' as user ''TestWindows7-2\Vincent Mugnier''.
Exception at Connect:  Create Instance Failed: 0x80080005  Server execution failed.
   The server execution can fail because the server is launched in a user that doesn't have access rights to all required resources.
   E.g. the Advosol Simulation Server uses an XML configuration file and the XML serialization .Net classes need write access to the system TEMP directory.

OPC Security Analyzer FW2   Version 4.0.0.0
Diagnose access to OPC server 'OPC Kronos' on machine 'TEST-WINDOW7'.  Running on machine 'TESTWINDOWS7-2' as user ''TestWindows7-2\Vincent Mugnier''.
The interactive user is   TestWindows7-2\Vincent Mugnier
DCOM is activated on machine 'TESTWINDOWS7-2'.
The Registry could be read on machine 'TEST-WINDOW7' using the 'Remote Registry' server.
DCOM is activated on machine 'TEST-WINDOW7'.
No shared drive available or accessible
    This is not necessarily an error. Maybe the remote machine has no shared drives
    or the user 'TestWindows7-2\Vincent Mugnier' doesn't have access rights. You may need to run this application
    on the target machine to test the file access locally
Analyzer could connect to Registry on machine 'TEST-WINDOW7'.
The selected OPC server type is: 'DA'.
The server description is   'OPC Kronos'.
The server CLSID is   '{2d1b6b4a-a637-470c-8150-c63f9f8f6263}'.
    It implements the OPC Interfaces:  AE   DA1   DA2   DA3
The server EXE is   'C:\Program Files\Rotronics\Kronos 4.0\Kronos.exe'.
The server AppID is '{2d1b6b4a-a637-470c-8150-c63f9f8f6263}'.
No AppID registry entry found for 'Kronos.exe'.
     This server has no security definitions configured.     It could be that the short filename is registered.
The server EXE directory '\\TEST-WINDOW7\C\Program Files\Rotronics\Kronos 4.0' is not shared or not readable from user TestWindows7-2\Vincent Mugnier
    This is not necessarily an error. Maybe the directory is not shared
    or the user 'TestWindows7-2\Vincent Mugnier' doesn't have access rights.
    You may need to run this application on the target machine to test the file access locally.
    The EXE file must be accessible from the local user 'TestWindows7-2\Vincent Mugnier'.
The user 'TestWindows7-2\Vincent Mugnier' must have DCOM server launch rights.
Local Security Settings: Sharing and security model for local accounts = CLASSIC ->  local users authenticate as themselves.
Exception at Connect:  Create Instance Failed: 0x80080005  Server execution failed.
   The server execution can fail because the server is launched in a user that doesn't have access rights to all required resources.
   E.g. the Advosol Simulation Server uses an XML configuration file and the XML serialization .Net classes need write access to the system TEMP directory.
Event Log on the local machine: 3/11/2010 3:38:59 PM  The description for Event ID '-1073731815' in Source 'DCOM' cannot be found.  The local computer may not have the necessary registry information or message DLL files to display the message, or you may not have permission to access them.  The following information is part of the event:'TEST-WINDOWS7'
Event Log on the local machine: 3/11/2010 3:38:47 PM  The description for Event ID '-1073731815' in Source 'DCOM' cannot be found.  The local computer may not have the necessary registry information or message DLL files to display the message, or you may not have permission to access them.  The following information is part of the event:'TEST-WINDOWS7'
Back to top
View user's profile Send private message
VMugnier



Joined: 09 Mar 2010
Posts: 7

PostPosted: Fri Mar 12, 2010 2:13 pm    Post subject: Reply with quote

I've just done a new test from my XP PC with a more recent version of OPC Security Analyzer... maybe more info...

Code:

Exception at Connect:  Create Instance Failed: 0x80080005  Server execution failed.
   The server execution can fail because the server is launched in a user that doesn't have access rights to all required resources.
   E.g. the Advosol Simulation Server uses an XML configuration file and the XML serialization .Net classes need write access to the system TEMP directory.

OPC Security Analyzer FW2   Version 4.0.0.0
Diagnose access to OPC server 'OPC Kronos' on machine 'TEST-WINDOW7'.  Running on machine 'PC-VINCENT' as user ''PC-VINCENT\Vincent Mugnier''.
The interactive user is   PC-VINCENT\Vincent Mugnier
DCOM is activated on machine 'PC-VINCENT'.
The Registry could be read on machine 'TEST-WINDOW7' using the 'Remote Registry' server.
DCOM is activated on machine 'TEST-WINDOW7'.
No shared drive available or accessible
    This is not necessarily an error. Maybe the remote machine has no shared drives
    or the user 'PC-VINCENT\Vincent Mugnier' doesn't have access rights. You may need to run this application
    on the target machine to test the file access locally
Analyzer could connect to Registry on machine 'TEST-WINDOW7'.
The selected OPC server type is: 'DA'.
The server description is   'OPC Kronos'.
The server CLSID is   '{2d1b6b4a-a637-470c-8150-c63f9f8f6263}'.
    It implements the OPC Interfaces:  AE   DA1   DA2   DA3
The server EXE is   'C:\Program Files\Rotronics\Kronos 4.0\Kronos.exe'.
The server AppID is '{2d1b6b4a-a637-470c-8150-c63f9f8f6263}'.
No AppID registry entry found for 'Kronos.exe'.
     This server has no security definitions configured.     It could be that the short filename is registered.
The server EXE directory '\\TEST-WINDOW7\C\Program Files\Rotronics\Kronos 4.0' is not shared or not readable from user PC-VINCENT\Vincent Mugnier
    This is not necessarily an error. Maybe the directory is not shared
    or the user 'PC-VINCENT\Vincent Mugnier' doesn't have access rights.
    You may need to run this application on the target machine to test the file access locally.
    The EXE file must be accessible from the local user 'PC-VINCENT\Vincent Mugnier'.
The user 'PC-VINCENT\Vincent Mugnier' must have DCOM server launch rights.
Local Security Settings: Sharing and security model for local accounts = CLASSIC ->  local users authenticate as themselves.
Exception at Connect:  Create Instance Failed: 0x80080005  Server execution failed.
   The server execution can fail because the server is launched in a user that doesn't have access rights to all required resources.
   E.g. the Advosol Simulation Server uses an XML configuration file and the XML serialization .Net classes need write access to the system TEMP directory.
Event Log on the local machine: 12/03/10 2:26:12 PM  DCOM got error "Server execution failed" from the computer TEST-WINDOW7 when attempting to
     activate the server:
     {2D1B6B4A-A637-470C-8150-C63F9F8F6263}
Event Log on the local machine: 12/03/10 2:21:27 PM  DCOM got error "Server execution failed" from the computer TEST-WINDOW7 when attempting to
     activate the server:
     {2D1B6B4A-A637-470C-8150-C63F9F8F6263}
Back to top
View user's profile Send private message
VMugnier



Joined: 09 Mar 2010
Posts: 7

PostPosted: Wed Mar 17, 2010 2:48 pm    Post subject: Reply with quote

A little step in my problem : I've correctly declared our server in registry. I've also tried another server declared as local server like ours, and not as service, to compare results.

Now differences in the diagnose of OPC Security Analyzer are :

for my reference server :
Code:
The server EXE directory '\\TEST-WINDOW7\C\PROGRA~1\DSxP\DSXPOP~1' is not shared or not readable from user PC-VINCENT\Vincent Mugnier
    This is not necessarily an error. Maybe the directory is not shared
    or the user 'PC-VINCENT\Vincent Mugnier' doesn't have access rights.
    You may need to run this application on the target machine to test the file access locally.
    The EXE file must be accessible from the local user 'PC-VINCENT\Vincent Mugnier'.
Local Security Settings: Sharing and security model for local accounts = CLASSIC ->  local users authenticate as themselves.
Server successfully launched and a group with notification callback added.


and for our server :
Code:
The server EXE directory '\\TEST-WINDOW7\C\Program Files\Rotronics\Kronos 4.0' is not shared or not readable from user PC-VINCENT\Vincent Mugnier
    This is not necessarily an error. Maybe the directory is not shared
    or the user 'PC-VINCENT\Vincent Mugnier' doesn't have access rights.
    You may need to run this application on the target machine to test the file access locally.
    The EXE file must be accessible from the local user 'PC-VINCENT\Vincent Mugnier'.
The user 'PC-VINCENT\Vincent Mugnier' must have DCOM server launch rights.
Local Security Settings: Sharing and security model for local accounts = CLASSIC ->  local users authenticate as themselves.
Exception at Connect:  Create Instance Failed: 0x80080005  Server execution failed.
   The server execution can fail because the server is launched in a user that doesn't have access rights to all required resources.
   E.g. the Advosol Simulation Server uses an XML configuration file and the XML serialization .Net classes need write access to the system TEMP directory.
Event Log on the local machine: 17/03/10 2:30:15 PM  DCOM got error "Server execution failed" from the computer TEST-WINDOW7 when attempting to
     activate the server:
     {2D1B6B4A-A637-470C-8150-C63F9F8F6263}
Back to top
View user's profile Send private message
VMugnier



Joined: 09 Mar 2010
Posts: 7

PostPosted: Thu Mar 18, 2010 10:46 am    Post subject: Reply with quote

Finally a first result ! Very Happy
I've managed to connect to our server after having modify its specifing DCOM settings as following :
- In dcomcnfg, I've openned the Properties of my server in Console Root/Component Services/Computers/My Computer/DCOM Config
- In the identity tab, I've change the user account from "the lauching user" to "The interactive user".

With this additionnal settings, I've managed to connect remotly to our server running on Windows 7.

Any idea why it doesn't work with "The launching user" while whith a demo server or on Windows XP it works fine ? Rolling Eyes

Anyway, thanks for your informations.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    OPC Foundation Message Board Forum Index -> DCOM All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2002 phpBB Group