Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DLL hell continues 1

Status
Not open for further replies.

harmmeijer

Programmer
Mar 1, 2001
869
CN
.NET no more DLL hell, sad but allso no less.
Just replace the dll, I don't think so.
What is this error about:
Unable to write to output file 'C:\Documents and Settings\username\My Documents\Visual Studio Projects\ClassLibrary1\obj\Debug\temp\Authors.pdb': Access is denied.

Looks familiar?

Tried to delete it but get the same sht as in vb6 (source file is in use)


Does anybody know what this is about??
In .NET you are supposed to install components by copying and pasting them.
 
Hey harm,

Try this: shut down your computer, restart it, and try and access it then.

We ran into similar problems, and although we didn't get an official response about what caused it, here's what we came up with:

The pdb file you talk about is some sort of debugging log file. If it says that it can't output to the file, it probably means that its still being used. Are you using Visual Studio, and thats where your error is coming from? If so, it could be that your web application hasn't gotten rid of some objects that are still using your dll. Thats what we found to be our problem: IIS would still hold on to those objects, and since garbage collection only happens every so often, those objects can stay active, holding on to the dll code for a while.

So try restarting your pc (which will kill all the sessions assuming you're running IIS locally), and try and do the copy/paste thing again. I bet you'll find it works like a charm.

If not let me know and we can look at something else.
:)

Jack
 
On an aside, I think they have made the whole DLL thing better. Its just changed from
DLL Hell

to

DLL Purgatory
;)

Jack
 
and just FYI, IIS probably has ahold of that file, and instead of restarting the computer, you can stop IIS Admin service, and then you should be able to delete it.
penny1.gif
penny1.gif
 
Good point link.

Stopping the IIS will probably release it, although restarting will definately do the job.

Jack

 
I used to have to do that with MTS and COM+. Sometimes The DLL was referenced directly by IIS and stopping the MTS or COM+ application did not help (file keeps on beeing locked).
Allso jfrost10 was right, I was a little bit harsh this could not be called DLL hell, not even Purgatory. More like a DLL bad holliday.
The Authors.pdb was probably there for debugging reasons wich by the way are exelent.
Now I get the line, line number and exact error of the com component, no more debugging with msgbox.

One more strange thing though, I had an asp.net web application wich runs fine. But when I log in as another user and open the project it tells me that the reference to Authors (a com component) is no good.
Even when I add the reference it still does not work.
By the way the Authors.dll (Authors.clsauthors) is in the BIN directory.
 
Hi harmmeijer,

I'm trying to use my dll's without registering them. When you set up yours, did you use webServiceutil.exe to compile the dll? From what I have been reading, I'm told I need this exe but it wasn't in my downloads from .Net Framework and .Net Framework SDK. Any advice would be much appreciated.
 
When you say you created a reference, do you mean a declaring and instantiating the object. For example,
dim mobjTask as Object
mobjTask = server.Createobject("WanCMSBus.CTask")
WanCMSBus is the name of my dll

Or do I have to something else to reference the dll?
By the way, your last post was a big help.
Thanks
 
Well, the second part (when you do not have visual studio .net) I could not make it work.
There is a thread open for that but did not get any answers wich solved it so I cannot comment on that one.
See url:
thread855-247001 I just installed visual studio .net.
If you open a web project and select view -> solution explorer. There should be a references node in the solutions explorer list.
Left click this one and add a reference.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top