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 6 4023
> 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
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
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 >
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
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
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 > This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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".
|
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>
|
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 ?
|
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...
|
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
| |
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:
|
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.
|
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...
|
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
|
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...
|
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...
| |
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,...
|
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...
|
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...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
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
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
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...
| |