Last post Mar 17, 2014 10:26 AM by airwalker20000
Mar 16, 2014 08:59 AM|airwalker20000|LINK
I have website that has been updated to .net 1.1 to .net 2.0. The website is now runs under the default app pool (.net 2.0 integrated).
There is another website which is a virtual directory of the website that was ported to .net 2.0. The app pool for this virtual directory is asp.net 1.1
and it has stopped working since the app pool of the parent website was changed.
I have tried changing the app pool of the child web app to the same as the parent but this did not fix problem and when I changed the webchild app back to the
asp.net 1.1 app pool it also would not work.
So, can I run a .net 1.1 virtual directory of a .net 2.0 website? Does webchild app inherit things from the parentweb app.
The part of the child website that does not work is some custom login authentication. The authentication still works but the response.redirect does not
redirect the user to the correct page, instead it puts them back at the login page.
Mar 16, 2014 09:08 AM|Rion Williams|LINK
If you have multiple applications that are running in the same application pool, then that particular App Pool will need to target the lowest version of .NET that you wish to support. Meaning that if you wanted to run a .NET 1.0 app along side a .NET 2.0
app, the pool would need to target 1.0 to support both applications.
There are numerous ways to handle this - you could consider
converting your older 1.0 application to 2.0 and ensuring that you make all of the appropriate changes to targeted the updated framework. If done correctly, this could fix your issue. Another option would be to simply place each of the sites in their own
respective application pools targeting different versions of .NET.
Mar 16, 2014 09:16 AM|airwalker20000|LINK
Hi, Thanks for your reply.
What I did is put the parent website in a .net 2 app pool and I left the child website in the .net 1.1 app pool, but the child website has not worked since I changed the
app pool of the parent website. So should I try changing the app pool of the parent to the .net 1.1 app pool?
Mar 16, 2014 09:17 AM|Rion Williams|LINK
So should I try changing the app pool of the parent to the .net 1.1 app pool?
Yes, I would give that a try.
.NET Frameworks for the most part are pretty good about backwards-compatability and usually a newer version will run on an older version of the framework.
Mar 16, 2014 12:06 PM|oned_gk|LINK
Mar 17, 2014 07:10 AM|airwalker20000|LINK
Thanks I have done that and the site now loads however there is a Response.Redirect in code which not redirecting to the specified page. I am using forms
authentication which is returning true (isAuthenticated), however the page is not redirected. If I put 'http://google.com' in the Response.redirect then the page
redirects to google.
void btnLogin_Click(Object sender, EventArgs e)
if (Application.AuthenticateUser(txtUserId.Text, txtPassword.Text))
Response.Redirect("~/home.aspx");//?ReturnURL=" + Page.Server.UrlEncode(Request.QueryString["ReturnURL"].ToString()));
catch (HttpException ex)
Is there some setting in IIS that needs to be modified?
Mar 17, 2014 09:55 AM|Rion Williams|LINK
Have you tried placing a breakpoint in the code above? Is the Response.Redirect method actually being hit or is an exception being thrown? Your current Response.Redirect code "should" be correct :
Have you tried using the direct URL as opposed to the referential one as seen below to see if that makes any difference?
Mar 17, 2014 10:12 AM|oned_gk|LINK
Mar 17, 2014 10:26 AM|airwalker20000|LINK
Thanks for all the replies. The problem turned out to be with iis and app pools. This is what I did to resolve it: