|
It depends what you mean by 'long running'. The project I'm working on at the moment was using a web page to do a data import (~10 hour job) and we had numerous problems with the app pool recycling, people closing their browser etc.
My advice - if you've got something that takes that long to do, run it anywhere but within a web form as your first choice.
It definitely isn't definatley
|
|
|
|
|
Thank you for your posts . Well , the "long running task" consists of running some scripts . It won't last 10 hours , but i suppose some of them might take several minutes . Shall i choose the async handler in this case ?
|
|
|
|
|
No. You should just use threads and let the .NET application takes care of them according to the MSDN article.
Regards
Marcello Turnbull
|
|
|
|
|
Thank you
|
|
|
|
|
|
well i actually made it like this :
ThreadPool.QueueUserWorkItem(new WaitCallback(Run));
Response.Redirect(..);
and it worked .
Thanks everyone
|
|
|
|
|
IMO, you go with creating a thread manually than thread pool. By default thread pool uses background threads and if the main thread which hosts this ended, you thread will stop before completion. I think running the process in a foreground thread is good.
|
|
|
|
|
thanks alot Ahmad very much for your response,
I have a serious problem in my website (i need your help)...
I'm handling a login project, where let the user to login in pageA before entering pageB or pageC. When running at localhost, everything was fine.
Now the problem is when i put into the webserver. The session timeout within 30sec or less eventhough i had code :-
set Session(Login) = user in pageA
-
Session.Timeout = 60 (in pageB & pageC during pageload!)
If Session(Login) = Nothing Then
respone.redirect(PageA) Else ...............
Although I set the session timeout in web.config as well, it didn't work
in web.config:
I set the session state to be inProc (didn't work)
also i did:
<sessionState
mode="StateServer"
stateConnectionString="tcpip=65.182.97.156:42424"
cookieless="false"
timeout="20" />
and it didn't work...
Pls Help! many Thanks!
Nour Abdel-Salam...
A Trainer and a Web Developer in Jedda Int'l Computer Center(JICC)
|
|
|
|
|
Check it[^]
Posting same question again and again won't help at all.
Cheers!!
Brij
|
|
|
|
|
Dear
I don't need any help from you, luv,
thanks for your reply..
and still waiting more
Nour Abdel-Salam...
A Trainer and a Web Developer in Jedda Int'l Computer Center(JICC)
|
|
|
|
|
nour123 wrote: still waiting more
you'll have a long wait
only two letters away from being an asset
|
|
|
|
|
b a b y
it seems that you didn't understand i wrote..
thanks for (y o u r) reply..
thanks H o N e Y
mmmmmmmmoa
Nour Abdel-Salam...
A Trainer and a Web Developer in Jedda Int'l Computer Center(JICC)
|
|
|
|
|
Don't be rude to people on the board--you'll never get ANY help.
"Well, we're getting "F"'d at work. WPF, WCF, and WWF... WTF?" --John Simmons
|
|
|
|
|
The Session timeout can be set on the IIS.
Vuyiswa Maseko,
Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers."
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.tiyaneProperties.co.za
vuyiswam@its.co.za
|
|
|
|
|
I didn't see your original post so I'll help you out. I would check settings in IIS to see when the application pool is recycled and if aspnet worker process is being restarted. Both of those events would kill your session.
I didn't get any requirements for the signature
|
|
|
|
|
Hi all,
I've tried to find a solution to this and I've had no luck.
For some reason, there seems to be an extra space at the bottom of my adrotator control. Border and padding are set to 0px, but it's still there. I've even set the CSS properties to show no border or padding. Has anyone else had this problem and how have you fixed it?
I know it seems like such a simple problem, but I have been through just about everything.
|
|
|
|
|
I have a hyperlink on my page and i set the properties as follows
hlnkLogo.NavigateUrl = (string)Session["ImageUrl"]; hlnkLogo.ImageUrl = (string)Session["ImageUrl"];
hlnkLogo.Text = (string)Session["ImageUrl"];
My problem is i cant get the imageUrl property and the the Text property to work together. If i use the ImageUrl property the text property wont work, it will only display text once i remove the imageurl propery, does anyone know how to solve this.
Thank you.
|
|
|
|
|
generally url is something like ~/App_Data/....
but in imageurl r u getting like that path ?
|
|
|
|
|
Im sorry my use of imageurl might be confusing, the
session["imageurl"] is working fine its contents is fine, my problem is with the hlnkLogo.Imageurl and hlnkLogo.text properies.
I hope this has clarified things a bit.
thanks
|
|
|
|
|
omlac wrote: If i use the ImageUrl property the text property wont work, it will only display text once i remove the imageurl propery
That is by design.
From the documentation:
"The HyperLink control can be displayed as text or an image. Use the ImageUrl property to specify an image to display for the HyperLink control.
Note:
If both the Text and ImageUrl properties are set, the ImageUrl property takes precedence. If the image is unavailable, the text in the Text property is displayed. In browsers that support ToolTip functionality, the Text property also becomes the ToolTip."
What is it that you are trying to accomplish?
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
Thank you very much.
Let me use the tooltip, but would u know of a control that handles both simultaenously, i have a web app where both are working unfotunately i cant send it here on the forum coz its not on the internet.
thanks
|
|
|
|
|
You say that you want both properties to work, but you haven't explained how you would want it to work. What would something like that look like?
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
i wanted both the imageurl to display the image and the Text property to display the text simultanesouly.
Thank you very much for your help, i think i can add an image button next to the hyperlink unless if you have a better idea.
Regards
|
|
|
|
|
AFAIK both these property will not work together. If you set both the property then imageURL will take the precedence and in case if image is not available then the text will be shown.
Apurva Kaushal
|
|
|
|
|
Thank you
I have a web application where both of them are working together, would u know which control it is, ie would you know a control that handles both.
Thanx
|
|
|
|