I am fairly new to ASP.NET, but I have this problem that I would really appreciate feedback for.
SITUATION
I have a ASP.NET web app backed by VB.NET (called VbApp for argument sake) . I then created another web application which is now backed by C# (called
C#App for argument sake).
PROBLEM
My problem is that both applications use the same database and C#App relies on information in the
VbApp session. Now installed as seperate web applications there Sessions
cannot see each other, so what I did was copy the dll's of the C#App
which relies on values in VbApp session into the bin directory of VbApp.
I also copied the *.aspx pages of C#App under the VbApp directory. So in
VbApp I would do Session("ID") = "00000" and in my C#App I would do if(Session["ID"] == "00000") trying to access the value that was set.
This works fine on my test box which runs IIS 6 and windows 2005. But the production box crashes most times when I try and read the
VbApp session variable which I need. The production box runs IIS 5 and windows 2000.
Does anyone have any experience or input a about a solution to my problem. Has anyone done anything similar to this? Does anyone know if the problem is because of the different versions of IIS? I would really appreciate feedback ASAP! I want to be sure what
the problem is before I go and recommend them upgrading the production box to IIS 6 or from windows 2000 to windows 2005.
Well I wouldn't recommend a product box of 2005 (are you sure you don't mean 2003). Can you clear something up, are you saying you final solution is one web site with a mix of C# and VB.net page implementations?
Yes, sorry I did mean 2003. Yeah the final solution is a combination of a C# and VB.NET page implementations. The C# pages are placed under the directory structure of the VB.NET implementation. To allow the sessions of the two different web applications to
share the same memory space I placed the ddl's of the C# web app into the bin directory of the VB.NET application and deleted the vitual directory of the C# web application. This seems to work on the test server as mentioned above which runs 2003 and IIS 6
versus Windows 2000 and IIS 5.
Have anybody done anything similar. Do they think that my problem with the sessions not seeing each other on the production is because of the difference in versions?
I've not seen that effect myself. The code you use to write a .net component should have little impact on the solution. As far as using different versions of IIS, then the only thing I can think of (and I don't have a finite list of issues) is that the configuartion
is different, perhaps two virtual sites rather than just one?/ Something along those lines? Perhaps ensure that the isolation in IIS 5.0 is set to high?
alex81
Member
10 Points
2 Posts
ASP.NET C# app and VB.NET app sharing running as one
Sep 15, 2005 03:44 PM|LINK
I am fairly new to ASP.NET, but I have this problem that I would really appreciate feedback for.
SITUATION
I have a ASP.NET web app backed by VB.NET (called VbApp for argument sake) . I then created another web application which is now backed by C# (called C#App for argument sake).
PROBLEM
My problem is that both applications use the same database and C#App relies on information in the VbApp session. Now installed as seperate web applications there Sessions cannot see each other, so what I did was copy the dll's of the C#App which relies on values in VbApp session into the bin directory of VbApp. I also copied the *.aspx pages of C#App under the VbApp directory. So in VbApp I would do Session("ID") = "00000" and in my C#App I would do if(Session["ID"] == "00000") trying to access the value that was set.
This works fine on my test box which runs IIS 6 and windows 2005. But the production box crashes most times when I try and read the VbApp session variable which I need. The production box runs IIS 5 and windows 2000.
Does anyone have any experience or input a about a solution to my problem. Has anyone done anything similar to this? Does anyone know if the problem is because of the different versions of IIS? I would really appreciate feedback ASAP! I want to be sure what the problem is before I go and recommend them upgrading the production box to IIS 6 or from windows 2000 to windows 2005.
Thanks much,
pkr
Star
9197 Points
1860 Posts
Re: ASP.NET C# app and VB.NET app sharing running as one
Sep 18, 2005 09:33 AM|LINK
alex81
Member
10 Points
2 Posts
Re: ASP.NET C# app and VB.NET app sharing running as one
Sep 19, 2005 02:18 PM|LINK
Yes, sorry I did mean 2003. Yeah the final solution is a combination of a C# and VB.NET page implementations. The C# pages are placed under the directory structure of the VB.NET implementation. To allow the sessions of the two different web applications to share the same memory space I placed the ddl's of the C# web app into the bin directory of the VB.NET application and deleted the vitual directory of the C# web application. This seems to work on the test server as mentioned above which runs 2003 and IIS 6 versus Windows 2000 and IIS 5.
Have anybody done anything similar. Do they think that my problem with the sessions not seeing each other on the production is because of the difference in versions?
Thanks.
pkr
Star
9197 Points
1860 Posts
Re: ASP.NET C# app and VB.NET app sharing running as one
Sep 22, 2005 06:19 PM|LINK