Click here to Skip to main content
15,888,070 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hii dear's
i have to program that wrote by asp.net4 and uploaded in iis7.
when i send session from system1 to the system2 for calculate some thing,the sessions is empty.
why??
thanks

error:

Object reference not set to an instance of an object.


Line 56: string mer =Session["MerchanId"].ToString();
Posted

1 solution

Is the system 1 and System 2 is in same application domain ?
why cant you send it as POST variables ?

check this link

http://stackoverflow.com/questions/2868316/sharing-sessions-across-applications-using-the-asp-net-session-state-service[^]
 
Share this answer
 
v2
Comments
Member 8453437 9-Sep-13 7:20am    
system 1 is my real windows7 and system 2 is on the vmware worksation,
i define static ip,
ping is reply together,
the all thing is ok,but empty session recieve on system2
thanks
Yesudasan Moses 9-Sep-13 10:31am    
CHeck this link
http://stackoverflow.com/questions/2868316/sharing-sessions-across-applications-using-the-asp-net-session-state-service
Yesudasan Moses 9-Sep-13 10:32am    
this also will help you to get a clue

http://stackoverflow.com/questions/623551/can-you-share-the-session-variables-between-two-net-2-0-applications

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