Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

dll's . re-building

Posted on 2000-04-06
13
Medium Priority
?
176 Views
Last Modified: 2010-04-02
im writting a server component using the atl etc.

no problem.

i compile and build the dll, fine, i then use it in my asp page , fine again.

its when i go back to vc++ and make a change and re-build. i get an error :

cannt open name.dll for writting.

now this is proably becasuse the web server still has it loaded. ive tried stopping iis etc. it make no difference

how do you get round this prob.  
0
Comment
Question by:makerp
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
  • 2
  • +4
13 Comments
 
LVL 1

Expert Comment

by:nunya
ID: 2690451
get it into the mts.
0
 
LVL 8

Expert Comment

by:drittich
ID: 2690536
I am not sure if this would do it, but try unregistering the DLL:

C:\REGSVR32 PathToDLL\filename.dll /u

copying the new DLL in place,

and then re-registering

C:\REGSVR32 PathToDLL\filename.dll.

Another thing you could do which is more of a hack is to give the DLL a new name each time and register it as a new component.  This means modifying your ASP codew each time.  This is a last resort of course.  

0
 
LVL 2

Expert Comment

by:arikka
ID: 2690712
To stop IIS issue this command:
net stop iisadmin /y
To start Web Publishing Service again, use: net start w3svc.
What SP are you using..?

0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
LVL 9

Expert Comment

by:ShaunWilde
ID: 2690817
arikka is right you have stop the IIS service and restart it again - it is a pain.

A better way would be to test your dll in a harness app and then when you are happy you can use it from IIS - this will at least reduce the hassle of having to up and sown the server
0
 
LVL 2

Expert Comment

by:kubeerja
ID: 2691348
Use MTS (Microsoft Transaction Server)and register your component with it. Then you will be able to shut down the package (unload your dll) any time.

This is the best way.
0
 
LVL 10

Author Comment

by:makerp
ID: 2692588
stopping iis makes no difference. once the component has been used once i get this error in VC++ when ever i try to re-build the .dll  .

i think i need to re-do the question and get some feddback from some people who have developed asp componenets in VC++.

have any of you ?
0
 
LVL 10

Author Comment

by:makerp
ID: 2692699
This question has a deletion request Pending
0
 
LVL 9

Expert Comment

by:ShaunWilde
ID: 2692714
This question no longer is pending deletion
0
 
LVL 9

Expert Comment

by:ShaunWilde
ID: 2692715
>have any of you ?

yes - and that is how I got round my problem I also had to stop the web server also
0
 
LVL 1

Expert Comment

by:ajitm
ID: 2692878
u go to task manager and go to process tab and then find inetinfo.exe .End task wherever you find inetinfo.exe .
actually thing is even if u stop iis at times some inetinfo.exe is running which is still using that dll
hope this will help.
0
 
LVL 2

Accepted Solution

by:
kubeerja earned 200 total points
ID: 2693368
if you are using NT you have to close IIS from the services in the control panel and stop IIS Admin Service. if you are calling the component from ASP and interdev is runung , then you have to close the ASP pages that call the component in interdev because sometimes interdev keeps an insntance of that component.
0
 
LVL 10

Author Comment

by:makerp
ID: 2693448
nice one

thanx

0
 
LVL 9

Expert Comment

by:ShaunWilde
ID: 2693566
so which one was it? the IIS or the interdev that was causing the problem ?
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

C++ Properties One feature missing from standard C++ that you will find in many other Object Oriented Programming languages is something called a Property (http://www.experts-exchange.com/Programming/Languages/CPP/A_3912-Object-Properties-in-C.ht…
Article by: evilrix
Looking for a way to avoid searching through large data sets for data that doesn't exist? A Bloom Filter might be what you need. This data structure is a probabilistic filter that allows you to avoid unnecessary searches when you know the data defin…
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.
Suggested Courses

604 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question