473,325 Members | 2,860 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,325 software developers and data experts.

SignTool Error: CoCreateInstance returned error: 0x80040150

I've created a web app in C # that creates a self-extracting
installation file, and then attempts to digitally sign that file using
MS signtool.

I'm using the Process class to invoke signtool and it is returning this
error:

SignTool Error: CoCreateInstance returned error: 0x80040150
Could not read key from registry

This runs fine from the VS 2005 integrated debugger on my machine, and
fine from the command line on the target machine. The target machine
is running Win 2003 with IIS 6.0

I've tried several solutions, none of which seem to make a difference,
including using impersonation of an account with admin rights on the
target system. I've used procmon to try to isolate which registry key
is the culprit, but didn't find any access denied entries. This feels
like a permissions issue, but I'm not sure where to look.

Does anyone know how to work around this problem? Thanks.

Dec 6 '06 #1
1 3587
The problem turned out to be that when signtool is called using
Process.Start() it does not possess sufficient rights to complete
successfully, even when impersonation is used at the application level.

For anyone that is interested, the process for solving this problem can
be derived from http://support.microsoft.com/Default.aspx?id=889251.
Thankfully, we have Microsoft Developer Support and the rep assigned to
my case pointed me towards this solution after only 1 or 2 email
exchanges.

The example from the link is for creating a web app that will call
whatever process you enter into an edit box, but you can incorporate
the code from steps 3, 5 and 11 into a work around for an existing web
app. The code from step 11 can be conveniently adapted into a method
that accepts the process + parameters as a single string, and then
passed on to CreateProcessAsUser.

SteveO

Dec 8 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Ajay | last post by:
hi! I have a c++ file that does some XML processing (visual c++ using ATL). The file builds fine. However when i add the header #include<Python.h>, i get a number of errors C:\Windows CE...
5
by: Sruli Ganor | last post by:
Hi Netscape gurus, I'ne just installed Netscape 7.0 to my Windows PC and I'm trying to sign JavaScripts, but get errors right on the beginning. Can anyone tell me what am I doing wrong? I...
0
by: SHC | last post by:
Hi all, I have a VC++ .NET 2003 - Windows XP Pro PC. I created a Win32 console application in my VC++ .NET 2003 and copied validateDOM.cpp, books.xml and books.xsd (see the attached files below)...
15
by: Brian Rogers | last post by:
Hello everyone, I apologize for the cross and re-post, but I am still searching for an answer. Why can C++ can create this object, but C# can't? I am trying to create an instance of the...
1
by: YC.Seattle | last post by:
Hi, I am developing an internal tool so user permission is not an issue. I need to call the "signtool.exe" to sign a file on the web server through a web service. The web server is running on...
0
by: arigney | last post by:
I am getting this error publishing a test application as well as my application. This error was reported back in 2005 but there was no reply at that time. Error 2 SignTool reported an error...
1
by: Bill Nguyen | last post by:
Windows XP VS 2005 I got the error message below when trying to publish the VB app to a network folder: Publishing location: \\nasserver\customapps$\VS2005\VISUALDISPATCH\ Installation URL:...
4
by: Perry Langla | last post by:
Hi, I try to publish a program and I get an error occured while signing. SignTool.exe not found. I am new to Visual Studio 2008. What is this for? Why do I get that error? Thanks Perry Langla
6
by: ranin02 | last post by:
Hi, I have a COM method that is called from VBA. This COM method in turn calls CoCreateInstance on a class that is a .NET class with a COM wrapper around it. This all works fine. However,...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.