473,395 Members | 1,652 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,395 software developers and data experts.

dll missing when debugging ASP.Net WebApp?

Hi,

Everytime I change my code and hit the start debug button on the ASP.Net
WebApp project I often get a very annoying message saying such and such dll
is missing from ASP.Net temporary directory.

This is really strange it seems that there is a problem with Visual
Studio.Net compiler because to fix this I had to stop the webserver,
recompile (VS.Net rebuild), restart IIS and then start debugging.

Anyone has any suggestion about this problem?

--
Victor Hadianto
http://www.synop.com/Products/SauceReader/

Nov 18 '05 #1
8 1362
Hi Victor,

From your description, when you changed some code in your asp.net project
and hit F5 to debug the application, you'll often get message saying some
temp dll is not found ,yes?

As for the problem, I'd like to confirm the following things:
1. Is the problem occurs if you use Ctrl+F5 to run the project rather than
F5 DEBUG?

2. Any other asp.net web project also suffer this problem or just this one?
I suggest you try creating a new empty web project and add a simple asp.net
page (just use Response.Write to output some string) and perform the same
test to see whether the problem occurs.

Also, if you have anyother findings, please feel free to post here. Thanks.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Nov 18 '05 #2
Hi Steven thanks for your help.
1. Is the problem occurs if you use Ctrl+F5 to run the project rather than
F5 DEBUG?
It happen in both Ctrl+F5 and F5/Debug. I probably should also said that
this ASP.Net project share some common dll with another Windows Form project
in my solution. Now if I change the Windows Form project as the startup
project when I recompile the Windows Form project it seems to 'break' the
ASP.Net project as well. IE: my colleague who is using my box as the
webserver (sharing the same project but only working on JavaScript) also see
the missing *.dll problems (after I recompile)
2. Any other asp.net web project also suffer this problem or just this
one?

I don't have any other ASP.Net web project so I can't confirm this issue :)
However I will try to create some new one to follow your suggestion and I
will post more finding here.

Update:

I got frustrated so I delete the temporary directory in
C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Tempo rary ASP.NET Files\[My web
project name]

and it seems to fix the problem for a couple of hours before this problem
start reappearing again.
--
Victor Hadianto
http://synop.com/Products/SauceReader/
Nov 18 '05 #3
Hi Victor,

Thanks for your followup. As you mentioned that the asp.net project is
sharing some common assemblies with another winform project in the same
solution. Are the common assembly also a single project in the solution and
is refernced by project? This info does make much sense. Sometimes such
multi-reference will cause some strange behaviors.
Also, I think the problem is likely only againt the particular project. But
you can still perform some tests on a new clean web project to confirm
this. Anyway, please let me know if you meet this problem again or have any
new findings. Thanks.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Nov 18 '05 #4
Hi Steven,

Let me explain the situation of my solution so for example we have:

MySolution.sln
-----> Util.dll
-----> App.exe (reference Util.dll)
-----> Web App (reference Util.dll)

So I have a couple of common projects are are reference by both a WinForm
project and Web App project. I simply switch between the two to tbe the
"Startup Project".

And this problem still happen. I found a way to fix this though which is the
following:

* Press F5 to debug the app
* IE will show up and I get the missing DLL problem
* Stop the debug
* Stop IIS
* Rebuild the web application
* Restart IIS
* Press F5 to debug the app
* IE will show up and this time it'll be OK.

This method works 100% for me. Don't know why. Maybe for some reason the
first F5 does not override/build the dll correctly while IIS is still
running.

Is this a known bug?
--
Victor Hadianto
http://synop.com/Products/SauceReader/
Hi Victor,

Thanks for your followup. As you mentioned that the asp.net project is
sharing some common assemblies with another winform project in the same
solution. Are the common assembly also a single project in the solution
and
is refernced by project? This info does make much sense. Sometimes such
multi-reference will cause some strange behaviors.
Also, I think the problem is likely only againt the particular project.
But
you can still perform some tests on a new clean web project to confirm
this. Anyway, please let me know if you meet this problem again or have
any
new findings. Thanks.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Nov 18 '05 #5
Hi Victor,

