There are several ways to deploy an assembly into the global assembly
cache:
1) Use an installer designed to work with the global assembly cache. This
is the preferred option for installing assemblies into the global assembly
cache
2) Use a developer tool called the Global Assembly Cache tool (Gacutil.exe)
provided by the .NET Framework SDK.
3) Use Windows Explorer to drag and drop assemblies into the cache.
*My question
I know Installshield can register assemblies in the GAC, but that's not an option.
Can't seem to get VS .NET Install Project to do it though. Is it possible to write an install
project in VS .NET 2003 to register a public strong-named assembly in the GAC?
I can get the installer to put the assembly in the GAC, but it does not register it properly.
Any help or insight would be greatly appreciated
SMW 6 9608
By "register", I'm assuming it exposes COM interfaces, so you want the
equivalent of running regasm on the assembly. In the assembly properties in VS,
set the Register property to vsdraCOM. That causes the build to run regasm at
build time and extract the COM registration data into the MSI file. If you get
hold of Orca from the Windows Installer section of the Platform SDK and use it
to look in the MSI file, you should see your COM data in the Class table.
--
Phil Wilson [MVP Windows Installer]
----
"Zeplynne" <an*******@discussions.microsoft.com> wrote in message
news:FA**********************************@microsof t.com... There are several ways to deploy an assembly into the global assembly cache:
1) Use an installer designed to work with the global assembly cache. This is the preferred option for installing assemblies into the global assembly cache.
2) Use a developer tool called the Global Assembly Cache tool (Gacutil.exe) provided by the .NET Framework SDK.
3) Use Windows Explorer to drag and drop assemblies into the cache.
*My question: I know Installshield can register assemblies in the GAC, but that's not an
option. Can't seem to get VS .NET Install Project to do it though. Is it possible to
write an install project in VS .NET 2003 to register a public strong-named assembly in the GAC? I can get the installer to put the assembly in the GAC, but it does not
register it properly. Any help or insight would be greatly appreciated.
SMW
By "register", I'm assuming it exposes COM interfaces, so you want the
equivalent of running regasm on the assembly. In the assembly properties in VS,
set the Register property to vsdraCOM. That causes the build to run regasm at
build time and extract the COM registration data into the MSI file. If you get
hold of Orca from the Windows Installer section of the Platform SDK and use it
to look in the MSI file, you should see your COM data in the Class table.
--
Phil Wilson [MVP Windows Installer]
----
"Zeplynne" <an*******@discussions.microsoft.com> wrote in message
news:FA**********************************@microsof t.com... There are several ways to deploy an assembly into the global assembly cache:
1) Use an installer designed to work with the global assembly cache. This is the preferred option for installing assemblies into the global assembly cache.
2) Use a developer tool called the Global Assembly Cache tool (Gacutil.exe) provided by the .NET Framework SDK.
3) Use Windows Explorer to drag and drop assemblies into the cache.
*My question: I know Installshield can register assemblies in the GAC, but that's not an
option. Can't seem to get VS .NET Install Project to do it though. Is it possible to
write an install project in VS .NET 2003 to register a public strong-named assembly in the GAC? I can get the installer to put the assembly in the GAC, but it does not
register it properly. Any help or insight would be greatly appreciated.
SMW
That is correct. It does expose COM interfaces. Running Regasm is exactly what I was looking in how to do. Unfortunately, I tried your suggestion with no luck. Everything seems fine, registers in GAC, Orca looks good with reg entries, but when I call the dll from an unmanaged source, like ASP, I still get the following error
HTTP 500.100 - Internal Server Error - ASP erro
Internet Information Service
Technical Information (for support personnel
Error Type
(0x80070002
If I run regasm and gacutil on the dll from the command line however, everything works as expected.
That is correct. It does expose COM interfaces. Running Regasm is exactly what I was looking in how to do. Unfortunately, I tried your suggestion with no luck. Everything seems fine, registers in GAC, Orca looks good with reg entries, but when I call the dll from an unmanaged source, like ASP, I still get the following error
HTTP 500.100 - Internal Server Error - ASP erro
Internet Information Service
Technical Information (for support personnel
Error Type
(0x80070002
If I run regasm and gacutil on the dll from the command line however, everything works as expected.
There's obviously something missing, so I'd recommend comparing the HKCR
registry entries in the regasm case and when you've installed the MSI. Have you
specified an explicit GUID in the class attributes? Have you got rid of any * in
the assemblyversion? If you don't nail them down they can easily change and
clients won't find your object. Running the fusion log viewer might show you a
log of a failure to find the class. A dumb C++ program that calls
CoCreateInstance and tries to call a method can give you an HRESULT that can
tell you what's wrong.
--
Phil Wilson [MVP Windows Installer]
----
"Zeplynne" <an*******@discussions.microsoft.com> wrote in message
news:BB**********************************@microsof t.com... That is correct. It does expose COM interfaces. Running Regasm is exactly
what I was looking in how to do. Unfortunately, I tried your suggestion with no
luck. Everything seems fine, registers in GAC, Orca looks good with reg
entries, but when I call the dll from an unmanaged source, like ASP, I still get
the following error: HTTP 500.100 - Internal Server Error - ASP error Internet Information Services Technical Information (for support personnel) Error Type: (0x80070002)
If I run regasm and gacutil on the dll from the command line however,
everything works as expected.
There's obviously something missing, so I'd recommend comparing the HKCR
registry entries in the regasm case and when you've installed the MSI. Have you
specified an explicit GUID in the class attributes? Have you got rid of any * in
the assemblyversion? If you don't nail them down they can easily change and
clients won't find your object. Running the fusion log viewer might show you a
log of a failure to find the class. A dumb C++ program that calls
CoCreateInstance and tries to call a method can give you an HRESULT that can
tell you what's wrong.
--
Phil Wilson [MVP Windows Installer]
----
"Zeplynne" <an*******@discussions.microsoft.com> wrote in message
news:BB**********************************@microsof t.com... That is correct. It does expose COM interfaces. Running Regasm is exactly
what I was looking in how to do. Unfortunately, I tried your suggestion with no
luck. Everything seems fine, registers in GAC, Orca looks good with reg
entries, but when I call the dll from an unmanaged source, like ASP, I still get
the following error: HTTP 500.100 - Internal Server Error - ASP error Internet Information Services Technical Information (for support personnel) Error Type: (0x80070002)
If I run regasm and gacutil on the dll from the command line however,
everything works as expected. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: mqsash |
last post by:
Hi
Problem : Unable to deploy an assembly in IE, as a cab file.
(Works fine when deployed as a dll )
Description :
I have created a assembly (dll with no user interface)in C# which I
deploy in...
|
by: Zeplynne |
last post by:
There are several ways to deploy an assembly into the global assembly
cache:
1) Use an installer designed to work with the global assembly cache. This
is the preferred option for installing...
|
by: mqsash |
last post by:
Hi
Problem : Unable to deploy an assembly in IE, as a cab
file. (Works fine when deployed as a dll )
Description :
I have created a assembly (.dll) in C# which I
deploy in IE. The dll name is...
|
by: ATS |
last post by:
HOWTO Make a UserControl deploy an embedded resource.
Please help,
I need to embed an EXE into a C# UserControl that is run from script in an
HTML web page as such:
<html>
<object...
|
by: AAA |
last post by:
Hi, how could I deploy all my CF, SQLCE and my applicaiton .CAB file to
pocket pc...
I am now only able to run the msi setup file and install my application to
my pocket pc, but I need to intall...
|
by: WT |
last post by:
WTCRM.Settings.DBDataStore is a class in a main site deployed including
everything in the same assmebly
Address_Manager project is an external module that uses WTCRM as a
reference....
|
by: Rich |
last post by:
Hello,
I am trying to deploy a VB2005 app which contains a ReportViewer control. I
have added the Reportviewer control to the prerequisite list by click on
Prerequisites in the...
|
by: Mircea Pleteriu |
last post by:
Hi,
I will present you a virtual scenario. Here it is.
Say, we develop a web app consisting in one page only.
The page displays a culture-dependent text and a switch (as a dropdown list)
to...
|
by: meo |
last post by:
Does .NET provide the way to deploy library to internal developer?
I am trying to find the way to deploy a library file to developer for having
integration to their application BUT the customer...
|
by: AGP |
last post by:
I resisted for many years but I've just written my first app in .NET2005
and am looking to deploy my app with a third-party installer. ClickOnce
and the VS Installer do not meed my needs and I am...
|
by: CloudSolutions |
last post by:
Introduction:
For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
|
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...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
| |