473,804 Members | 3,113 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Bizarre and annoying compiler error message.

I have a VS 2003 C# project, web app with a bunch of DLL's. When I compile
my project I often times get this message:

Unexpected error creating debug information file 'C:\DevProjects \Allstar
Admin\Allstar.C ommon.DataAcces s\obj\Debug\All star.Common.Dat aAccess.PDB' --
'C:\DevProjects \Allstar
Admin\Allstar.C ommon.DataAcces s\obj\Debug\All star.Common.Dat aAccess.pdb: The
process cannot access the file because it is being used by another process.
'

If I exit Visual Studio and delete the obj directory under the DLL giving me
problems and they reload VS it works fine, but this is not a very good
solution.

I have read posts that say to change to Release from Debug and back but that
is only temporary too and does not always work.

Obviously DEVENV.EXE has ahold of my DLL. Any ideas how to fix this with
compiler settings or code changes to be aware of?

I have also read to not have Enums inside my class, I did, and moved them to
just inside the namespace but that did not help either.

Finally, my project consists of a few User Controls which use this DLL. I
cannot determine when the error starts, I may do a build 10 times with no
problem but number 11 will be the problem, other times it takes 5 builds.

Thank you in advance,
Rob Bazinet

Jul 22 '05 #1
6 4024
> If I exit Visual Studio and delete the obj directory under the DLL giving me
problems and they reload VS it works fine, but this is not a very good
solution. If you exit VS and restart without deleting the obj directory, does it work?

Since VS.NET is locking the Assembly, restarting should fix the issue without deleting the directory.

Try setting "CopyLocal" to true in the property grid on the assembly reference, if it is not already.

This will provide a copy of the referenced Assembly to VS.NET so that it can lock it for intellisense (which is what the cause of
your problem is, most likely).

--
Dave Sexton
dave@www..jwaon line..com
-----------------------------------------------------------------------
"rbazinet" <rb******@discu ssions.microsof t.com> wrote in message news:B5******** *************** ***********@mic rosoft.com...I have a VS 2003 C# project, web app with a bunch of DLL's. When I compile
my project I often times get this message:

Unexpected error creating debug information file 'C:\DevProjects \Allstar
Admin\Allstar.C ommon.DataAcces s\obj\Debug\All star.Common.Dat aAccess.PDB' --
'C:\DevProjects \Allstar
Admin\Allstar.C ommon.DataAcces s\obj\Debug\All star.Common.Dat aAccess.pdb: The
process cannot access the file because it is being used by another process.
'

If I exit Visual Studio and delete the obj directory under the DLL giving me
problems and they reload VS it works fine, but this is not a very good
solution.

I have read posts that say to change to Release from Debug and back but that
is only temporary too and does not always work.

Obviously DEVENV.EXE has ahold of my DLL. Any ideas how to fix this with
compiler settings or code changes to be aware of?

I have also read to not have Enums inside my class, I did, and moved them to
just inside the namespace but that did not help either.

Finally, my project consists of a few User Controls which use this DLL. I
cannot determine when the error starts, I may do a build 10 times with no
problem but number 11 will be the problem, other times it takes 5 builds.

Thank you in advance,
Rob Bazinet

Jul 22 '05 #2
Dave,

Thanks for the reply.

Yes, if I exit VS and go back in I do not have to delete the obj directory.
I am looking for a solution to my problem that can keep me in VS without
having to exit.

All of my DLL references for DLL are set to CopyLocal=true. Since I have a
bunch of other DLL's and this is not happening then it must be something
different about this DLL and this is the guidance I am looking for.

If I do a Google search on this problem I see it all over the place but no
real answers except exiting VS, which is not a solution.

-Rob
"Dave" wrote:
If I exit Visual Studio and delete the obj directory under the DLL giving me
problems and they reload VS it works fine, but this is not a very good
solution.

If you exit VS and restart without deleting the obj directory, does it work?

Since VS.NET is locking the Assembly, restarting should fix the issue without deleting the directory.

Try setting "CopyLocal" to true in the property grid on the assembly reference, if it is not already.

This will provide a copy of the referenced Assembly to VS.NET so that it can lock it for intellisense (which is what the cause of
your problem is, most likely).

--
Dave Sexton
dave@www..jwaon line..com
-----------------------------------------------------------------------
"rbazinet" <rb******@discu ssions.microsof t.com> wrote in message news:B5******** *************** ***********@mic rosoft.com...
I have a VS 2003 C# project, web app with a bunch of DLL's. When I compile
my project I often times get this message:

