![]() |
|
|
|
#11 |
|
Getting nearer - but its more complicated. The Logging issue above is
still worrying but I have commented that out. This code appears to be the offender HttpWebRequest request = (HttpWebRequest)base.GetWebRequest(uri); request.ProtocolVersion = HttpVersion.Version10; request.Headers.Add("Accept-Encoding", "gzip, deflate"); if (mCallMetrics != null) { mCallMetrics.NetworkSendStarted = DateTime.Now; request.Headers.Add("X-EBAY-API-METRICS", "true"); } return request; However, the code then goes on to do some trickery reading and writing to memorystreams. Could this be upsetting the session being delivered to the browser? Kev |
|
|
|
|
#12 |
|
Posts: n/a
|
>But, I do believe that David is correct, that using Server.Transfer is not
>transfering your session state. It's working the first time because of the >initial session variable you set, but after that it's being lost. Do you >have a specific reason for using Transfer vs. Redirect, which would solve >the problem. >- Scott Maybe, but when offending code is commented out as discussed I can visit the page as often as I want and the session remains in tact. Something somewhere is upsetting the session. Kev |
|
|
|
#13 |
|
Posts: n/a
|
OK - some code - but its getting detailed so hope someone can help.
After invoking the webservice the code ends up here public override void ProcessMessage (System.Web.Services.Protocols.SoapMessage Message) { if ((Message.Stage == System.Web.Services.Protocols.SoapMessageStage.Bef oreSerialize)) { } else { if ((Message.Stage == System.Web.Services.Protocols.SoapMessageStage.Aft erSerialize)) { this.SaveRequestMessage(Message); this.Copy(mStrNew, mStrOld); } else { if ((Message.Stage == System.Web.Services.Protocols.SoapMessageStage.Bef oreDeserialize)) { this.SaveResponseMessage(Message); } else { if ((Message.Stage == System.Web.Services.Protocols.SoapMessageStage.Aft erDeserialize)) { } else { throw new System.ArgumentException (System.String.Format (System.Globalization.CultureInfo.InvariantCulture , "Invalid Soap Message stage [{0}]", Message.Stage), "Message"); } } } } } It actually traces to this part if ((Message.Stage == System.Web.Services.Protocols.SoapMessageStage.Aft erSerialize)) { this.SaveRequestMessage(Message); this.Copy(mStrNew, mStrOld); And it si the copy routine which causes the problem (but also gets me the data I need). /// <summary> /// /// </summary> /// <param name="StrFrom"></param> /// <param name="StrTo"></param> private void Copy(System.IO.Stream StrFrom, System.IO.Stream StrTo) { if (StrFrom.CanSeek) { StrFrom.Position = 0; } System.IO.TextReader TxtReader = new System.IO.StreamReader (StrFrom); System.IO.TextWriter TxtWriter = new System.IO.StreamWriter (StrTo); TxtWriter.WriteLine(TxtReader.ReadToEnd()); TxtWriter.Flush(); if (StrTo.CanSeek) { StrTo.Position = 0; } } Is something there stopping the session propagating? Kev |
|
|
|
#14 |
|
Posts: n/a
|
PROBLEM SOLVED!!!!!
http://weblogs.asp.net/owscott/archi...21/438678.aspx The eBay API was writing a log file in the bin folder!!!!! And a change here causes a session reset. I have moed the log file and problem solved. Should of stuck to my first LogMessage hunch! Thank you both for your help! GOing to scour some groups for 10 minutes now answering other peeoples questions (on sql) where I can! Kevin Kev |
|
|
|
#15 |
|
Posts: n/a
|
"Kev" <> wrote in message news:ed6de632-b16f-4fae-9136-... > PROBLEM SOLVED!!!!! > > http://weblogs.asp.net/owscott/archi...21/438678.aspx > > The eBay API was writing a log file in the bin folder!!!!! And a > change here causes a session reset. I have moed the log file and > problem solved. Should of stuck to my first LogMessage hunch! > > Thank you both for your help! GOing to scour some groups for 10 > minutes now answering other peeoples questions (on sql) where I can! > > Kevin Good investigative work. Good luck. -Scott Scott M. |
|
![]() |
| Thread Tools | Search this Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Linksys tech support live chat transcript - enjoy!!!! | jim | Wireless Networking | 2 | 07-01-2008 05:19 AM |
| System Restore -to start with...... | =?Utf-8?B?SGFycnkgS2VvZ2g=?= | Windows 64bit | 3 | 12-01-2005 08:58 AM |
| PowerPost2000 and reposting missing segments. | English Patient | Computer Support | 6 | 09-15-2004 11:49 PM |
| Invalid Backweb | Mike Doherty | Computer Support | 3 | 01-30-2004 08:02 PM |
| Re: Pentagon 9/11: The Missing Wings | Baron Maximillian von Schtuldeworfshiseundurheimhoppen | Computer Support | 0 | 10-27-2003 06:09 AM |