473,721 Members | 1,763 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

App domain recycling issue in 2.0 but latest VS2003 SP1 seems to fix it - why?

Hi all,

Here's the link to the issue we were seeing on our ASP.NET system when
modifying, adding and deleting directories in framework 2.0.
http://blogs.msdn.com/toddca/archive...01/499144.aspx

I then tried a few of solution I found while perusing Google,
- FCNMode registry mod
- Relocating to App_Data folder to create/modify/delete directories.

No difference, behavior remained.

However, since installing the latest Visual Studio 2003 Service Pack 1 this
behavior has gone in my dev environment - or at least I believe this is the
reason, as directories are being created and deleted without the application
recycling.

I'm running Windows XP SP2
vs2003 standard edition
vs2005 standard edition upgrade
Framework 1.0, 1.1 SP1 and 2.0 rtm

Just a bit of background, The system was originally written in vs2003 but
has been converted to vs2005. I have deployed both systems on our test
win2000 server, vs2003 on framework 1.1 version works fine no problems and
will easily create and delete directories while the vs2005 conversion
running on framework 2.0 still exhibits the recycling behavior explained in
Todd Carter's link, which was exactly the same code coming from my xp dev
machine, minus the recent service pack install for vs2003.

So being a little perplexed how does a fix for an IDE directed at framework
1.1 fix the issue we were having for framework 2.0, is anyone else seeing
this behavior change after this service pack is applied - or even better can
a Microsoft representative comment? as the release note does not mention any
changes/fixes for the appdomain.

I just want to know why this is happening and whether this will be included
in a coming service pack for framework 2, as having to include vs2003 +
vs2003SP1 in our installer for each client deployment is absurd.

regards

Tony
Aug 22 '06 #1
5 2224
I assume you've checked the obvous thing - that the app is still running
as a 2.0 app and that the 1.1 SP hasn't 'updated' the app to be 1.1?

Kevin

Tony wrote:
Hi all,

Here's the link to the issue we were seeing on our ASP.NET system when
modifying, adding and deleting directories in framework 2.0.
http://blogs.msdn.com/toddca/archive...01/499144.aspx

I then tried a few of solution I found while perusing Google,
- FCNMode registry mod
- Relocating to App_Data folder to create/modify/delete directories.

No difference, behavior remained.

However, since installing the latest Visual Studio 2003 Service Pack 1 this
behavior has gone in my dev environment - or at least I believe this is the
reason, as directories are being created and deleted without the application
recycling.

I'm running Windows XP SP2
vs2003 standard edition
vs2005 standard edition upgrade
Framework 1.0, 1.1 SP1 and 2.0 rtm

Just a bit of background, The system was originally written in vs2003 but
has been converted to vs2005. I have deployed both systems on our test
win2000 server, vs2003 on framework 1.1 version works fine no problems and
will easily create and delete directories while the vs2005 conversion
running on framework 2.0 still exhibits the recycling behavior explained in
Todd Carter's link, which was exactly the same code coming from my xp dev
machine, minus the recent service pack install for vs2003.

So being a little perplexed how does a fix for an IDE directed at framework
1.1 fix the issue we were having for framework 2.0, is anyone else seeing
this behavior change after this service pack is applied - or even better can
a Microsoft representative comment? as the release note does not mention any
changes/fixes for the appdomain.

I just want to know why this is happening and whether this will be included
in a coming service pack for framework 2, as having to include vs2003 +
vs2003SP1 in our installer for each client deployment is absurd.

regards

Tony

Aug 22 '06 #2
Hi Kevin,

Yes, that was one of the areas I checked before posting.

In IIS Properties ASP.NET the version is still set to 2.0.50727.

I also knew during development and having a play around in conguration that
if i ran the converted app in framework 1.1, the system would throw parser
errors (which would be due to the classes in the .apsx pages being partial
which is only supported in framework 2.0)

<snip>
Server Error in '/' Application.

Parser Error
Description: An error occurred during the parsing of a resource required to
service this request. Please review the following specific parse error
details and modify your source file appropriately.

Parser Error Message: Could not load type 'Web.Global'.

Source Error:

Line 1: <%@ Application Codebehind="Glo bal.asax.cs" Inherits="Web.G lobal"
%>
Source File: D:\Dev_NET\CM\W ebApp\global.as ax Line: 1

--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.1.432 2.2032; ASP.NET
Version:1.1.432 2.2032
</snip>

So as a quick test I flicked it over to 1.1 and I received the above
message, returned to 2.0 and everything was up and running again.

so to reiterate, System copy running on windows 2000

framework 2.0 : definitely recycles when in run the code calling
Directory.Delet e(). (still no vs2003 service pack)
framework 1.1 : no problems