Unexpected error creating debug information file 'C:\DevProjects \Allstar
Admin\Allstar.C ommon.DataAcces s\obj\Debug\All star.Common.Dat aAccess.PDB' --
'C:\DevProjects \Allstar
Admin\Allstar.C ommon.DataAcces s\obj\Debug\All star.Common.Dat aAccess.pdb: The
process cannot access the file because it is being used by another process.
'

If I exit Visual Studio and delete the obj directory under the DLL giving me
problems and they reload VS it works fine, but this is not a very good
solution.

I have read posts that say to change to Release from Debug and back but that
is only temporary too and does not always work.

Obviously DEVENV.EXE has ahold of my DLL. Any ideas how to fix this with
compiler settings or code changes to be aware of?

I have also read to not have Enums inside my class, I did, and moved them to
just inside the namespace but that did not help either.

Finally, my project consists of a few User Controls which use this DLL. I
cannot determine when the error starts, I may do a build 10 times with no
problem but number 11 will be the problem, other times it takes 5 builds.

Thank you in advance,
Rob Bazinet


Jul 22 '05 #3
This is where I found my information, but I couldn't find anything about your particular "debug file" issue other than in the
compiler documentation and that didn't add anything useful:

http://support.microsoft.com/default...b;en-us;313512

Maybe VS.net is locking your debug file when it loads your UserControls into the toolbox, but other than that I see no reason for
VS.net to even need the .pdb file.

Sorry I couldn't help more.

--
Dave Sexton
dave@www..jwaon line..com
-----------------------------------------------------------------------
"rbazinet" <rb******@discu ssions.microsof t.com> wrote in message news:8D******** *************** ***********@mic rosoft.com...
Dave,

Thanks for the reply.

Yes, if I exit VS and go back in I do not have to delete the obj directory.
I am looking for a solution to my problem that can keep me in VS without
having to exit.

All of my DLL references for DLL are set to CopyLocal=true. Since I have a
bunch of other DLL's and this is not happening then it must be something
different about this DLL and this is the guidance I am looking for.

If I do a Google search on this problem I see it all over the place but no
real answers except exiting VS, which is not a solution.

-Rob
"Dave" wrote:
> If I exit Visual Studio and delete the obj directory under the DLL giving me
> problems and they reload VS it works fine, but this is not a very good
> solution.

If you exit VS and restart without deleting the obj directory, does it work?

Since VS.NET is locking the Assembly, restarting should fix the issue without deleting the directory.

Try setting "CopyLocal" to true in the property grid on the assembly reference, if it is not already.

This will provide a copy of the referenced Assembly to VS.NET so that it can lock it for intellisense (which is what the cause of
your problem is, most likely).

--
Dave Sexton
dave@www..jwaon line..com
-----------------------------------------------------------------------
"rbazinet" <rb******@discu ssions.microsof t.com> wrote in message news:B5******** *************** ***********@mic rosoft.com...
>I have a VS 2003 C# project, web app with a bunch of DLL's. When I compile
> my project I often times get this message:
>
> Unexpected error creating debug information file 'C:\DevProjects \Allstar
> Admin\Allstar.C ommon.DataAcces s\obj\Debug\All star.Common.Dat aAccess.PDB' --
> 'C:\DevProjects \Allstar
> Admin\Allstar.C ommon.DataAcces s\obj\Debug\All star.Common.Dat aAccess.pdb: The
> process cannot access the file because it is being used by another process.
> '
>
> If I exit Visual Studio and delete the obj directory under the DLL giving me
> problems and they reload VS it works fine, but this is not a very good
> solution.
>
> I have read posts that say to change to Release from Debug and back but that
> is only temporary too and does not always work.
>
> Obviously DEVENV.EXE has ahold of my DLL. Any ideas how to fix this with
> compiler settings or code changes to be aware of?
>
> I have also read to not have Enums inside my class, I did, and moved them to
> just inside the namespace but that did not help either.
>
> Finally, my project consists of a few User Controls which use this DLL. I
> cannot determine when the error starts, I may do a build 10 times with no
> problem but number 11 will be the problem, other times it takes 5 builds.
>
> Thank you in advance,
> Rob Bazinet
>


Jul 22 '05 #4
I just read about the same issue in Frans Boumas blog:

http://weblogs.asp.net/fbouma/archive/2005/07/13.aspx

There is a link in the blog to an MSDN KB article. Apparently there is a
fix, but you have to request it.

HTH
Dan

"rbazinet" wrote:
I have a VS 2003 C# project, web app with a bunch of DLL's. When I compile
my project I often times get this message:

