1
Answer

webservice logon state

mike

mike

14y
2.5k
1

hi,
I have an application which requires users to log on via a webservice method.  Once they are logged on (via a database password check) a unique ID is kept on the web service in a list, and also given to the client.
Whenever the client calls other webmethods, it sends accross its unique key in an authentication header.  My problem is that sometimes, after a period of time, the collection of keys on the web service seems to be getting cleared, even though the list is in a static class.  This gives all the clients an error message telling them they have been logged out.
I have read in places that this might be because IIS recycles app domains occasionally?  Is the best method just to turn off recycling?  How is this achieved?
Any ideas on this would be greatly appriciated!
Answers (1)
0
Chris Gullison

Chris Gullison

NA 8 2k 9y
So now, when I click on the linkbutton view for viewing the PDF file; a message box displays with the message "File does not being with '%PDF-'". Anyone have any suggestions as to why it says that? The files that I am trying to view ARE .pdf files. 
0
Chris Gullison

Chris Gullison

NA 8 2k 9y
0
alice yang

alice yang

NA 747 86 9y
Hi Chris,
 
This article demonstrates how to view PDF file from web browser using a asp.net PDFViewer, not sure if this will help you, but you can check:
 
http://www.c-sharpcorner.com/UploadFile/1583f2/view-pdf-files-from-web-browser-in-C-Sharp/
 
 
0
Vignesh Mani

Vignesh Mani

NA 13.4k 938.2k 9y
hi share full code.