|
if you have to only read the files then give read only permission
or if you are going upload files then will have to give read and write permissions
Better if you give ASP . NET MAchine Account and Debugger Users of your sever
machine
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
Hi All,
I am using ASP.NET 2.0 (VB), I need to send mail to all admin users if employee has not login website for more than 10 days.
Please Help me how shold I start with it.
Thanks in advance...
|
|
|
|
|
I'd recommend you do it in your database (if your application uses one). Create a job that runs everyday and checks for the last login date. Most DB's also allow you to send email from within an SP.
|
|
|
|
|
Thanks for the reply. Yes I am using SQL Server 2000 for My Web Site.
Will u please tell me how should I do this??
Thanks again...
|
|
|
|
|
1. Create an SP which checks for the login date and sends mail if login date > 10 days (you can use xp_sendmail in SQL Server)
2. Create a Job that executes this SP
3. Schedule the job to run everyday at a certain time, say 12:00 am
Refer SQL Server 2000 Books Online for steps 2 and 3.
SG
|
|
|
|
|
An easy way to do this will be webservices. Write a webservice that can send mails to your contacts. Then write a desktop application and add rederence to webservice. This desktop application could work in background and should able to call this webservice method frequently. This will do the job
|
|
|
|
|
Thanks for the reply. Can u please tell me why do we have to write a web services and Desktop application, cann't we use Windows Service and if yes then please help me with the code for any one of them...
Thanks again...
|
|
|
|
|
hi all,
I want to upgrade the applicaton code running on live server.So how can i
gracefully stop my application without losing any user transactions .
And i see that application end event,session close events is not guaranteed to be fired when i change application code .so clean up of pending client transactions is not a perfect manner.So can anyone suggest me how it can be done.
any suggestions or links are welcome..
thanks in advance
Rama Charan Prasad
"Be happy and Keep smiling.Thats what u want be always.. "
|
|
|
|
|
Upgrading the application doesn't require the application to be restarted. Unless you update the application critical files global.asax or web.config , the application will just contine running with the new files.
The dll files in the bin folder are copied to a temporary folder before they are executed, so you can update the contents of the bin folder without having to bother about locked files.
---
single minded; short sighted; long gone;
|
|
|
|
|
hi ..
thanks for your response...but i plan to update the global.asax and web.config also..in such a case do you suggest any ways to shut down the application smoothly..
something like the "session end" event are fired for currently logged on users and application end also fires properly...so that no loss of data occurs in the application processing.
so that we can write some code in "application end event" to smoothly shut down critical tasks, clean up properly and restart the application.
Rama Charan Prasad
"Be happy and Keep smiling.Thats what u want be always.. "
|
|
|
|
|
As far as I know, if you update global.asax or web.config, the application will end gracefully, calling Session_End for all active sessions and then Application_End. The requests currently being processed are finished before the application is restarted.
---
single minded; short sighted; long gone;
|
|
|
|
|
thks for taking time to help
ya if for all active session the event "session end" is called then thts somewhat a better case (if is really happenening !!! i checked that and it dint happen once ..may be i will check that again )
and what about pages currently under execution how can i complete them if they are in the middle of execution.
Is there any way that i can stop opening up new sessions and wait till current sessions which are active end ? is it possible i mean something like in databases or unix i mean !!!
any suggestions or opinions or links are welcome..
thnks for trying
Rama Charan Prasad
"Be happy and Keep smiling.Thats what u want be always.. "
|
|
|
|
|
rama charan wrote: ya if for all active session the event "session end" is called then thts somewhat a better case (if is really happenening !!! i checked that and it dint happen once ..may be i will check that again )
Note that you have to store something in the session object for the session object to be retained. The Session_End event only executes on session objects that are actually stored.
Remember also that the Session_End and Application_End events are executed using a different account than regular pages, and that there is no Response object available. (You probably know this already, but just to be sure.)
rama charan wrote: and what about pages currently under execution how can i complete them if they are in the middle of execution.
I believe that the requests currently under execution will complete before the application is recycled.
rama charan wrote: Is there any way that i can stop opening up new sessions and wait till current sessions which are active end ?
I think that's how it works. Otherwise it would have to start another instance of the application while the old instance is still running. At the moment I don't have any article stating the facts, though.
---
single minded; short sighted; long gone;
|
|
|
|
|
hi Guffa..
thanks for being so helpful..
i have tried to observe some time ago( dint check it now again) to put some important code in application end and session end events.
but when i was replacing with new application code the sessions were not ended some times properly and application end event (i think..) also did not happen to fire...which may cause my application to face serious issues if users are logged on ....
any way i will check the events again and get back to you till then ...
thaaaaaaank you very much and keep trying...
Rama Charan Prasad
"Be happy and Keep smiling.Thats what u want be always.. "
|
|
|
|
|
Hi,
Guffa wrote: The dll files in the bin folder are copied to a temporary folder before they are executed, so you can update the contents of the bin folder without having to bother about locked files.
I agree that dlls are copied to a temporary folder before the application is executed, but when my ASP.NET application is running (I'm logged in), if I changed the dlls in the bin folder, the session expires and I have to re-login. So are the dlls not locked here?
Regards,
blumen
|
|
|
|
|
hi all,
i am performing an operation (which take some time assume 1 min )
and the user closes the browser .
Will processing of that page continues or exits suddenly when client closes the browser (or client system hanged and restarted)?
any suggestions or links are welcome..
thnks in advance
Rama Charan Prasad
"Be happy and Keep smiling.Thats what u want be always.. "
|
|
|
|
|
rama charan wrote: Will processing of that page continues or exits suddenly when client closes the browser (or client system hanged and restarted)?
It will continue :-> :->
rama charan wrote: or client system hanged
Might be possible if you are doing any heavy work and your pogramme get stuck in infinite loop or Block some where
rama charan wrote: and restarted)?
Never seen
-- modified at 3:59 Wednesday 9th May, 2007:->:->
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
thansk for your help
The issue here is .i need to do some payment processing at server which may take some time on server ..All the code of waiting till process is complete is in the server code at web page .
and hence client system is no way needed for it but page should be living to process the code right?.
And about client system getting hanged ,It need not be due to my application but i can due to other reasons like another local windows application hanged and client user uses end task which is a possible case wherin our dear IE can also can get closed (i have seen cases ).
i think i am clear now right
Rama Charan Prasad
"Be happy and Keep smiling.Thats what u want be always.. "
|
|
|
|
|
Sandeep Akhare wrote: Suppose you are writting a big file on the server side that takes one min to write but in mean time after 15 sec user close the browser that time the file will not save
Not true. Closing the browser does not stop the code running on the server.
---
single minded; short sighted; long gone;
|
|
|
|
|
Guffa wrote: Closing the browser does not stop the code running on the server.
Thanks for making the picture clear
Can i get any article or documenation regarding this
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
rama charan wrote: Will processing of that page continues or exits suddenly when client closes the browser
It will continue.
You can check the Response.IsClientConnected property to find out if the browser is still waiting for the response. There is no "browser close event", nothing happens on the server if the browser stops waiting for the response. You have to actively monitor this propery in the code if you want the code to be aware of it. Otherwise the code will complete regardless if there is any browser waiting for the response or not.
-- modified at 3:08 Wednesday 9th May, 2007
---
single minded; short sighted; long gone;
|
|
|
|
|
thnak you i am clear now
can u just also help me out with the other question i just posted above this with application upgradation issue.
thnsk for your effort
Rama Charan Prasad
"Be happy and Keep smiling.Thats what u want be always.. "
|
|
|
|
|
Hi all,
I have to create content management for a website...
how should i start ...
what should i refer....
pls help me..
Thanx in advance
|
|
|
|
|
The article by Declan Brennan[^]
here in CP will help you in developing the content Management.
Regards,
Satips.
|
|
|
|
|
Hi friends,
I want to develop a touch screen system.
So, if anybody have any idea of this, PLEASE explain me.
Thanks in advance.
Rohit Rathod:
|
|
|
|