473,395 Members | 1,574 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,395 software developers and data experts.

VS.NET 1.1 Command Line Compile Problems

Greetings all,

I have an assembly that, when compiled from within VS.NET, installs to the
GAC without any issues. However, when I use the command line compiler, I
receive an error when using gacutil to install it in the GAC. The message I
receive is: "Failure adding assembly to the cache: Unknown error".

Is there a special command line switch I need to be using to get this
assembly compiled correctly so it can be installed in the GAC?

Thank you in advance for all the help!

--
Bob Mixon
SPS MVP
http://www.BobMixon.com

Jul 13 '06 #1
3 1207
Hi Bob,
I have an assembly that, when compiled from within VS.NET, installs to the
GAC without any issues. However, when I use the command line compiler, I
receive an error when using gacutil to install it in the GAC.
Which version of gacutil.exe are you using, and which VS.NET version? I'm
under the impression that you cannot mix a gacutil from a different version
than the .NET version you used to compile your assembly with. That is,
gacutil for .NET 1.1 won't work with 2.0 assemblies and vice versa.

Could this be the case with you? Other than that, it should make any
difference whether you use Visual Studio or CSC to compile your assembly.

--
Regards,

Mr. Jani Järvinen
C# MVP
Helsinki, Finland
ja***@removethis.dystopia.fi
http://www.saunalahti.fi/janij/
Jul 13 '06 #2
Jani,

I appreciate the response; I am using v1.1 for both. I don't even have any
other versions installed in this VPC. Otherwise, there wouldn't be any
difference?

--
Bob Mixon
SPS MVP
http://www.BobMixon.com
"Jani Järvinen [MVP]" wrote:
Hi Bob,
I have an assembly that, when compiled from within VS.NET, installs to the
GAC without any issues. However, when I use the command line compiler, I
receive an error when using gacutil to install it in the GAC.

Which version of gacutil.exe are you using, and which VS.NET version? I'm
under the impression that you cannot mix a gacutil from a different version
than the .NET version you used to compile your assembly with. That is,
gacutil for .NET 1.1 won't work with 2.0 assemblies and vice versa.

Could this be the case with you? Other than that, it should make any
difference whether you use Visual Studio or CSC to compile your assembly.

--
Regards,

Mr. Jani Järvinen
C# MVP
Helsinki, Finland
ja***@removethis.dystopia.fi
http://www.saunalahti.fi/janij/
Jul 13 '06 #3
Bob,
I appreciate the response; I am using v1.1 for both. I don't even have
any
other versions installed in this VPC. Otherwise, there wouldn't be any
difference?
If you have only .NET 1.1 installed, then the version mismatch should be
possible to rule out. Is there anything special in your assembly, i.e.
signatures or references to other assemblies, etc. that might make gacutil
to fail?

You could also try check the command-line that Visual Studio uses to build
your assembly. If you copy-paste that on the command line and your assembly
still won't work, then there must be something odd in your setup, like a
corrupted file or the like.

Hope this helps.

--
Regards,

Mr. Jani Järvinen
C# MVP
Helsinki, Finland
ja***@removethis.dystopia.fi
http://www.saunalahti.fi/janij/
Jul 14 '06 #4

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

Similar topics

2
by: aladdin | last post by:
I use outside .jpg picture files in a Windows Form project. I try to compile use csc.exe at command line. I use resgen.exe to generate a resource file like: resgen.exe Form1.resx...
12
by: Rhino | last post by:
I am having an odd problem: the sqlj command on my system doesn't work. I am running DB2 (LUW) V8 (FP8) on WinXP. I haven't done an sqlj program since Version 6 of DB2 (LUW) so I checked the...
5
by: Genboy | last post by:
My "VIS" Website, which is a C# site created in VS.NET, Framework 1.1, is no longer compiling for me via the command line. As I have done 600 times in the last year and a half, I can compile to...
6
by: Todd A | last post by:
If I use the following in my code behind page: Public Class _Default Inherits System.Web.UI.Page The page will compile with no errors from the command line compiler (vbc.exe) But, If I...
1
by: Matt Creely | last post by:
I'm using the vbc.exe to compile a .dll automatically for me. I have all my framework references and imports setup correctly. And it will compile just fine, with a few lines of code commented...
4
by: N. P. | last post by:
I do not have Visual Basic .NET Standard or higher but I have downloaded the ..NET SDK and the 101 VB.NET samples from the MSDN website. I am sure that there must be a way to compile and...
2
by: Smile_7 | last post by:
Hello: I am using some 3rd party assemblies that require a license file. If I create a new project inside visual studios and compile the application, I have no problems but my project requires...
5
by: clsmith66 | last post by:
I've been asked to find out if a project is possible, but I'm not having much luck finding the information I need, I hope some one can help. I need to see if I can build a windows service on the...
0
by: chandan agarwal | last post by:
hi I have been given the task of building vc++ programs at the command line using make software. i have installed gnu make-3.81 version. i was able to build and run makefiles for turbo c++. but...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
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...
0
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...
0
BarryA
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
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...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.