Creating New Process Which Doesn't Get Killed Even Browser Is Closed
Jul 6, 2010
I need to perform an operation such as extracting the data for past one year from DB and doing some manipulations and finally displaying the excel graphs for the extracted data. The extraction of data takes almost 6-7 hrs. What i require is that user enters the required data (date and some other details )through an asp.net page and submits it and then closes the browser. Now a process should get started which will extract all data and create the graphs and finally send an email to the particular user.
I started creating a new website in Visual Studio 2008 and in my site, there are two pages such that clicking treenode on parent page will take the user to second page. But when i execute my project and then stop the debugging from IDE, the child window is not getting closed. I am not sure where i am missing.
User X login as "user1" in web browser. Then user Y also login as "user1" also in another web browser. User Y got error message "Another user log in some account".
That is work as expected.
If X, close their web browser. Then try again to login in as "user1". X get also get "Another user log in some account".
So i trying debug then i found session is remove when web browser is close, but cache still remaining in web browser.
how to clear cache when user close their browser, (not tab).
When the browser is closed (w/out clicking on log out) and user launches the site using a new session, it does not prompt user to login credential page, rather it takes the user back to the previous session.
I am working on roles. Allocated some tasks to Annonumous User and LoggedIn User. What happen, once I login it shows me the correct task for LoggedIn user. But if I restart the application then by default it shows me LoggedIn users tasks. I am testing chrome and I.E.
It seemed to keep the session cookies from staying on the client after the browser was closed. Another strange this is that I can close the IE and open FireFox and the session is in there too. HOW IS THAT? I am thinking it is how my environment is setup. I have the sessions set for InProc and using cookies in IIS. What is different in IIS7?
Update: I am using integrated mode for my app pool. I looked at an older site I created using .net 3.5 and iis6 running on Sever2003. I can log into the site and it creates the session variable for me. I then go to FireFox and open the same site. It requires me to log in (my application will take you to your prfile if a session exists). If I then close IE and reopen IE, then go back to my site, it requires me to log in again. What is happening with iis7 and my current application, is quite odd. The only difference in how my session is pulled is that I am getting the variable while casting the current handler to the Page object: (Page)HttpContext.Current.Handler
Update: well, I think i found where the issues is and it has to do with casting the HttpContext.Current.Handler to the current page object. I have a configuration file where I wanted to put a property so all other classes could reference a central point to grab the User session object I created. The HttpContext.Current.session was always null and someone had suggested casting the HttpContext.Current.Handler. I created a simple page that checks to see if a session varaible has been created and if not it creates it. Then I print out the value. When I close the browser, the session is GONE. So, that is working. The code I had origianlly in this message was really for the back button, So I guess it is not clear why that session pulled from the Hnadler is always available until I speicifcally clear it.
I am using Wizard Contorl in one of my project, I want to maintain the state of the wizard control at any step .Let me explain further , let suppose when user is at Step 4 out of Step 10 and then user would close the browser so the state should be persisted and when the user come back again to the same URL the step would be 4.
I open two browser, log into the application, proceed in a few pages to store some information in the objSessionData for both browser (2 differrent session).If I close the first broswer, and now keep on going on the 2nd broswer, everything that was in session is now lost.It looks like Session 1 detroyed session 1 and session 2.I have tried to change the cookieless to TRUE and when it is set to TRUE, I do not get this problem at all.
By using above query its fine to save logout time in database, if the user unfortunately close the browser without logout then how to store logout time in database...
I am in the process of creating an audit trail system. Simple enough. Certain fields require audit trail. What is the best design concept to allow this to work in multiple applications without having to change much? I would of course leave it to the admin of the site to add what fields should be audited, but the logic is the problem. Would implementing the interface IComparable be a place to start? My initial thinking is to compare 2 arrays against eachother and do an insert of what fields are in question. Array1 are the fields in the form, array2 are the fields from the sql table that require auditing.
i need to develop a tool which will take a long of time while processing, lets say copying data with size 1 GB from one database to another,
i can develope a webform for that issue but i have a problem which is when the user close the browser the process will terminate!
what i need is when the user click on "copy" button (regarding to my previous scenario) the process continue even the user close the browser, and will not end untill the all data copied successfully to the destination place.
should i use windows service with my webform? or webservice ?
I've asked this before but I was hoping for another answer and perhaps some code samples because I've been having a difficult time with this. I have an asp.net page. The user hits the "Run" button and I have code IN AN ASSEMBLY, not in the APP_CODE folder that is called and runs a long process that moves product info from a file into the database. While the user waits, I would like them to see status updates like what product the import process in on and status info. I'm assuming I'd break off into another thread and use Ajax but I have no idea how to do this.
I have created a new VS2008 ASP.Net Web service project, with the default name WebService1. If I right click on the Service1.asmx file and select 'View in Browser' what are the processes that go on to make this happen? I am asking because I have a situation where when I run this from a visual studio project started in our development shell (which sets up a common build environment) I cannot get the web service to show up in the browser.
C:WINDOWSMicrosoft.NETFrameworkv2.0.50727Temporary ASP.NET Files ootc43ddc22268ae91bhashhash.web
I created a service which will fetch data from the DB and sent it another application . For insatlling that service i use a insatll.bat which has the following line Serive_fech.exe -i and for unistalling Serive_fech.exe -u . When i insatll i can see the service listed in task manager . But when i stoped or restarted that service its not removed from the list . How to remove that. I have build the application using 3.5.
Last night I was developing a new web application from the main server and my SQL installation killed itself and my .NET instance no longer works the way it's supposed to. I lost a serious amount of test data and I can't recreate the main ASPNETDB.
I have created a webservice in 2010. And when I call it from my web application sometimes,It generates the follwoing errors:-1. The underlying connection was closed: A connection that was expected to be kept alive was closed by the server.2. Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding.I have already tried increasing excutonTimeOut etc.
beginner programmer - basic C#, first year of university going too slow in terms of actually learning programming. i'm looking at creating framework for a basic browser game, in the vein of urbandead and the now dead nexuswar. because i'm a student i already have visual studio 08 for free - because of this, and my experience with C#, is it worth it to choose ASP.NET/ADO.NET over PHP/mySQL for this kind of project?