PC Review


Reply
Thread Tools Rating: Thread Rating: 2 votes, 5.00 average.

Dropped Sessions?

 
 
Davej
Guest
Posts: n/a
 
      8th May 2012
On May 7, 6:36*pm, Arne Vajhøj <a...@vajhoej.dk> wrote:
> On 5/7/2012 10:00 AM, Davej wrote:
> > On May 6, 8:43 pm, Arne Vajhøj<a...@vajhoej.dk> *wrote:
> >> On 5/6/2012 9:19 PM, Davej wrote:
> >> [...]
> >>> Ah, it is working until I throw some sort of exception reading the
> >>> database with SqlDataReader or improperly passing the result array
> >>> back. At that point everything dies -- including the sessions.

>
> >> The session should not be invalidated due to an exception.

>
> >> But obviously you need to handle the exception properly.

>
> >> Would it be possible to expose the data as a web service
> >> instead of as a web page (that would make many things
> >> easier client side)?

>
> > I was confused by web services so I went down the path of "screen
> > scraping" with the idea that I could perhaps switch over later.

>
> I think it would have been way easier for you with web services.
>
> WCF is a bit complex, but there are alternatives:
> * oldfashioned .asmx web services
> * a simple web handler (.ashx)
>
> Arne


I will have to read up on those. I wanted to avoid just using some
mysterious library that would magically do everything. I am still
trying to grasp some of the underlying limitations and issues of my
simple-minded approach; for example sending numbers is no problem, but
strings have to be sent with caution, particularly in the download
direction. In my application strings are not too important, but I have
some strings come back in the debugging messages and I did include a
"chat" feature. Although I have not tested this I'm guessing that
"<table>" or "</html>" would be bad sequences to find in a chat
message.
 
Reply With Quote
 
 
 
 
Arne Vajhøj
Guest
Posts: n/a
 
      9th May 2012
On 5/8/2012 6:35 AM, Davej wrote:
> On May 7, 6:36 pm, Arne Vajhøj<a...@vajhoej.dk> wrote:
>> On 5/7/2012 10:00 AM, Davej wrote:
>>> On May 6, 8:43 pm, Arne Vajhøj<a...@vajhoej.dk> wrote:
>>>> On 5/6/2012 9:19 PM, Davej wrote:
>>>> [...]
>>>>> Ah, it is working until I throw some sort of exception reading the
>>>>> database with SqlDataReader or improperly passing the result array
>>>>> back. At that point everything dies -- including the sessions.

>>
>>>> The session should not be invalidated due to an exception.

>>
>>>> But obviously you need to handle the exception properly.

>>
>>>> Would it be possible to expose the data as a web service
>>>> instead of as a web page (that would make many things
>>>> easier client side)?

>>
>>> I was confused by web services so I went down the path of "screen
>>> scraping" with the idea that I could perhaps switch over later.

>>
>> I think it would have been way easier for you with web services.
>>
>> WCF is a bit complex, but there are alternatives:
>> * oldfashioned .asmx web services
>> * a simple web handler (.ashx)

>
> I will have to read up on those. I wanted to avoid just using some
> mysterious library that would magically do everything. I am still
> trying to grasp some of the underlying limitations and issues of my
> simple-minded approach; for example sending numbers is no problem, but
> strings have to be sent with caution, particularly in the download
> direction. In my application strings are not too important, but I have
> some strings come back in the debugging messages and I did include a
> "chat" feature. Although I have not tested this I'm guessing that
> "<table>" or"</html>" would be bad sequences to find in a chat
> message.


A simple web handler (.ashx) does not contain much magic.

Arne
 
Reply With Quote
 
 
 
 
Arne Vajhøj
Guest
Posts: n/a
 
      15th May 2012
On 5/10/2012 2:36 PM, Davej wrote:
> On May 8, 7:57 pm, Arne Vajhøj<a...@vajhoej.dk> wrote:
>> On 5/8/2012 6:35 AM, Davej wrote:
>>> On May 7, 6:36 pm, Arne Vajhøj<a...@vajhoej.dk> wrote:
>>>> On 5/7/2012 10:00 AM, Davej wrote:
>>>>> On May 6, 8:43 pm, Arne Vajhøj<a...@vajhoej.dk> wrote:
>>>>>> Would it be possible to expose the data as a web service
>>>>>> instead of as a web page (that would make many things
>>>>>> easier client side)?