Unexpected error creating debug information file 'C:\DevProjects \Allstar
Admin\Allstar.C ommon.DataAcces s\obj\Debug\All star.Common.Dat aAccess.PDB' --
'C:\DevProjects \Allstar
Admin\Allstar.C ommon.DataAcces s\obj\Debug\All star.Common.Dat aAccess.pdb: The
process cannot access the file because it is being used by another process.
'

If I exit Visual Studio and delete the obj directory under the DLL giving me
problems and they reload VS it works fine, but this is not a very good
solution.

I have read posts that say to change to Release from Debug and back but that
is only temporary too and does not always work.

Obviously DEVENV.EXE has ahold of my DLL. Any ideas how to fix this with
compiler settings or code changes to be aware of?

I have also read to not have Enums inside my class, I did, and moved them to
just inside the namespace but that did not help either.

Finally, my project consists of a few User Controls which use this DLL. I
cannot determine when the error starts, I may do a build 10 times with no
problem but number 11 will be the problem, other times it takes 5 builds.

Thank you in advance,
Rob Bazinet

Jul 22 '05 #5
Dan,

Thank you for the post. It's interesting to see it is such a widespread
issue with a solution that is not publicly available. I called Microsoft and
requested the fix, I have installed it and all seems good so far.

FWIW, the tech I spoke with on the C# Support Team said a service pack for
VS.NET 2003 is expected in August/September timeframe.

-Rob
"Dan Kelley" wrote:
I just read about the same issue in Frans Boumas blog:

http://weblogs.asp.net/fbouma/archive/2005/07/13.aspx

There is a link in the blog to an MSDN KB article. Apparently there is a
fix, but you have to request it.

HTH
Dan

"rbazinet" wrote:
I have a VS 2003 C# project, web app with a bunch of DLL's. When I compile
my project I often times get this message:

Unexpected error creating debug information file 'C:\DevProjects \Allstar
Admin\Allstar.C ommon.DataAcces s\obj\Debug\All star.Common.Dat aAccess.PDB' --
'C:\DevProjects \Allstar
Admin\Allstar.C ommon.DataAcces s\obj\Debug\All star.Common.Dat aAccess.pdb: The
process cannot access the file because it is being used by another process.
'

If I exit Visual Studio and delete the obj directory under the DLL giving me
problems and they reload VS it works fine, but this is not a very good
solution.

I have read posts that say to change to Release from Debug and back but that
is only temporary too and does not always work.

Obviously DEVENV.EXE has ahold of my DLL. Any ideas how to fix this with
compiler settings or code changes to be aware of?

I have also read to not have Enums inside my class, I did, and moved them to
just inside the namespace but that did not help either.

Finally, my project consists of a few User Controls which use this DLL. I
cannot determine when the error starts, I may do a build 10 times with no
problem but number 11 will be the problem, other times it takes 5 builds.

Thank you in advance,
Rob Bazinet

Jul 22 '05 #6
Dave,

Your help is much appreciated. If you look at Dan Kelley's post on this
thread you can see a link to somone else who has the problem and the fix. It
seems MS has a hotfix for this problem that is available by request.

Thanks,
Rob
"Dave" wrote:
This is where I found my information, but I couldn't find anything about your particular "debug file" issue other than in the
compiler documentation and that didn't add anything useful:

http://support.microsoft.com/default...b;en-us;313512

Maybe VS.net is locking your debug file when it loads your UserControls into the toolbox, but other than that I see no reason for
VS.net to even need the .pdb file.

Sorry I couldn't help more.

--
Dave Sexton
dave@www..jwaon line..com
-----------------------------------------------------------------------
"rbazinet" <rb******@discu ssions.microsof t.com> wrote in message news:8D******** *************** ***********@mic rosoft.com...
Dave,

Thanks for the reply.

Yes, if I exit VS and go back in I do not have to delete the obj directory.
I am looking for a solution to my problem that can keep me in VS without
having to exit.

All of my DLL references for DLL are set to CopyLocal=true. Since I have a
bunch of other DLL's and this is not happening then it must be something
different about this DLL and this is the guidance I am looking for.

If I do a Google search on this problem I see it all over the place but no
real answers except exiting VS, which is not a solution.

-Rob
"Dave" wrote:
> If I exit Visual Studio and delete the obj directory under the DLL giving me
> problems and they reload VS it works fine, but this is not a very good
> solution.
If you exit VS and restart without deleting the obj directory, does it work?

Since VS.NET is locking the Assembly, restarting should fix the issue without deleting the directory.

Try setting "CopyLocal" to true in the property grid on the assembly reference, if it is not already.

This will provide a copy of the referenced Assembly to VS.NET so that it can lock it for intellisense (which is what the cause of
your problem is, most likely).