Thanks for your followup. Is the Util.dll assembly you mentioned a pure
net assembly? Also, is it strongnamed or not? I think you can try
separate the winform app from the asp.net first, make another copy of the
Util.dll and then reference the Util.dll in asp.net with one and reference
in the winform app with another. And then, build the asp.net project and
run again to see whether the problem still occurs.
In addition, I suggest that we use the filemon tool to have a trace to see
the actual missing assembly info.

Thanks.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
Nov 18 '05 #6
Hi Victor,

Have you got any further progress on this issue or have you resolved it? If
there're anything else we can help, please feel free to post here. Thanks.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Nov 18 '05 #7
Hi Steven,

Well we still don't have a resolution yet on this issue, but I found another
workaround which is quicker and acceptable enough for us. This is the
behaviour:

* Hit F5 for debug
* ASP.Net will display the missing dll problem on IE.
* Close IE, automatically go to the VS.Net IDE
* Then "Build" the current project. Just "Build Proejct" not "Build
Solution" that wont work. Don't really know why.
* Hit F5 again and everything works OK.

Note that you can't (100%) do "Build" before encountering the problem first.
I thought about this initially and this simply doesn't work so you have to
ecounter the missing dll problem -> stop -> build current project -> F5.
This seems to be good enough solution for us at the moment.

--
Victor Hadianto
http://synop.com/Products/SauceReader/

"Steven Cheng[MSFT]" <v-******@online.microsoft.com> wrote in message
news:cb**************@cpmsftngxa10.phx.gbl...
Hi Victor,

Have you got any further progress on this issue or have you resolved it?
If
there're anything else we can help, please feel free to post here. Thanks.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Nov 18 '05 #8
Thanks for your followup Victor.

Glad that you've found some better means to work through it.
Still think the problem due to assembly referencing issue. Anyway, if you
meet any further problem later, please feel free to post here. Thanks.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Nov 18 '05 #9

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

Similar topics

3
by: Dennis Wheeler | last post by:
I'm trying to find a commandline solution for switching projects. Currently I have to modify the IIS virtual directory path to the source files, and then open the solution file in .Net to be...
1
by: AVXl | last post by:
Hello All, I have a IIS server with .net framework/and studio, I have few questions for debugging: WebApplications Debugging: How to setup debugging on the server I have my Dev PC through...
2
by: Adam Clauss | last post by:
I have an ASP.NET (C#) web app on a remote server. Whenever I try to debug it, I get: "Error while trying to run project: Unable to start debugging on the web server. Access is denied." I did...
1
by: Steven Spits | last post by:
Hi group, We have installed our first ASP.NET WebApp on our preproduction server. The site stores some general user information in session variables that are needed in every page. So loosing...
0
by: yurps | last post by:
Is there any way I can automate having to login to my asp.net webapp every time I debug code...I need to login to get to the page I am debugging because the user session object is created on the...
14
by: | last post by:
I cannot for the life of me get remove debugging to work. I continue to receive "Error while trying to run project: Unable to start debugging on the web server. Access is denied. Verify that you...
2
by: joer.banno | last post by:
Hi, In a webapp I'm writing I need to know if another webapp is running (both of which are asp.net), is there a way that you can check for the presence of another webapp? The problem is that...
6
by: Miro | last post by:
I can run an exe ( and its install ) i have created on my machine. The exe has a button that populates a dataset and then shoots it to a crystal report. But... Installing the setup.exe on my...
4
by: Miro | last post by:
<i have also added this reply to the other newsgroup - now that I have realizd ( and assuming ) it is not a localized error directly to vb.> I have found this link on the website:...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
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...
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...

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.