473,401 Members | 2,146 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,401 software developers and data experts.

session state lost when page launched from link within PowerPoint

My C# asp.net app (.NET 1.1) can generate an email whose body contains a link
to the current page of the app.

When the recipient of the email clicks the link (usually from Outlook), the
app launches just fine, and will postback great too. However, when the user
pastes this link into a PowerPoint 2003 hyperlink, runs the slideshow, and
clicks on the link, it brings up the right page, but generates the error
"Object reference not set to an instance of an object" when the user does a
postback event.

By including error messages that tell the state of objects at different
points in the Page_load, I can see the the Session state values are all null
when the app posts back.

In web.config, session state mode = "Inproc" and cookieless = "false"

Is there anything different about PowerPoint 2003 hyperlinks that might
cause the session state variables to be lost?
Jan 20 '06 #1
2 2102
Ivers,
Session state is "hooked up" to each request via the Session cookie (or the
munged sessionid if cookieless="true"). No cookie, no session.

That's why no session from an embedded hyperlink. Of course, you could try
cookieless and have the longer url with the (longsessionid) munged into it.
Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"Ivers" wrote:
My C# asp.net app (.NET 1.1) can generate an email whose body contains a link
to the current page of the app.

When the recipient of the email clicks the link (usually from Outlook), the
app launches just fine, and will postback great too. However, when the user
pastes this link into a PowerPoint 2003 hyperlink, runs the slideshow, and
clicks on the link, it brings up the right page, but generates the error
"Object reference not set to an instance of an object" when the user does a
postback event.

By including error messages that tell the state of objects at different
points in the Page_load, I can see the the Session state values are all null
when the app posts back.

In web.config, session state mode = "Inproc" and cookieless = "false"

Is there anything different about PowerPoint 2003 hyperlinks that might
cause the session state variables to be lost?

Jan 20 '06 #2
Peter,
I tried cookielss and it worked fine. Thanks.

"Peter Bromberg [C# MVP]" wrote:
Ivers,
Session state is "hooked up" to each request via the Session cookie (or the
munged sessionid if cookieless="true"). No cookie, no session.

That's why no session from an embedded hyperlink. Of course, you could try
cookieless and have the longer url with the (longsessionid) munged into it.
Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"Ivers" wrote:
My C# asp.net app (.NET 1.1) can generate an email whose body contains a link
to the current page of the app.

When the recipient of the email clicks the link (usually from Outlook), the
app launches just fine, and will postback great too. However, when the user
pastes this link into a PowerPoint 2003 hyperlink, runs the slideshow, and
clicks on the link, it brings up the right page, but generates the error
"Object reference not set to an instance of an object" when the user does a
postback event.

By including error messages that tell the state of objects at different
points in the Page_load, I can see the the Session state values are all null
when the app posts back.

In web.config, session state mode = "Inproc" and cookieless = "false"

Is there anything different about PowerPoint 2003 hyperlinks that might
cause the session state variables to be lost?

Jan 25 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Tony G. | last post by:
Hi there, I have an APS 3 application, running on a Windows 2003 Web edition server - it is a very busy website, and when users are click on certain links (membership info), a new window i...
5
by: Marc Rivait | last post by:
Here is a very interesting scenario. I have a simple test application that loads a page and sets a session variable on the load event. On the first page there is a link to a second page. The...
1
by: Julie Barnet | last post by:
Hi, I am having a problem with my session state through sql server. This used to work, then all of a sudden (the only change was setting up replication in the sqlserver database) it stopped...
1
by: Werner | last post by:
Hi Patrick! Can you give an example of how to use a frameset inside an aspx-file? When I create a new frameset in Visual Studio.Net it just gives me a htm-File. Or give me a link where I can...
1
by: =?Utf-8?B?U00=?= | last post by:
Background We migrated our Asp.net 1.1 application to Asp.net 2.0 ( just migration ) .. It was working fine in local developer machine and one of our development testing server. When we moved...
0
by: =?Utf-8?B?U00=?= | last post by:
Background We migrated our Asp.net 1.1 application to Asp.net 2.0 ( just migration ) .. It was working fine in local developer machine and one of our development testing server. When we moved...
0
by: =?Utf-8?B?U00=?= | last post by:
Background We migrated our Asp.net 1.1 application to Asp.net 2.0 ( just migration ) .. It was working fine in local developer machine and one of our development testing server. When we moved...
1
by: =?Utf-8?B?U00=?= | last post by:
Background We migrated our Asp.net 1.1 application to Asp.net 2.0 ( just migration ) .. It was working fine in local developer machine and one of our development testing server. When we moved...
11
by: Glenn | last post by:
Hi I've been experimenting with managing state using the Session object. I've created a simple WS with a couple of methods, one which sets a string value, another that retrieves it. Each...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.