473,804 Members | 2,070 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

adding assembly to windows\assembl y through bat file

Hi

I am creating an assembly which needs to be accessibly from an ASP
application.
I have made this Assembly ComVisible(true ), and after using regasm and
copying this to windows\assembl y file i can use this fine.

now this is a rather repetitive and time wasting task (copy assembly across,
deregister old one, register new one, replace assembly version and restart
iis)
So i've made a batch file to do it.

The only thing i can't do, is figure out how to copy this assembly to the
c:\windows\asse mbly folder through dos.
Currently i am using Explorer to click and drag this assembly, to the
assembly folder.

Any advice will be appreciated

TIA
Nov 19 '05 #1
3 1728
XCopy!!

I did a quick google search...see if this helps.
http://www.easydos.com/xcopy.html

Cheers,
Adam

"Grant Merwitz" <gr***@workshar e.com> wrote in message
news:up******** ******@tk2msftn gp13.phx.gbl...
Hi

I am creating an assembly which needs to be accessibly from an ASP
application.
I have made this Assembly ComVisible(true ), and after using regasm and
copying this to windows\assembl y file i can use this fine.

now this is a rather repetitive and time wasting task (copy assembly
across, deregister old one, register new one, replace assembly version and
restart iis)
So i've made a batch file to do it.

The only thing i can't do, is figure out how to copy this assembly to the
c:\windows\asse mbly folder through dos.
Currently i am using Explorer to click and drag this assembly, to the
assembly folder.

Any advice will be appreciated

TIA

Nov 19 '05 #2
gacutil was the way :)
"Grant Merwitz" <gr***@workshar e.com> wrote in message
news:up******** ******@tk2msftn gp13.phx.gbl...
Hi

I am creating an assembly which needs to be accessibly from an ASP
application.
I have made this Assembly ComVisible(true ), and after using regasm and
copying this to windows\assembl y file i can use this fine.

now this is a rather repetitive and time wasting task (copy assembly
across, deregister old one, register new one, replace assembly version and
restart iis)
So i've made a batch file to do it.

The only thing i can't do, is figure out how to copy this assembly to the
c:\windows\asse mbly folder through dos.
Currently i am using Explorer to click and drag this assembly, to the
assembly folder.

Any advice will be appreciated

TIA

Nov 19 '05 #3
I appreciate you reply

Copy wouldn't work, as it needs to registered in that folder, no just copied
across
I originaly tried copy - but it would just move that assembly into the
folder, not register it.

Gacutil.exe worked for me though

Thanks again

"Adam Knight" <de*@brightidea .com.au> wrote in message
news:O8******** ******@TK2MSFTN GP15.phx.gbl...
XCopy!!

I did a quick google search...see if this helps.
http://www.easydos.com/xcopy.html

Cheers,
Adam

"Grant Merwitz" <gr***@workshar e.com> wrote in message
news:up******** ******@tk2msftn gp13.phx.gbl...
Hi

I am creating an assembly which needs to be accessibly from an ASP
application.
I have made this Assembly ComVisible(true ), and after using regasm and
copying this to windows\assembl y file i can use this fine.

now this is a rather repetitive and time wasting task (copy assembly
across, deregister old one, register new one, replace assembly version
and restart iis)
So i've made a batch file to do it.

The only thing i can't do, is figure out how to copy this assembly to the
c:\windows\asse mbly folder through dos.
Currently i am using Explorer to click and drag this assembly, to the
assembly folder.

Any advice will be appreciated

TIA


Nov 19 '05 #4

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

Similar topics

2
6808
by: Chien Lau | last post by:
I frequently define internal UserControl-derived classes in my WinForms apps: internal class MyUserControl:UserControl{ ... } I'll often need to embed these controls in a Form, whose class is contained in the same assembly as the control. As far as I know, the only way to do this using the designer is to add the UserControl-derived object
3
2153
by: Bern | last post by:
This message is probably out of topic but I get no response from the less popular microsoft.public.dotnet.general newsgroup. Is there a resource manager of some sort in VS C# .NET which you can use to add resources such as icons, textfiles, etc. ? AS far as I see it, pictures can only be added through the properties of controls such as "BackgroundImage". I opened up the resource view and it is always blank. I tried creating a .RESX file...
2
2735
by: Carlton858 | last post by:
I have a web app that uses a third party assembly. I have been transferring this assembly back-and-forth from my dev server "bin" directory to my staging server "bin" directory many, many times without error. Now I get this message on my staging server sfter updating it: Parser Error Message: Access is denied: 'ChilkatDotNet'. BLAH BLAH
18
3802
by: Praveen Ramesh | last post by:
Hi, Is there any way to add the @Assembly reference to the aspx files programmatically from inside a custom control (when it gets dropped on to the page from the toolbox)? I have a custom control - MyControl that implements an interface in another custom assembly - InterfaceAssembly. When MyControl gets dropped on to the page and run, it results in a "InterfaceAssembly not found" exception. I am aware that this can be fixed by...
1
15885
by: Brian Conklin | last post by:
Hello Eneryone, I am having a problem. I have written a little app that will take a text "pipe" delimited file and place all of the values in to an Excel spreadsheet. It works great on any of my XP Pro machines. When I install the app on a Win2K Pro machine, I get the following error message: ************** Exception Text ************** System.Runtime.InteropServices.COMException (0x80020008): Bad variable type. at...
1
1741
by: Max | last post by:
Searched all over google and can't seem to find how to do this. How do I go about adding comments about my own functions and sub-procedures? Like when I use them, the tool-tip tells me more then just how it was declared?
3
1997
by: _DS | last post by:
The two obvious methods for ref'ing assemblies are: Add a reference and 'Browse' for the actual DLL OR Add existing project to the solution, then add a ref to 'Project'. 1: I'd like to find out what the latter method is doing. I'm assuming that it makes sure that debug exe gets matched to
2
1894
by: Ron M. Newman | last post by:
Hello .NET Sages, Question. What is the meaning of adding say, an XML file to a project, next to a .CS file (not that it matters). Does that mean the XML file becomes a part of the compiled assembly and I'll be able to refer to it from another application that'll open up and use this assembly? As you understand, this is my purpose. I'd like to have an assembly that
7
10088
by: chage | last post by:
Hi, I have been searching around to try adding reference assembly to another assembly during runtime, programatically. Is this possible in .Net? The reason for this is because i am having trouble using a library that creates an instance of a Type that i specified, and it failed the locate the Type during runtime, if i do not reference it during compile time.
12
1514
by: Jeff Gaines | last post by:
I am a hobbyist programmer, using C# and VS2008 and writing desktop apps. I am trying hard to take a modular approach to avoid re-inventing the wheel but I'm finding it a bit frustrating. For instance I have a ListViewEx class (based on a ListView) which has in-place editing and a sorter based on column content. It uses custom column headers and custom ListViewItems. In turn the ListViewEx may have a further class base on it and so on. ...
0
9711
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9593
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
10335
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10088
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9169
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7633
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5529
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4306
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3831
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.