473,466 Members | 1,413 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Question on building projects using VS .NET

Hello All,

I have a question as to why my users are noticing error when I am building
the project on the production system. Here is the problem's background.

In order to build the project on the production system, I use the Visual
Studio's File > Open From Web and then build the solution. Some of the build
settings are as follows:

Output path: bin
Project folder: c:\intepub\wwwroot\

IIS's home directory is also pointing to the same location i.e.,
c:\inetpub\wwwroot\
My problem is whenever I build the project on the server and if any of the
users are using the application they encounter an error since the project is
being built. Does any one know how I can prevent these errors?

I tried changing the output path to bin\dynamic leaving the project folder
as it is. I assumed that whenever I build the project the dll would be
created in bin\dynamic directory and the users would be using the dll in bin
directory and then I could copy the new dll from bin\dynamic to bin\ which
would prevent users from encountering the error. However, even after changing
the settings, users are noticing that error. Why is this happening? Does not
the App Domain use old dll which is in bin\ directory for the requests?

I tried to print the clrstack whenever I am building the project. Here is
the call stack in response to the error that is being noticed by the end users

0:000> !clrstack
Loaded Son of Strike data table version 5 from
"C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\msco rwks.dll"
Thread 0
ESP EIP
0x0730f6e8 0x7c90eb94 [FRAME: ECallMethodFrame] [DEFAULT] Void
System.Environment.ExitNative(I4)
0x0730f6f8 0x79a15596 [DEFAULT] Void System.Environment.Exit(I4)
0x0730f6fc 0x06c60f3b [DEFAULT] [hasThis] Void
SoftArtisans.Net.FileUpModule.AppDomainUnload(Obje ct,Class System.EventArgs)
0x0730f728 0x00bbb833 [FRAME: MulticastFrame] [DEFAULT] [hasThis] Void
System.EventHandler.Invoke(Object,Class System.EventArgs)
0x0730f73c 0x799f00ad [DEFAULT] [hasThis] Void
System.AppDomain.OnUnloadEvent()
0x0730f998 0x791d94bc [FRAME: ContextTransitionFrame]
0x0730fb58 0x791d94bc [FRAME: ECallMethodFrame] [DEFAULT] Void
System.AppDomain.nUnload(I4,Class System.Threading.Thread)
0x0730fb68 0x799f0005 [DEFAULT] [hasThis] Void
System.UnloadWorker.UnloadWithLock(Class System.AppDomain,Class
System.Threading.Thread)
0x0730fb94 0x799eff9e [DEFAULT] [hasThis] Void
System.UnloadThreadWorker.ThreadStart()
0x0730fdc0 0x791d94bc [FRAME: GCFrame]

Though I am not an expert in analyzing this stack, I can figure out that
application domain is being unloaded.
I assumed that .net framework does the shadow copy of the assembly into a
secure location and lock it. And whenever the assembly is changed it would
unload the application domain and drain stop that app domain. At the same
time it would create a new app domain and copy the new assembly and start
using that assembly to serve user's requests.

Why are the users noticing the error if the above assumptions are true? How
much is the time delay between switching from a old app domain to newly
created app domain? Would that delay result in errors?

Are the two events [ i) project being built ii) users accessing the
application ] related in any way?

Thanks!!
Mar 23 '06 #1
1 1425
You are letting users access your website while you are developing it??
You might consider a staging process, where you copy the project
(Project/Copy Project) to a separate server for your users to use.

Mar 23 '06 #2

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

Similar topics

55
by: Steve Jorgensen | last post by:
In a recent thread, RKC (correctly, I believe), took issue with my use of multiple parameters in a Property Let procedure to pass dimensional arguments on the basis that, although it works, it's...
2
by: Yuri O. | last post by:
Sorry if my question is quite naive, nevertheless : Will components written on C# with VS 2003 be applicable on legacy VS 2001. If no, please direct me to a safe way to provide backward...
2
by: Ed_P. | last post by:
Hello, Up to this point, I've been using C# to create simple applications that only use on Project to store Windows Forms and other Files. The project has been complied into an EXE. The exe file...
1
by: Player | last post by:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hello all I am using VS.NET 2003. What I am doing apart from teaching myself C# is learning my way round V.NET2003 also.
4
by: Andrew S. Giles | last post by:
Does anyone know if it is possible for an Event to be raised/fired in C++ and then caught/handled in C# and vice versa in a .NET environment? If so, does the C# and C++ code need to be in the same...
10
by: jojobar | last post by:
Hello, I am trying to use vs.net 2005 to migrate a project originally in vs.net 2003. I started with creation of a "web site", and then created folders for each component of the site. I read...
2
by: Gawel | last post by:
Hajo, I have soulutin with 7 library projects and 2 web projects. When I change something in one of the libraries and hit F5 it takes literally 1-2 minutes to start an application. I've...
9
by: Mike Hofer | last post by:
In a large application I'm working on (ASP.NET 1.1, VS2003), we have a base class that wraps stored procedures. Essentially, this base class (StoredProcedureBase) encapsulates the code to set up...
4
by: ramshankaryadav | last post by:
Hi, I'm facing a problem while building a project through MSBuild, this project is a part of a solution which has several other projects on which it depends, but I want to build this project...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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
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...
0
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...
0
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...
0
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 ...

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.