my dev enviroment (prior vs2003 sp1 install) : recycled
my dev environment (post vs2003 sp1 install) : no problems.

Any other ideas? Thanks in advance.

regards

Tony

"Kevin Jones" <kj**********@d evelop.comwrote in message
news:up******** ******@TK2MSFTN GP03.phx.gbl...
>I assume you've checked the obvous thing - that the app is still running as
a 2.0 app and that the 1.1 SP hasn't 'updated' the app to be 1.1?

Kevin

Tony wrote:
>Hi all,

Here's the link to the issue we were seeing on our ASP.NET system when
modifying, adding and deleting directories in framework 2.0.
http://blogs.msdn.com/toddca/archive...01/499144.aspx

I then tried a few of solution I found while perusing Google,
- FCNMode registry mod
- Relocating to App_Data folder to create/modify/delete directories.

No difference, behavior remained.

However, since installing the latest Visual Studio 2003 Service Pack 1
this behavior has gone in my dev environment - or at least I believe this
is the reason, as directories are being created and deleted without the
application recycling.

I'm running Windows XP SP2
vs2003 standard edition
vs2005 standard edition upgrade
Framework 1.0, 1.1 SP1 and 2.0 rtm

Just a bit of background, The system was originally written in vs2003 but
has been converted to vs2005. I have deployed both systems on our test
win2000 server, vs2003 on framework 1.1 version works fine no problems
and will easily create and delete directories while the vs2005 conversion
running on framework 2.0 still exhibits the recycling behavior explained
in Todd Carter's link, which was exactly the same code coming from my xp
dev machine, minus the recent service pack install for vs2003.

So being a little perplexed how does a fix for an IDE directed at
framework 1.1 fix the issue we were having for framework 2.0, is anyone
else seeing this behavior change after this service pack is applied - or
even better can a Microsoft representative comment? as the release note
does not mention any changes/fixes for the appdomain.

I just want to know why this is happening and whether this will be
included in a coming service pack for framework 2, as having to include
vs2003 + vs2003SP1 in our installer for each client deployment is
absurd.

regards

Tony
Aug 22 '06 #3
Thought I'd ask the obvious question :)

Sorry, in that case I'm as stumped as you - and I haven't had to use 1.1
for a while so haven't installed the SP

Kevin

Tony wrote:
Hi Kevin,

Yes, that was one of the areas I checked before posting.

In IIS Properties ASP.NET the version is still set to 2.0.50727.

I also knew during development and having a play around in conguration that
if i ran the converted app in framework 1.1, the system would throw parser
errors (which would be due to the classes in the .apsx pages being partial
which is only supported in framework 2.0)

<snip>
Server Error in '/' Application.

Parser Error
Description: An error occurred during the parsing of a resource required to
service this request. Please review the following specific parse error
details and modify your source file appropriately.

Parser Error Message: Could not load type 'Web.Global'.

Source Error:

Line 1: <%@ Application Codebehind="Glo bal.asax.cs" Inherits="Web.G lobal"
%>
Source File: D:\Dev_NET\CM\W ebApp\global.as ax Line: 1

--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.1.432 2.2032; ASP.NET
Version:1.1.432 2.2032
</snip>

So as a quick test I flicked it over to 1.1 and I received the above
message, returned to 2.0 and everything was up and running again.

so to reiterate, System copy running on windows 2000

framework 2.0 : definitely recycles when in run the code calling
Directory.Delet e(). (still no vs2003 service pack)
framework 1.1 : no problems

my dev enviroment (prior vs2003 sp1 install) : recycled
my dev environment (post vs2003 sp1 install) : no problems.

Any other ideas? Thanks in advance.

regards

Tony

"Kevin Jones" <kj**********@d evelop.comwrote in message
news:up******** ******@TK2MSFTN GP03.phx.gbl...
>I assume you've checked the obvous thing - that the app is still running as
a 2.0 app and that the 1.1 SP hasn't 'updated' the app to be 1.1?

Kevin

Tony wrote:
>>Hi all,

Here's the link to the issue we were seeing on our ASP.NET system when
modifying, adding and deleting directories in framework 2.0.
http://blogs.msdn.com/toddca/archive...01/499144.aspx

I then tried a few of solution I found while perusing Google,
- FCNMode registry mod
- Relocating to App_Data folder to create/modify/delete directories.

No difference, behavior remained.

However, since installing the latest Visual Studio 2003 Service Pack 1
this behavior has gone in my dev environment - or at least I believe this
is the reason, as directories are being created and deleted without the
application recycling.

I'm running Windows XP SP2
vs2003 standard edition
vs2005 standard edition upgrade
Framework 1.0, 1.1 SP1 and 2.0 rtm

