Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Creating a new background thread on web server
Message
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00764110
Message ID:
00765413
Views:
24
I'm glad you were able to get your problem solved. I have seen inconsistencies with how Server.Transfer vs. Response.Redirect work on different OSs. I'm not sure why though. I'm wondering if the Response.Redirect, since it needs two round trips, is causing some kind of conflict in your case with threading.

>From my studio guy, Chris McIlvoy:
>
>i figured it out. this works:
>
>
>System.Threading.Thread myThread = new System.Threading.Thread(new ThreadStart(CreateTextFile));
>myThread.Priority = ThreadPriority.Highest;
>myThread.Start();
>
>Server.Transfer("Confirmation.aspx",false);
>

>
>however if i use
>Response.Redirect("Confirmation.aspx?OrderID=" + orderId,false);
>
>instead of the Server.Transfer line it does not work on the server(running 2000server) but it does work with the Response.Redirect on my laptop(running XP). both system running . net Framework 1.1.
>
>any ideas? thanks
>
-----------------------------------------

Cathi Gero, CPA
Prenia Software & Consulting Services
Microsoft C# / .NET MVP
Mere Mortals for .NET MVP
cgero@prenia.com
www.prenia.com
Weblog: blogs.prenia.com/cathi
Previous
Reply
Map
View

Click here to load this message in the networking platform