I'm getting desperate here trying to find the problem, and I don't know where to start looking for it.
Here are the symptoms:I've noticed, that when a user logs on in the morning, he is then immediately logged off, then when he logs on again, everything is fine and he can work on the site.
Every once in a while, when the user clicks a link, the page takes a lot of time to load, but it never actually loads, and the user is thrown to the login page.Also, after an Exception has occurred in the website, the user is then thrown to the login page. It's as if the exception clears somehow the session.
I have inherited a ASP.net site, and I've made some changes too to some of the VB code and CSS, and have hosted it on a FTP. It uses an SQL DB to allow users to log in and calls stored procedures.The site complies with no errors, and allows me to log in as a user, and can works perfectly on testing.However, once uploaded to the FTP, it no longer allows me to log in as a user. It hangs for a while, and then returns a message saying that the password is wrong, despite it being correct. It doesn't throw an error message, and I think I've narrowed it down to something to do with the Web.config file, but I'm at a loss as how it's not working, especially with the lack of error messages being thrown.[code]
I was wondering is there a way anyone knows of to "inject" a logger into an application such that it passively monitors the thread and quietly logs processes as they occur without having to do things like: [Code] It would then monitor everything that goes on inside of that method including passed in arguments along with method calls and values passed into those methods, exceptions that occur etc. Has anyone implemented something like this in the past? Could it even be implemented? Is logging in this fashion just a pipe dream?
I have a class for serial communications (call it CSerial), based on a property value (CSerial.LogLevel), I'd like to produce various levels of logging information about data sent and received to the serial port.Given that it's a reusable class, there's no way of telling whether the log data should be sent to the console, a text box, a file, etc. This would be determined by the application using the class, so I can't write all of the different output options into a method in the class.Question:What's the best way to implement this? I have some ideas:1. Create a Log method and then "override" it in my main application to handle the most suitable form of output? Can I "override" a method as part of an instance? Or do I need to create a new class that inherits my original one, override the method there and then create an instance of my new class?
Im trying to login to my website with vb.net (without the use of java script).webbrowser.documents.forms(0).submit..All i can find on the internet is to use that there to click the login button but it doesn't work.I also found this for filling in the login forms but im having trouble understanding how it works.[code]So if anyone could explain to me how to fill a form or how to click a submit button.
I've been assigned to start a new Logging Project from zero in VB.NET.The final exit of the main project is information organized in paragraphs like this:
Every paragraph correspond to a database connection. Every connection is made with an entire diferent database.i need my logging project to save everything the user does, so the logging exit would be like the system exit but with exceptions and other important information like this: Paragraph's title 1 Paragraph's content 1.Paragraph's title 2 User wasn't able to see this information because an exception ocurred: System.WhateverException:couldn't connect to WCF.as you can see the exit is the same but i need to create a detail log because the information is delicate and the DBA needs to now wich user did what and what was the response of the system. Also i need it to be and independant project so i can re-use it in another projects. Seeing the final exit of both the main project and the logging project, what would you recommend me to use for logging in .NET?
We have a current implementation of a log file manager where it's two main purposes are to 1. rename files generated by other programs with a date/time stamp so they create new ones, and 2. delete files older then X amount of days from a specified folder. The program also makes it's own log file which records when these events happen.Do you think the Logging Application Block would be useful in this instance? The old file manager is written in VB 6.0 and an upgrade to VB .Net would not take too long, but is it worth it to try and implement LAP into it?
I have two websites "WEBSITE 1" and "WEBSITE 2"...now i want that when someone logs in to "WEBSITE 1" he does not have to log in to "WEBSITE 2" and vice versa...ie when he/she logs in to any one of he websites and opens the other one simultaneously he/she does not have to login to the other one.For eg :- when you are logged in in gmail...you do not have to log in in youtube or orkut or google+
i would like to be able to login on a webpage using a valid active directory username and password.user name and password are entered in textboxes. if they are correct then i would like to redirect to another page.how can this be coded.in a second task after some code is performed, log in as an administrator using code and unlock the account.i have heard that this is called impersonation. how can i perform the above?i'm using visual web developer 2008 and vb.net
Or something similar is fine also.After that I want the logs to be saved into a txt file, (I can do this part)Then the user will enter a new site to be logged. Once that is done that will also be saved into a txt file. Etc....Then finally if any IPS that are the same show up in the text files then the user will get that IP in a textbox.
I just got finished watching a short video on logging using some of the built in concepts in Visual Studio 2005. This seems to do a good job. My question is why do people look for other solutions to logging such as Enterprise Library or Log4Net when there is a simple solution out of the box?
The video I watched primarily used the following for logging.
I'm writing an application that has to record data @ ~ 500 HZ for hours on end.I'm noticing that when the file size is greater than 20 MB that a text line append is slowing the system to a crawl.Aside from splitting the files into smaller items is there a better way to do this?
Using writer As StreamWriter = New StreamWriter(DataLogPath, True) writer.WriteLine(dataEntry) End Using
I have a login on my website, I want the user to use their email as their username when logging in. But what I was wondering, is there a way that after they enter their email and password can I some how only the first part of their email can be relevent for logging in. Such as SOMETHING@yahoo.com, I want them to enter their whole email address but I want to somehow only grab the SOMETHING part from their email to be relevent. I need to know how to do this,
For the past year-ish i have pretty much mastered the httpwebrequest function of programatically logging in to 1 of my websites to retrieve data, while it works well i was thinking about the webbrowser function, would i be better sticking to the webrequest route? it looks like the webbrowser requires much less code which is good lol can the webbrowser do everything httpwebrequests can?
I can log into a website great using the webbrowser function then have the fields filled in and the submit/login pressed, i am now trying to do it so i don't need to use the webbrowser function, ideally what i intend doing is grab a piece of information once logged in.i have searched a lot and i know i need to use webRequest and webResponse for this, the part i'm having trouble with is how to deal with posting the actual data to the website, in the webbrowser way you can see the input fields filled in for you but i'm not sure how to post the data this way?
Is there any easy way, or any pre-existing code I can uslp me log (to a text file) values of variables in my program every time they change? uld choose which variables are reported. At the moment I'm having to do this manually with bespoke code - I just wondered if there was an easier way, such as some magic built-in function?
I'm trying to allow users to update their details after logging in on an asp site using vb. Textboxes are populated with user details using session variables in the form_load. The textboxes should be editable but for some reason are not registering the changes when the submit button is clicked.
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load Txt_Fname.Text = Session("First_Name") Txt_LName.Text = Session("Last_Name")[code]..........
Using VB MVC 3 with Razor ... can I create the PayPal ipn in any controller? say I put it in its own controller say IPN. Would the URL not then be [URL] ? and if that is correct. Do I need to create a blank view page named Ipn or what ever the Ipn action name is?? In this view would It need to contain any razor syntax? I have been back and fourth over every single post I could find about IPN but there is nothing for MVC 3 vb.net.. This has been edited... I have got the IPN handler reutrning status 200. And when I run it through the tester I get success... However actual test transactions are not being entered in the database...The Ipn Controller function is this:
End Function <AcceptVerbs(HttpVerbs.Post)> Function IPN_Handler(ByVal sender As Object, ByVal e As System.EventArgs) Dim strFormValues As String = Request.Form.ToString()
I'd like for debugging purposes to be able to log what functions are called and in what order. So I've been just putting Debug.WriteLine("myFunctionName(args)") all over my functions, logging it in the end to a file. Isn't there a better approach to do this?
I have a method as follows: Public Sub Send() Dim caughtException As Exception = Nothing Try //Attempt action. Catch ex As Exception //Custom exceptions which can be thrown all inherit from Exception. //Instantiate error object to be logged. caughtException = ex End Try //Log action and if there is an error log this too. If caughtException IsNot Nothing Then Throw caughtException End Sub
It is essential that I log the error for reports, which after research, rethrowing the exception is the right thing to do. What I am concerned about is preservation of stack information. In order to keep the code DRY I am logging the action in one place - after the exception has been caught. This functionality is ultimately exposed via WCF.
I am trying to build a facebook WebApp in vb.net using the Facebook C# SDK. The SDK can be used for vb.net, this I know. However I am trying to get my app to login on page load. I can get it to login, however my app does not recognize that it is logged in and continues to loop through the login again until i stop it. [Code] I have tried countless different methods to get it to recognize the logged in status to no avail.
I have a GUI class and a database class. I do something like: Dim db as Database = getDatabaseObject(logTxtBox) db.executeNonQuery("some update command here")
Within executeNonQuery I connect to the db, execute the command, disconnect and catch the exceptions. logTxtBox is the GUI txt box I want log messages written to. Currently it writes something like:
Connected to DB successfully Executing "some update command here" Excepetion: ........ Disconnecting from DB
I feel like this isn't the best structure for my logging. As soon I kick off executeNonQuery with a BackgroundWorker instead of with the main GUI thread I cannot access the GUI's logTxtBox from the BackgroundWorker's thread. Is there a better way to implement this kind of functionality?
I'm writing a VB.Net app using SQL Server 2008. I want to use exception handling but it appears that the way to do that in SQL Server 2008 has changed. I've read about a configuration console to create an exception policy for my app. Where do I find this configuration console?
I am fairly new to VB.NET and I am working with an service that implements a timer. The timer action will do some work and then log success/failures to the event log. I am noticing that each time the event log is written to the memory usage of the executable shown in the task manager increases. It does not increase by much, maybe 20k or so. Is this expected? The code below is an example of what I am doing that is causing the memory to increase.[code]......
I'm trying to login to a forum based on given details (username + password textbox).
Here is my current Dim id As String Dim password As String Private Sub ButtonX1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ButtonX1.Click If TextBoxX1.Text.Length > 0 Then If TextBoxX2.Text.Length > 0 Then [Code] .....
But I'm having trouble clicking the "Log In" button on the top floating bar. And the page I'm trying to login to: [URL].
I'm wondering if its possible to log who is connecting remotely to my local hard drive and also log what they do if possible?A lot of people access my hard drive and im curious to what they do while there.
As of now I have the POST data down and am sent to a 'Redirecting..' page.Here I am able to grab some data from the HTML that will be required in future requests.It seems that now, however, I need to authenticate myself.Packet sniffing the data, here is what I need to imitate for a successful login:
HTTP/1.1 302 Moved Temporarily Set-Cookie: GoogleAccountsLocale_session=de Set-Cookie: SID=DQAAAG0AAADLKo0PYiFiKAFeYWFSWc8CDvKmmRDmpLLQlmkK0VgnaSxNeLk1FH9rZZ_ztotu-
Bolded are the pieces of data which I can extract, underlined is the one I'm not sure of.Anyway, how can I go about setting these cookies to an HTTPWebRequest (well, multiple requests but just the one object)?