Just a bit of background, The system was originally written in vs2003 but
has been converted to vs2005. I have deployed both systems on our test
win2000 server, vs2003 on framework 1.1 version works fine no problems
and will easily create and delete directories while the vs2005 conversion
running on framework 2.0 still exhibits the recycling behavior explained
in Todd Carter's link, which was exactly the same code coming from my xp
dev machine, minus the recent service pack install for vs2003.

So being a little perplexed how does a fix for an IDE directed at
framework 1.1 fix the issue we were having for framework 2.0, is anyone
else seeing this behavior change after this service pack is applied - or
even better can a Microsoft representative comment? as the release note
does not mention any changes/fixes for the appdomain.

I just want to know why this is happening and whether this will be
included in a coming service pack for framework 2, as having to include
vs2003 + vs2003SP1 in our installer for each client deployment is
absurd.

regards

Tony
Aug 22 '06 #4
I tried a few more things on my dev machine.

Restarted IIS
iisreset /restart

checked application - no recycling

Brought up vs2005 command prompt and navigated to v2.0 folder and ran
aspnet_iisreg.e xe -i

checked application - no recycling

Restarted IIS again
iisreset /restart

checked application - no recycling

The issue I was seeing is completely gone on my dev environment, but
behaviour still exists on our deployment server and the only change made was
the installation of the latest VS2003 SP1.

Is anyone else experiencing this issue with the framework 2.0 appdomain
recycling and is desperate for a solution and have yet not installed vs2003
sp1? Try installing it and see if there's a difference and let me know here.

Not only is the appdomain no longer recycling but directories are being
created as well, the deployment server running the copy doesn't even allow
that to occur - and just to recheck, they both are definitely running as
asp.net 2.0 in web application format (i.e with partial classes, so thus no
possibility to run on anything but framework 2.0).

Its a great outcome,....but puzzling as to why it has occurred.

Heres the link to vs2003 sp1 changes, maybe someone else can identify
something i may have missed.
http://support.microsoft.com/default...b;en-us;918007

regards

Tony

"Kevin Jones" <kj**********@d evelop.comwrote in message
news:O3******** ******@TK2MSFTN GP06.phx.gbl...
Thought I'd ask the obvious question :)

Sorry, in that case I'm as stumped as you - and I haven't had to use 1.1
for a while so haven't installed the SP

Kevin

Tony wrote:
>Hi Kevin,

Yes, that was one of the areas I checked before posting.

In IIS Properties ASP.NET the version is still set to 2.0.50727.

I also knew during development and having a play around in conguration
that if i ran the converted app in framework 1.1, the system would throw
parser errors (which would be due to the classes in the .apsx pages being
partial which is only supported in framework 2.0)

<snip>
Server Error in '/' Application.

Parser Error
Description: An error occurred during the parsing of a resource required
to service this request. Please review the following specific parse error
details and modify your source file appropriately.

Parser Error Message: Could not load type 'Web.Global'.

Source Error:

Line 1: <%@ Application Codebehind="Glo bal.asax.cs"
Inherits="Web. Global" %>
Source File: D:\Dev_NET\CM\W ebApp\global.as ax Line: 1

--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.1.432 2.2032;
ASP.NET Version:1.1.432 2.2032
</snip>

So as a quick test I flicked it over to 1.1 and I received the above
message, returned to 2.0 and everything was up and running again.

so to reiterate, System copy running on windows 2000

framework 2.0 : definitely recycles when in run the code calling
Directory.Dele te(). (still no vs2003 service pack)
framework 1.1 : no problems

my dev enviroment (prior vs2003 sp1 install) : recycled
my dev environment (post vs2003 sp1 install) : no problems.

Any other ideas? Thanks in advance.

regards

Tony

"Kevin Jones" <kj**********@d evelop.comwrote in message
news:up******* *******@TK2MSFT NGP03.phx.gbl.. .
>>I assume you've checked the obvous thing - that the app is still running
as a 2.0 app and that the 1.1 SP hasn't 'updated' the app to be 1.1?

Kevin

Tony wrote:
Hi all,

Here's the link to the issue we were seeing on our ASP.NET system when
modifying, adding and deleting directories in framework 2.0.
http://blogs.msdn.com/toddca/archive...01/499144.aspx

I then tried a few of solution I found while perusing Google,
- FCNMode registry mod
- Relocating to App_Data folder to create/modify/delete directories.

No difference, behavior remained.

However, since installing the latest Visual Studio 2003 Service Pack 1
this behavior has gone in my dev environment - or at least I believe
this is the reason, as directories are being created and deleted
without the application recycling.

I'm running Windows XP SP2
vs2003 standard edition
vs2005 standard edition upgrade
Framework 1.0, 1.1 SP1 and 2.0 rtm