--
Dave Sexton
dave@www..jwaon line..com
-----------------------------------------------------------------------
"rbazinet" <rb******@discu ssions.microsof t.com> wrote in message news:B5******** *************** ***********@mic rosoft.com...
>I have a VS 2003 C# project, web app with a bunch of DLL's. When I compile
> my project I often times get this message:
>
> Unexpected error creating debug information file 'C:\DevProjects \Allstar
> Admin\Allstar.C ommon.DataAcces s\obj\Debug\All star.Common.Dat aAccess.PDB' --
> 'C:\DevProjects \Allstar
> Admin\Allstar.C ommon.DataAcces s\obj\Debug\All star.Common.Dat aAccess.pdb: The
> process cannot access the file because it is being used by another process.
> '
>
> If I exit Visual Studio and delete the obj directory under the DLL giving me
> problems and they reload VS it works fine, but this is not a very good
> solution.
>
> I have read posts that say to change to Release from Debug and back but that
> is only temporary too and does not always work.
>
> Obviously DEVENV.EXE has ahold of my DLL. Any ideas how to fix this with
> compiler settings or code changes to be aware of?
>
> I have also read to not have Enums inside my class, I did, and moved them to
> just inside the namespace but that did not help either.
>
> Finally, my project consists of a few User Controls which use this DLL. I
> cannot determine when the error starts, I may do a build 10 times with no
> problem but number 11 will be the problem, other times it takes 5 builds.
>
> Thank you in advance,
> Rob Bazinet
>


Jul 22 '05 #7

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

Similar topics

4
2172
by: Alan Little | last post by:
This is very bizarre. Could someone else have a look at this? Maybe you can see something I'm overlooking. Go here: http://www.newsletters.forbes.com/enews/admin/deliver.php4 U: bugtest P: test Enter 1 for "How many files in this delivery?" and select a file to upload, in one of the listed formats. Scroll down and click "Test Email".
22
1802
by: Elbert Lev | last post by:
# here is the problem I ran into: class foo: def __init__(self, host): self.f() self.r = True def f(self): if self.r: #<do something>
2
2112
by: Teddy | last post by:
Hello all I've just upgraded my g++ compiler to 3.3.3 on Cygwin. But there is always a annoying warnig message "no new line at end of file" no matter what code you writes. How to get rid of that warnig message ?
6
257
by: rbazinet | last post by:
I have a VS 2003 C# project, web app with a bunch of DLL's. When I compile my project I often times get this message: Unexpected error creating debug information file 'C:\DevProjects\Allstar Admin\Allstar.Common.DataAccess\obj\Debug\Allstar.Common.DataAccess.PDB' -- 'C:\DevProjects\Allstar Admin\Allstar.Common.DataAccess\obj\Debug\Allstar.Common.DataAccess.pdb: The process cannot access the file because it is being used by another...
52
5222
by: Michael Hopkins | last post by:
Hi all We all know that C++ is a cleverly conceived multi-paradigm language that sacrifices very little in efficiency for what it delivers in terms of type-safety, encapsulation and generic behaviour. What I want to ask here is - what are the features that people most dislike about it i.e. that: - make it more difficult than necessary to implement designs
4
2322
by: Neo Geshel | last post by:
Just moved to C# from VB.NET, frustrated to hell and back by inability to get much-copied (from about 20+ different resources) literal example to work. Master Page content: <meta name="keywords" content="<asp:Literal ID="ltrlKeywords" Runat="server" />"></meta> Code-Behind:
0
371
by: ckfan.painter | last post by:
I've run into a seemingly bizarre problem with insert() for std::vector. (This was done on Microsoft Visual C++ 2005 express version 8...maybe it is a compiler specific bug?) Here's the code: //=================== // vector tester 3.cpp : main project file.
3
3589
by: Don Miller | last post by:
I have a bizarre problem when I try to validate XML documents and their schemas once they have been opened and transfered to a Visual Web Developer 2005 Express project. I receive validation errors for XML/XSDs that worked fine when first created in another environment (XMLSpy trial). I have a source XML document and an XSD file created wtih XMLSpy and stored in a separate folder. When I run a very simple VBScript to validate the XML...
6
1618
by: =?Utf-8?B?QWxhbiBXaWxsaWFtcy1LZXk=?= | last post by:
I am being bugged by some bizarre compiler errors when compiling in debug configuration (but not in release). Here is a test function... void test() { int i = 1; ASSERT(i==0); } When I compile this on my PC I get the following
0
9579
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,...
0
10578
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10332
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10077
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...
1
7620
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
5522
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...
0
5651
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3820
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2991
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.