Click here to Skip to main content
15,895,283 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello Experts,

I have one issue with IIS 8.
I have deployed one site on IIS 8.
In site, My page have two buttons.
By on clicking button1 session variable has been generated. This is for test
but on clicking button2 the page has been terminated.

Every thing is working fine in IIS 7

My session is as under.
and i don't want to change my session state.
XML
<system.web>
  <sessionState mode="InProc" timeout="20" cookieless="true"> </sessionState>
</system.web>


my code is as under.

C#
 protected void button1_Click(object sender, EventArgs e)
    {
Session["mySession"] = "myValue";
}

 protected void button2_Click(object sender, EventArgs e)
 {
// Below code is terminate worker process in IIS 8 but it is working fine in IIS 7
Verify.MVerify objMVerify = new Verify.MVerify();
Boolean Ret1;
byte[] temp =File.ReadAllBytes(Server.MapPath("") + @"\rawData.raw");
Ret1 = objMVerify.VerifyFingerFromISOTemp(temp, temp);
///////////////////////////////////////////////////////////////////////
if(Session["mySession"] != null)
{
tdMessage.InnerHtml = "Session is not null";
}
else
{
tdMessage.InnerHtml = "Session is null";
}
}



but in IIS 7 It is working fine.

Any one have an idea?

Thanks in advance.
Posted
Updated 2-Jun-13 20:18pm
v2
Comments
Zoltán Zörgő 3-Jun-13 2:21am    
How large is the rawData.raw file?
Put a try-catch around the code and see if any exceptions are thrown.
Mr. Mahesh Patel 4-Jun-13 0:18am    
not such big a file. it is only of 2.0 KB

1 solution

Hi every one,

I have found solution my self.

It is the problem of OS Bit.
I have allow 32 bit application in property of Application pool and it is solved.

But I have another question regarding this.
this it, I have build my dll in Any CPU, then how can it is not working in 64 Bit Windows Server 2012.....?

This can't be understand......
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900