Just a bit of background, The system was originally written in vs2003
but has been converted to vs2005. I have deployed both systems on our
test win2000 server, vs2003 on framework 1.1 version works fine no
problems and will easily create and delete directories while the vs2005
conversion running on framework 2.0 still exhibits the recycling
behavior explained in Todd Carter's link, which was exactly the same
code coming from my xp dev machine, minus the recent service pack
install for vs2003.

So being a little perplexed how does a fix for an IDE directed at
framework 1.1 fix the issue we were having for framework 2.0, is anyone
else seeing this behavior change after this service pack is applied -
or even better can a Microsoft representative comment? as the release
note does not mention any changes/fixes for the appdomain.

I just want to know why this is happening and whether this will be
included in a coming service pack for framework 2, as having to include
vs2003 + vs2003SP1 in our installer for each client deployment is
absurd.

regards

Tony

Aug 23 '06 #5

Hi,

Are you sure it solved your problem? I still have the problem in action

The method I use to monitor the issue can be found here

http://weblogs.asp.net/scottgu/archi...14/433194.aspx

I hope you can use it and tell us what you find.

BTW, I have contacted Microsfot support and got the fix for the
following knowledge base article

http://support.microsoft.com/kb/913297/en-us

but it didn't fix anything and I have to play around with the FCNMode
to get things going on my dev box.

Regards,
Nader

Sep 12 '06 #6

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

Similar topics

2
4466
by: Frank | last post by:
I have observed that a temporary loss of a domain controller can cause problems creating new ado connections between a client machine running ado and a separate sql server machine that are members of the domain. I understand why this happens when creating connections with windows authentication. What is a mystery is that it also sometimes effects new connections that use "sql authentication". Below is a description of my test scenario. ...
0
2337
by: Trevor Andrew | last post by:
Hi There, I have posted something previously regarding this issue, but I think I have some more concise questions to ask, and would like to get further feedback on this issue. Firstly the background. I have a small ASP.NET application under development. I'm using VS 2002 with Framework 1.1. One of the pages is a "resources" page that contains a list-box of various RSS feeds I am interested in surveying. As you select the different RSS...
2
2274
by: Leonard | last post by:
I am using SmtpMail on a couple of ASP.NET pages. When mail is sent to an address outside the domain I get the "Could not access 'CDO.Message' object." error message. I have looked in the newsgroup and I see several entries on this but none that seem to work in my situation. Exchange 2000 is running on same machine as the Web server which is also a domain controller. I see a discussion of several things such as using impersonation to...
6
13473
by: Scott M. Lyon | last post by:
I'm having some strange problems with a VB.NET application that I support. The application currently uses SystemInformation.UserName() and SystemInformation.UserDomainName() to determine who is logged in, and what network domain they are logged into. And for our environment here (logged into a domain), it seems to work just fine.
6
4458
by: Wayne Smith | last post by:
Hi, We are having a few problems with ASP.Net pages hanging during load when an Application Pool is recycled. To test this we have setup the following ASP.net page which refreshes every 2 seconds: <%@ Page language="c#" %> <%@ Import Namespace="System" %> <%@ Import Namespace="System.IO" %>
1
1331
by: Blasting Cap | last post by:
I'm trying to debug a website that has been converted from VS2003 to VS2005 and am getting this message: "The application domain in which the thread was running has been unloaded" Problem is - it doesn't tell you what's wrong or where to fix it. To my knowledge, the operating environment hasn't changed from when I ran it in debug this morning. The only change I have made to the project is to comment out about 6 lines of code, which...
5
4382
by: Bubba | last post by:
Hi, We have HttpHandlers that can process requests for up to 50 minutes. Those HttpHandlers are running in an app domain inside the DefaultAppPool. We'd like the HttpHandlers to be able to detect when its containing app pool or app domain is requesting a shutdown (when it is recycling, for example). I looked at the Application_End method in global.asax, as well as the System. AppDomain.CurrentDomain.DomainUnload event. Neither get...
0
1522
by: fred64 | last post by:
Hello , I fought very hard and succeed to do a remote debug from a client with VS2003 on XP HOME to a Server with XP PRO. This is on a Workgroup : I created same user/pwd with admin rights for client & Server. Also modified the DCOM security to allow remote access to Anonymous login and - finally- on the SERVER (client is XP home and doesn't include secpol.msc) , changed the Security policy "network access : Sharing
2
2014
by: Morten Snedker | last post by:
I'm not sure if this is the right group, but: When the IIS performs a recycle on an given Application Pool, the website on this pool seems to loose references to third-party DLL-files in the bin-folder. We then have to start/stop the site go get it to work. The recycling is now disabled to avoid the issue.
0
8840
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8730
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,...
1
9131
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,...
0
8007
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6669
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
5981
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();...
0
4484
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...
1
3189
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
3
2130
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.