Saturday, March 24, 2012

Web Deployment Descriptor question

Hi..am new to asp.net 2.0..can someone tell me what is the difference between Web Deployment Descriptor web.xml and web.config...they both define almost the same things...do i have to write a web.xml in my application..

Am asking that because i have a problem concerning sessions..in my web.config i have defined sessionstate as follows:

<sessionStatemode="InProc"stateConnectionString="tcpip=127.0.0.1:42424"sqlConnectionString="data source=127.0.0.1;user id=sa;password="cookieless="false"timeout="60"/>

When i used to test my website on localhost,session worked fine...but now after deploying it and putting it on the server the session expires in like 1 min!!!

Is this happening because am not specifying a web.xml..I feel this problem is due to something related to deployment,since after deployment session is not working right...

Any suggestions?Has anyone ever faced this?

WEB.xml? I never heard there is such file inside an ASP.NET web application. you only need to have web.config!

regards


Yeah i know that..But i red it somewhere and since am new to asp.net i thought it is somehow related to my problem..Plz can u check my post
http://forums.asp.net/t/1117287.aspx

0 comments:

Post a Comment