Security :: Working Webpage At Log Off State Of The Web Server?
Sep 7, 2010
There is a possibility that the web server computer (host) resets and there is nobody that can log in to system after reseting . I dont want my webpage stop working at this state until the Admin login to the server. so I want my webpage do its main job at logoff state of the server.
how can I create this webpage? what technology can I use to do this?
View 1 Replies
Similar Messages:
Oct 5, 2010
I have a big query that it execute in 4 minutes. (for example an important trigger)
I want to show situation of query or count of records that is affected in every 10 second in to a web page.
what should I do? (complete explain)
View 7 Replies
May 4, 2010
In my database I have already installed the aspnetdb membership tables and process (think that was running : aspnet_regsql.exe) with all my other custom build tables for my project. All works fine.I want to use SQL server session state. (Asp.net 2.0, SQL server 2005)My project will be on a SHARED HOSTING environment, and I only want ONE database that holds all I need ( membership, custom tables, session state table, etc)I see two files in : C:WINDOWSMicrosoft.NETFrameworkv2.0.50727
InstallSqlState.sql
InstallSqlStateTemplate.sql
I assume I run the "InstallSqlStateTemplate.sql" and follow instruction from this reference to SQL server session state operational in my single project database : [URL]
View 2 Replies
Feb 21, 2011
I have a login control that is working beautifully on my localhost, but not working on the server. It validates my username & password - and gives me an error if I enter an invalid username/password. However, if I enter the correct username/password, the page refreshes, but does not redirect me to the "ReturnUrl" that I see in the URL. I've seen posts on this, but nothing that I tried worked. I've tried setting the 'MembershipProvider'attribute of the login control. I don't want to set the DestinationUrl...I want it to take what is in the ReturnUrl in the querystring. I don't think it's a web.config issue cuz it works on localhost??
View 3 Replies
Apr 16, 2010
It somethimes happens that, when I use PrinceXML to convert a webpage to a pdf, the local ASP.NET Development Server stops working...It popups the message "ASP.NET Development Server stops has stopped working"
View 4 Replies
Feb 25, 2011
So we have three 2008 R2 Servers where two are configured to be web servers (IIS 7.5), and the third a session state server. I have set the SessionState and MachineKey settings in the applications web.config. After I restart the two web servers I can log into one server, then change the IP address to the other server, and I am still logged in. Success.
I can typically log in/out with any user account I want, change the ip address back and forth, and all is well until some random time between 30-60 minutes when I log in to one server, change the IP address, and the new server asks for credentials.
This is the sessionState setting in both web.configs:
<sessionState mode="StateServer" stateConnectionString="tcpip=xxx.xxx.xxx.xxx:42424" cookieless="false" timeout="30"/>
The application resides under the default web site, and uses the default application pool. I am using forms authentication with a timeout of 20 minutes. I am not receiving any error events on any of the three servers when this happens, and restarting the two web servers fixes the problem for a while. The two web servers are not clustered per-se, but will be served round-robin via a network device.
View 2 Replies
Aug 26, 2010
In my web application, I set the mode of session state as State Server and point to another server. After run some days, I always meet following exception:
The state server has closed an expired TCP/IP connection. The IP address of the client is 192.168.80.157. The expired Read operation began at 08/25/2010 14:18:03.
View 2 Replies
Aug 17, 2010
am trying to get URL of the page that referred the request to my page, i tried the "
[Code]....
[Code]....
[Code]....
[Code]....
View 5 Replies
Mar 22, 2011
I have created a self signed certificate for IIS6 for my app. App works fine when I access it from the web server. But when I access the app from client machine it gives an error "The connection has timed out" on IE, and on Firefox it does not load the page.
View 4 Replies
Feb 24, 2011
I've found this article on enabling windows authentication within an intranet ASP.NET application. I did exactly what the article says, and when I go to the page on the server all it does is prompt me for a username and password, which I would assume means that it is seeing me as an anonymous user and not a windows user (which is not true).
In my application on the IIS i have the "Integrated Windows Authentication" box checked and this is what I have for my web.config file:
[Code]....
I've also tried this before and got the same results:
[Code]....
I have no idea what I need to do to get this to authenticate correctly. I've been banging my head off a wall for the past 2 days on this issue.
View 7 Replies
Feb 9, 2010
I made a login control in a webapplication with a membership provider and a role provider. The problem is when I enter the username and the password in the login control (on my system i.e localhost) the user authenticated and redirected without any problem, but when I deploy my webapplication with my database on a host server the login control cant authenticate the same user and tells me "Login attempt was not successful".
View 8 Replies
Mar 7, 2011
I'm working in a web application that uses InProc sesssion to store data then we decided to decided to work with out of process session state. But now I tried to Implement that but it is not working
Note: I use visual studio web development server.
Here is what I did in the web.config fil:
<sessionState mode="StateServer" cookieName="ASP.NET_SessionId" stateConnectionString="tcpip=127.0.0.1:42424"
cookieless="UseCookies" timeout="10"/>
And to enable session state in all pages:
<pages theme="Blue" enableSessionState="true">
Then I started the aspnet_state service on my pc.
And I made a test to see if the session is working but unfortunately it is not working
View 9 Replies
Dec 3, 2010
On my PC everything is all rigth but on the webserver I get an error: 'OrderBy' is not a member of 'System.Array', maybe due to the trust level. Is there I way to bypass this or I have to resign myself to it?
View 2 Replies
Jun 28, 2010
I'm using membership that created by asp.net configuration when you create users with roles when you create a user for your website using asp.net configuration in Visual Studio
After uploading my project and creating the Database, I can't login using the users that i have created, i'm 100% sure im using the right username and password but still can't login but they are working 100% in my local DB
after few search in google i found the solution is to execute the following command:
[Code]....
View 3 Replies
Apr 13, 2010
I am a newbie to asp.net and have recently been building a web... I have a login control on the main page which when logged in verifys the user and redirects them to the home page... I published this to the server previously and it worked. Today when I tried logging into my system however I got the following error message:-
"Your login attempt was not successful. Please try again."
The accounts did work before but since I have uploaded a newer version of my program onto the server the above message is displayed. I have been on many websites and read previous forums with suggesstions to add <roles> in the web.config file however the login control worked before and I have not changed anything on the site apart from a different page that doesnt affect the login.
Few points to make... the login control is using the asp.net configuration pre built tables it generates for you, I have created the users and roles inside of asp.net configuration so it is not a custom membership... I am at a complete loss as how to get my login control to work having tried to insert roles into the webconfig file.
View 3 Replies
May 21, 2010
i have been creating a website on my computer which has VWD 2008 and SQL Server 2008, i have membership and role system set up, (using the aspnet_regsql) and that worked perfectly fine on my compuetr.
Now when i was ready to deploy it on my web server, i simply copied the whole database, and added it onto the SQL Server on my server, so it has exactly the same rows, tables, data, etc etc.
Now, when i run the website via the domain, users are able to login etc, and my authentication code that redirects users if they are not logged in also works, so im sure it cant be a problem with the membership provider, as it all seems to work.
But all the users that were already in the set roles, it still shows them in the role in aspnet_roles table, but its not working, the thing i have in the roles loginview does not display, and even after running the web administrator tool, it shows that the user is in that role, but does not work (even while viewing on the local machine)
So i added code in a page_load event that would auto add that user to the role
System.Web.Security.Roles.AddUserToRole(HttpContext.Current.User.Identity.Name, "TestRole");
and on entering the domain (on the local server) i got error:
The role '' was not found.
And on local host server
I get error:
The user 'TestUser' is already in role 'TestRole'.
But yet, even on the localhost i still cant see any indications that the user is in a role, as none of my rle login views are showing.
The role '' was not found.
View 5 Replies
Jul 12, 2010
I have a sql server 2008 database table that has a column of type geometry. I am trying to update the data for a record. The data that needs to be inserted into the database is a POINT location that i get off of two text fields on an .NET form. I pass the values into a procedure to update the record. Below is what I have been trying with no luck. The @lat and @long variables I pass into the procedure as type. Does anyone have a good way to update this data? When I try to compile this code it gives the error: "Msg 403, Level 16, State 1, Procedure UPDATE_LAT_LONG, Line 19 Invalid operator for data type. Operator equals add, type equals geometry."
create
PROCEDURE [dbo].[UPDATE_LAT_LONG]
(@PK int,
@lat geometry,
@long geometry )
AS
BEGIN
SET
NOCOUNT
ON;
UPDATE MITIGATION_REPORTING.dbo.MR_MITIGATION
SET MR_MITIGATION_LATITUDE_LONGITUDE =
'(''POINT('+cast(@lat
as
geometry)+' '+cast(@long
as
geometry)+')'')'
WHERE MR_MITIGATION_PK = @PK;
END
View 1 Replies
Oct 31, 2010
I have 2 cols. StartTime and EndTime. If user's total time is greater then 30 mins then I am locking user. Here, I used Session and I want keep my session for 30 mins. I did almost everything (I think ?) . Change the setting from IIS, Wrote <sessionState timeout="30"> but it is not working... Till 28 - 29 mins it saves the time, but not above..... After that I changed the session's timeout for 9 hours ex: <sessionstate timeout="5400">..... But still not working.... I don't understant what to do?
View 2 Replies
Sep 8, 2010
Why Session_OnEnd does not fire in state server & SQL Server modes....... i mean what is the speciality in InProc mode that Session_OnEnd fires in that mode only ????
View 1 Replies
May 31, 2010
i need to pass the roll no from one page to another and have written the code but the code is not working
in the first page
Response.Redirect("userview.aspx?RollNo=" & TextBox1.Text)
then in the target page
dim rollno1 as string
Public Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs)
View 14 Replies
Jun 20, 2010
whenever any internet user visit any site on the world wide web, a session is created by the site for that useram i right? or is the session created by the iis on webserver?and this sessionwhat is it, yes i know session variables and how used them, but never understood what is this sessionwhat information does it have
View 6 Replies
Oct 14, 2010
I have some vales in my web page which i want to pass into my next pasge for further work.
how to find out a good method to pass my textbox values to next opening window.
View 5 Replies
Apr 16, 2010
now i need to test on a website, which i able to login to the main website and some of the sub-website or sub page. but when i click on 1 of the link to link to the page. it always show me Timeout expired.
I already try to restart the IIS admin service and make sure my database is up and connected.
now i test on my development server. so the website i browse is at localhost.
Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding.
The error i get as below. hopefully get some idea to solve this issue.
Description: An unhandled exception occurred during the execution of the current web request. review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Data.SqlClient.SqlException: Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[SqlException (0x80131904): Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding.]
System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection) +862234
System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) +739110
System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) +188
[Code]....
View 10 Replies
Oct 25, 2010
I have to maintain session of two users on a sigle page.And the path is. UserPath:
1.User logins with his credentials((We retrive their credentials from login table) .
2.He invites some of his friends for a birthday party.
3.And send an url link to share some of the gifts with them in which gifts are provided in Share.aspx page.
4.Userlogouts.
Invites path:
1.Invite logs in with his credentials(We retrive their credentials from invites table).
2.He is directed to go to Share.aspx and list the items he require.
3.And he logs out.
Now i have problem in maintaining session for both the user and invite. How can i maintain the session so,that the user can identify a particular invite from the list of invites an his chosen items.
View 1 Replies
Sep 27, 2010
I have a website that has 10 aspx pages in it, and I'm trying to count how many users are on any one page at a time, and display that number on the web page. I have set it up to use an Application object ("TotalViewers"), and initialize it to 0 in the Application_Start event handler of the global.asax file. My reasoning (probably way off base) is to increment the count on each page load, and then decrement the count on each page unload. The increment part works ok, but when I add the code in the page unload event handler to decrement, it seems that Unload happens before the Page is presented to the client, so the value always stays the same (adds one in page load, subtracts one in page unload).
How else can I track number of users on each page? (simply, becuase I am still a beginner). I have already done some google searching and haven't come up with anything useful.
All my pages are being navigated via a TreeView control.
View 6 Replies