473,406 Members | 2,217 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,406 software developers and data experts.

Overwrite DLL?

I'm using VB to create a DLL and am having trouble unloading it so I can
rebuild it while testing... I think I used to kill a process to unload it
before but there must be a better way..
Jul 19 '05 #1
6 2890
there's an unload button in the4 home directory section of IIS Service
Manager's properties sheet.

________________________________________
Atrax. MVP, IIS
http://rtfm.atrax.co.uk/

newsflash : Atrax.Richedit 1.0 now released.
http://rtfm.atrax.co.uk/infinitemonk...trax.RichEdit/

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Jul 19 '05 #2
Can just stop and restart the webservice? Using a command prompt "net stop
w3svc" and "net start w3svc"
"Qwip" <as***@emailasdasd.com> wrote in message
news:#M**************@TK2MSFTNGP12.phx.gbl...
I'm using VB to create a DLL and am having trouble unloading it so I can
rebuild it while testing... I think I used to kill a process to unload it
before but there must be a better way..

Jul 19 '05 #3
Thanks to the both of you. It turned out I needed to reboot the server to
get my DLL to unload for some reason. This stopping/starting IIS during
development really sucks.. guess it's time I started brushing up on my dot
net.

"Qwip" <as***@emailasdasd.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
I'm using VB to create a DLL and am having trouble unloading it so I can
rebuild it while testing... I think I used to kill a process to unload it
before but there must be a better way..

Jul 19 '05 #4
Qwip wrote:
Thanks to the both of you. It turned out I needed to reboot the
server to get my DLL to unload for some reason.
You may have to run the application in its own memory space to avoid this.
This
stopping/starting IIS during development really sucks..


That's the main reason I stopped using VB dll's. The other reason was the
impact on performance. But i would have lived with the performance hit if it
was easier to replace the dll.

Bob Barrows
Jul 19 '05 #5
"Qwip" <as***@emailasdasd.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
I'm using VB to create a DLL and am having trouble unloading it
so I can rebuild it while testing... I think I used to kill a process to
unload it before but there must be a better way..


You have to convince IIS to let go of the DLL - on a remote
machine, that's Unloading the application, or Restarting IIS, or
occasionally Rebooting the box, preferably in that order.

If you're debugging on the /same/ machine, start the DLL project
in the VB IDE, then load the web page and - all being well - VB
should catch the calls to the DLL; you can set breakpoints in your
code and everything... :-)

HTH,
Phill W.
Jul 19 '05 #6
Did you try unregistering the dll first (regsvr32 myobj.dll /u) ? Usually
stopping the service and doing this will be enough to release it.
"Qwip" <as***@emailasdasd.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
Thanks to the both of you. It turned out I needed to reboot the server to
get my DLL to unload for some reason. This stopping/starting IIS during
development really sucks.. guess it's time I started brushing up on my dot
net.

"Qwip" <as***@emailasdasd.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
I'm using VB to create a DLL and am having trouble unloading it so I can
rebuild it while testing... I think I used to kill a process to unload it before but there must be a better way..


Jul 19 '05 #7

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

Similar topics

5
by: Gord | last post by:
Hello, If you set the flag for an overwrite prompt using the 'Save' common dialog, how do you read the response when the user clicks the Yes or No in the 'overwrite' message box? Everything...
2
by: Florian Preknya | last post by:
Is there a posibility to overwrite a private method (one that starts with __ ) ? I read that they are just formely private, they are prefixed with the class name to have an obtured visibility, so...
3
by: David Baumgarten | last post by:
I am trying to download a file from a ftp server and if the file already exists to overwrite it. Here is my code: FtpGetFile(hConnection, "1.pdf", FLocation & "\Temp\" & "1.pdf", False, 1, 0,...
15
by: Ramaraj M Bijur | last post by:
Hi All, Could anyone help me to resolve following problem in C the IDE used is Microsoft VC++, Please let me know the which option in VC++ will do the needful The problem statement:...
2
by: B-Dog | last post by:
Is there a way to make vb.net to overwrite the file when moving? Here is what I'm trying to do: If System.IO.File.Exists(dest) Then 'handle overwrite here If MessageBox.Show("Do you want...
3
by: Developer | last post by:
I use the RichTextBox and sometimes put it into overwrite mode. I'd like the cursor to show whether its in overwrite or insert mode. I often use Cursor.Current = Cursors.WaitCursor and...
3
by: Kai Kuehne | last post by:
Hi list! It is possible to overwrite only one function with the property-function? x = property(getx, setx, delx, 'doc') I just want to overwrite setx, but when I set the others to None, I...
1
by: Aere | last post by:
Hello, I'm coding a program that saves information about my patients, so i created a rich textbox for every field. (Name, Tel, etc). The program saves a .txt for each field, no matter if there is...
2
by: hzgt9b | last post by:
I know how to overwrite a function. Normally this is what I would do: function someFunction() { /* orig definition here */ } //later in the execution stream I would do... someFunction = function...
8
by: Joe Duchtel | last post by:
Hello - I have the following code to detemine a file name when my application is saving a file. The problem is that if the file already exists and I select the Yes button in the "Do you want to...
0
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
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: 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
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...
0
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...
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
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...
0
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...
0
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...

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.