>>
>>>>> I was confused by web services so I went down the path of "screen
>>>>> scraping" with the idea that I could perhaps switch over later.

>>
>>>> I think it would have been way easier for you with web services.

>>
>>>> WCF is a bit complex, but there are alternatives:
>>>> * oldfashioned .asmx web services
>>>> * a simple web handler (.ashx)

>>
>>> I will have to read up on those. I wanted to avoid just using some
>>> mysterious library that would magically do everything. I am still
>>> trying to grasp some of the underlying limitations and issues of my
>>> simple-minded approach; for example sending numbers is no problem, but
>>> strings have to be sent with caution, particularly in the download
>>> direction. In my application strings are not too important, but I have
>>> some strings come back in the debugging messages and I did include a
>>> "chat" feature. Although I have not tested this I'm guessing that
>>> "<table>" or"</html>" would be bad sequences to find in a chat
>>> message.

>>
>> A simple web handler (.ashx) does not contain much magic.

>
> If it does not force me to use XML I will give it a try next week.


You can do XML, JSON, CSV or whatever format you like.

Unless bandwidth is a primary concern, then I believe
XML would be a nice format.

Arne


 
Reply With Quote
 
Davej
Guest
Posts: n/a
 
      15th May 2012
On May 14, 6:30*pm, Arne Vajhøj <a...@vajhoej.dk> wrote:
> On 5/10/2012 2:36 PM, Davej wrote:
> > On May 8, 7:57 pm, Arne Vajhøj<a...@vajhoej.dk> *wrote:

>
> >> A simple web handler (.ashx) does not contain much magic.

>
> > If it does not force me to use XML I will give it a try next week.

>
> You can do XML, JSON, CSV or whatever format you like.
>
> Unless bandwidth is a primary concern, then I believe
> XML would be a nice format.
>
> Arne


Well, I am still trying to get my basic functionality working, but if
I try a web service option I would want to keep the simple
(concatenated/delimited strings with a simple header) message format
that I am using now. Maybe add a wrapper if that is required. I am
curious about how major or minor the change over might be. I noticed
that there are apparently some changes that need to be made to the
web.config file for a web service. Thanks.
 
Reply With Quote
 
Arne Vajhøj
Guest
Posts: n/a
 
      15th May 2012
On 5/15/2012 11:09 AM, Davej wrote:
> On May 14, 6:30 pm, Arne Vajhøj<a...@vajhoej.dk> wrote:
>> On 5/10/2012 2:36 PM, Davej wrote:
>>> On May 8, 7:57 pm, Arne Vajhøj<a...@vajhoej.dk> wrote:

>>
>>>> A simple web handler (.ashx) does not contain much magic.

>>
>>> If it does not force me to use XML I will give it a try next week.

>>
>> You can do XML, JSON, CSV or whatever format you like.
>>
>> Unless bandwidth is a primary concern, then I believe
>> XML would be a nice format.

>
> Well, I am still trying to get my basic functionality working, but if
> I try a web service option I would want to keep the simple
> (concatenated/delimited strings with a simple header) message format
> that I am using now. Maybe add a wrapper if that is required. I am
> curious about how major or minor the change over might be. I noticed
> that there are apparently some changes that need to be made to the
> web.config file for a web service.


That is only for WCF.

Neither old style .asmx nor simple web handlers .ashx
requires changes to web.config.

Arne
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Dropped Laptop on Floor magvsb Support 4 24th Dec 2004 01:00 PM
Re: I dropped something on my keyboard...now I have a "Folder Task" area on my desktop! =?Utf-8?B?RGlwcGxl?= Windows XP Help 0 14th Jan 2004 02:41 AM
Re: I dropped something on my keyboard...now I have a "Folder Task" area on my desktop! David Windows XP Help 0 14th Jan 2004 02:02 AM
constantly dropped connection Disturbed Windows XP Help 0 10th Dec 2003 12:19 PM
XP connections dropped Mike Windows XP Help 0 3rd Dec 2003 04:26 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:10 PM.