The question(s) might be silly because i donot have much knowledge about framework 1.1
I'm trying to share the Application level variable among two different .net applications. one is .net 1.1 and the other is .net 4.0.
Here is the scenario:
I've created an application(App11
) which targets .Net Framework 1.1
using Visual Studio 2003.
I've also created a web site(App40
) which targets .Net Framework 4.0
in Visual Studio 2010.
I've added the App40
in the App11
, i've hosted App11
in IIS 5.1. Now App40
is a folder in App11
.
App40
has the application pool with framework 4.0 and App11
has the application pool with framework 1.1.
I donot have much of knowledge in .Net Framework 1.1
. So,i've google and found state management techniques for .Net Framework 1.1. It seems like Framework 1.1 supports Application State
I thought the Application management would work. So, i've tried like this:
In the App11
í've defined a Application variable in the Application_Start()
of Global.asax
.
protected void Application_Start(Object sender, EventArgs e)
{
Application["AppDATA"]="Application Data";
}
I've a Default.aspx
page in App11
application. The Default page has a hyperlink to redirect to the App40/Default.aspx
page.
In the Codebehind file of Default.aspx
in App40
i've done like this:
//Application State check
if (Application["AppDATA"] != null)
{
applicationState.Text = "Got application state data :"+Application["AppDATA"].ToString();
}
else
{
applicationState.Text = "Application State failed to work !";
}
I've builded both the applications and stated with Default page of App11
.
When i click on the link i could not see any Application data that has come from the Framework 1.1, it only shows Application State failed to work !
message on the page.
Does this work ? or Am i trying these things stupid ?
Do i need to setup anything in addition to the things i've done ?