472,993 Members | 2,157 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,993 software developers and data experts.

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 2176
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="Global.asax.cs" Inherits="Web.Global"
%>
Source File: D:\Dev_NET\CM\WebApp\global.asax Line: 1

--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.1.4322.2032; ASP.NET
Version:1.1.4322.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.Delete(). (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**********@develop.comwrote in message
news:up**************@TK2MSFTNGP03.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="Global.asax.cs" Inherits="Web.Global"
%>
Source File: D:\Dev_NET\CM\WebApp\global.asax Line: 1

--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.1.4322.2032; ASP.NET
Version:1.1.4322.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.Delete(). (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**********@develop.comwrote in message
news:up**************@TK2MSFTNGP03.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.exe -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**********@develop.comwrote in message
news:O3**************@TK2MSFTNGP06.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="Global.asax.cs"
Inherits="Web.Global" %>
Source File: D:\Dev_NET\CM\WebApp\global.asax Line: 1

--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.1.4322.2032;
ASP.NET Version:1.1.4322.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.Delete(). (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**********@develop.comwrote in message
news:up**************@TK2MSFTNGP03.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
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...
0
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...
2
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...
6
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...
6
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...
1
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...
5
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...
0
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...
2
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...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
0
by: Aliciasmith | last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
2
by: giovanniandrean | last post by:
The energy model is structured as follows and uses excel sheets to give input data: 1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions...
4
NeoPa
by: NeoPa | last post by:
Hello everyone. I find myself stuck trying to find the VBA way to get Access to create a PDF of the currently-selected (and open) object (Form or Report). I know it can be done by selecting :...
1
by: Teri B | last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course. 0ne-to-many. One course many roles. Then I created a report based on the Course form and...
0
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be focusing on the Report (clsReport) class. This simply handles making the calling Form invisible until all of the Reports opened by it have been closed, when it...
0
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
4
by: GKJR | last post by:
Does anyone have a recommendation to build a standalone application to replace an Access database? I have my bookkeeping software I developed in Access that I would like to make available to other...
3
SueHopson
by: SueHopson | last post by:
Hi All, I'm trying to create a single code (run off a button that calls the Private Sub) for our parts list report that will allow the user to filter by either/both PartVendor and PartType. On...

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.