Click here to Skip to main content
15,898,020 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi,

I in ASP.net we use
Application["first"]="123";


like this but in WCF i am not able to use it, even after adding the Global.asax


Please Guide me further


Regards
Nakul Kundra
Posted

Make sure the ASP.Net compatibility mode and other ASP.Net compatibility settings are set before using Global.asax file in WCF. For more details, see here[^].
 
Share this answer
 
Comments
Monjurul Habib 6-Jun-11 16:35pm    
nice link, my 5.
Abhinav S 7-Jun-11 0:26am    
Thanks. I really hope this helped the OP.
Monjurul Habib 7-Jun-11 2:55am    
indeed.
nakulkundra 13-Jun-11 5:57am    
still not abble to use application[]
Don't you mean this?

Session["first"] = "123";
 
Share this answer
 
Comments
nakulkundra 7-Jun-11 0:30am    
no i want to use the application collection of global.asax,
session in not what i am looking for
make sure the web application settings that were set up correctly from IIS
 
Share this answer
 
Comments
nakulkundra 13-Jun-11 5:57am    
Checked, the service is a restfull service (wcf)

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