I am posting the question again with the account associated with MSDN Ultimate Subscription. Hope this can draw someone's attention to provide real priority support.
2. Add the line below to Page_Load of default.aspx.cs of webapp1,
Server.TransferRequest("/webapp2");
3. Observe the exception:
Cannot pass a GCHandle across AppDomains.
Parameter name: handle
Description:
An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.ArgumentException: Cannot pass a GCHandle across AppDomains.
Parameter name: handle
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
abedon77
6 Posts
Server.TransferRequest throws strange exception on VS2011 + IIS8
May 04, 2012 03:27 PM|LINK
I am posting the question again with the account associated with MSDN Ultimate Subscription. Hope this can draw someone's attention to provide real priority support.
Reproducing steps:
1. Create two web applications: http://localhost:XXXX/webapp1 and http://localhost:XXXX/webapp2 with VS2011(beta) and IIS 8(beta) or IIS 8 express(beta)
2. Add the line below to Page_Load of default.aspx.cs of webapp1,
Server.TransferRequest("/webapp2");
3. Observe the exception:
Cannot pass a GCHandle across AppDomains.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.Parameter name: handle
Exception Details: System.ArgumentException: Cannot pass a GCHandle across AppDomains.
Parameter name: handle
Source Error:
Stack Trace:
Notes:
1. Server.Transfer does work.
2. Actually, TransferRequest to any virtual path (no matter whether it exists or not) will throw this exception
3. No matter whether the two web apps use the same application pool or not, this exception is thrown.
4. This issue doesn't occur to VS2010 + IIS7.
Lloydz
2335 Posts
Microsoft
Re: Server.TransferRequest throws strange exception on VS2011 + IIS8
May 07, 2012 08:06 AM|LINK
Hi,
I have replied in the same question you've posted:
http://forums.iis.net/t/1189144.aspx
Please focus on one thread and do follow ups there, thanks.