Asp.net - NullReferenceException After Long Period Of Uptime
Aug 25, 2010
I've got an ASP.Net application, which starts throwing NUllReferenceExceptions, after a long period of running. The code in question is used early on in each individual session, where we're trying to establish some kind of referrer information. The thing is, I can't fathom out what can throw this exception. The method in question (topmost in the stack trace) is:
[Code]...
View 2 Replies
ADVERTISEMENT
Jun 11, 2009
Does anyone know of a way to programatically find the uptime of a server running Windows 2000? We have a service running on the machine written in VB.NET, that reports back to our server via a webservice.
View 4 Replies
Aug 4, 2009
how to convert it to .net. I have the Imports System.Management figured out so far.......
strComputer = "." ' Local computer
set objWMIDateTime = CreateObject("WbemScripting.SWbemDateTime")
set objWMI = GetObject("winmgmts:\" & strComputer & "
ootcimv2")
set colOS = objWMI.InstancesOf("Win32_OperatingSystem")
[code]...
View 6 Replies
Sep 18, 2011
Is there a easer way of coding in stead of wrighting long long paragraphs like this in one line [code]All of this is on one line and i got lots of info to put down.."The game will begin on your 16th birthday with your mother waking you up. Today you are to go to the castle for the first time. Leave your bed and open your dresser for a Strength Seed. "
View 2 Replies
Dec 26, 2009
In Visual Studio 2008 I am using :Private Declare Function BlockInput Lib "user32" (ByVal fBlock As Long) As Long To stop input from occuring during a search-replace operation.
BlockInput(True) ' do not allow input during search and destroy
Dim cursorIcon As Cursor
cursorIcon = Cursor
Cursor.Current = Cursors.WaitCursor
Then setting it to false at the end of the operation. It did not work, so I thought maybe it was because I was calling it from a child window, so I created a function in the mainwindow, and ran it like this:
FrmMain.BlockFrmMainInput()With these functions is the Main window:
[Code]...
It did not solve the problem. I thought maybe it was because I was running under the debugger, so I tried compiling and running it debugger-free, but that did not do any better. I am still getting input when I double-click the mouse on either form.
View 2 Replies
Sep 17, 2009
I am making a program that when it starts up you type in your name, lets say you type in "John" and then you click on a picture below your name, and a label below the picture says "Welcome John"
How do I make it say "Welcome John." Even if they do not type in a period when they type their name in the text box?
how to make the program insert a period at the end
View 4 Replies
Jun 4, 2009
I have to increase timeout period.Following is my code.
Private Function GetConnectionInstance() As SqlConnection
Dim objConn As SqlConnection
Dim strConnection As String
strConnection = ConfigurationSettings.AppSettings("conn")
[code]....
What code i have to add in above to increase timeout period.
View 3 Replies
Jul 22, 2009
I've got a function that allows only numeric characters to be entered into a text box. My question is how to alter the code to also allow periods (charcode 46).
[Code]
but it does not seem to be working (still only numbers allows, periods still not).
View 2 Replies
Mar 22, 2011
I'm trying to find a VB code that checks if my date on a label is between a certain dateperiond that is chosen from two DateTimePickers..[code]...
View 6 Replies
Feb 3, 2009
So basically, my program is going around the world, and it has come to my realization that certain places use commas instead of periods for decimals points. So herein lies my problem. If the computer's local language is German, then the program will accept commas, but then errors are produced with periods, and vice versa with an American computer. So my question is, is it possible to make the program permanently use periods, and then have a function that can convert any commas to periods?
View 30 Replies
Feb 18, 2009
I'm working on an app and in the textbox field I would like to be able to convert anytime a user would type .36 it would actually change and display 0.36, mainly I want it on the key press of the period just add a zero before it, and I need this to happen on the keydown event.. anyone have any ideas for me on how to do this? This is all I know so far...[code] One last smidget of problem too, I only want this to happen when the user types . in the beginning not if he types 4.22 with the period being after a digit.
View 10 Replies
Jun 18, 2010
I have this value 2.5 and i would like to put this value in a variable but without the period:
Dim value1 as Double
Dim value2 as string
Value1 = 2.5
value2 = Int(value1)
I had try Int but just return the 2, and that i want its:
value2 = "25"
Any instruction that do this directly?
View 5 Replies
May 16, 2009
I'm trying to put A Period After every 3 Characters In A Combobox. I want the user to be able to type an Ip ie:"255.255.255.255" and every 4th character automatically add a period .I already tried the formatstring no go.
View 3 Replies
Jul 13, 2010
I am maintaining some VB .net code and noticed that they call a method with a period in front of it. What does that mean?
View 1 Replies
Sep 29, 2010
My chemistry calculations program, written in Visual Studio 2008, VB.Net (Win XP), gives completely wrong results when a Comma is used as Decimal Symbol.The calculations are only correct with a Dot (.) as Decimal Symbol.How can I make the calculation results independent of the Decimal Symbol? (Dot or Comma)?(For example Excel calculates correctly with a Dot or Comma as Decimal Symbol)I have found an old thread adressing the same problem, but no simple and easy solution was given.
View 3 Replies
Jul 25, 2011
I need to check commandargs on the entry into an application. The value to check will either contain an ipaddress or a special case of '0' or Zero. I can't use he following because it will throw an exception on a valid ipaddress. What can I use to first determine if the value contains a value of type 10.0.110.65 before I check to see if the value is zero?
If (CInt(IncomingConnectionArgs.IP_Address) = 0)
View 6 Replies
May 10, 2010
I am trying to display a dialog for a period of time. if the user is not present, I want it to close and perform a task. I am using a background worker, which is supposed to simulate a button click. It performs the button click fine, but the dialog never goes away.
Private Sub Backgroundworker_ProgressChanged() Handles BackgroundWorker1.ProgressChanged
If Me.BackgroundWorker1.WorkerReportsProgress >= 100 Then
[Code].....
View 9 Replies
Jun 26, 2010
take a shot from a camera every last day of the month at midnight. I know how to to take the shot, but I don't know how to generate an event repetitively after a time period. I thought about to calculate the time between now and the next shot time, but how to run a method after a time period?
View 3 Replies
Sep 16, 2009
How 2 filter 2 consecutive dot in textbox?
View 1 Replies
Mar 28, 2012
How I can stop my application if not use it for a period of time ?
View 1 Replies
Nov 8, 2009
I am trying to prevent the user from typing dupilicate decimals or periods into a data entry form. The code below has all been tried and yes, there was a do something in there. This is just a sample of what I tried. When I could not trap "." I moved through various renditions of the e.keyvalue still no luck. I know it is simple and stupid but it darn sure escapes me...
If e.KeyValue = 110 Then 'NUMPAD DECIMAL
If Me.MultiplierTextBox.Text = "." Then
End If
[Code]....
View 9 Replies
Mar 25, 2009
I have been trying to find out of the last hour how to do something proberbly very simple ?
I have a button, when I click on it, I want to loop the code inside this button for 60 seconds.
View 5 Replies
Sep 2, 2010
How can I loop through each date in a given time period so that I can add those dates as a column name in a table. I want to create datatable with the person's name and hours he worked in a given time period. The user will select the dates and I want to show each day/date in that table as a column name.
View 1 Replies
Feb 17, 2011
I know that the following code blocks the usser from ussing spaces in a textbox however how do i allow the user to only use numbbers and a fulstop (so i can add values like 1.5)[code]
View 4 Replies
Jun 10, 2011
is it possible to have a delay period of 17nS for an application in vb.net???
View 7 Replies
May 9, 2011
I have set up a simple quiz where you drop answers to the correct question. I have implemented a system where the are 18 text boxes (9 for questions, 9 for answers) and it can be customised but I want the questions to be able to be 'saved's since it in another form the if I give them special names when I close the form and open it again it has lost the values. Is there a way to remember the variables for a set period of time (cookies?) or if not just for that session?
View 2 Replies
Mar 12, 2011
I want my program to work for a certain period of time, may be one month.. two month..
View 1 Replies
Mar 22, 2011
I need to find out how Weekdays there are between two days.how can i do this? I know i can not just divide the Amount of days by 5 (for the weeks) and then subtract (2 * Amount of weeks)' (for the weekend), because the first date may start on a Thursday.
View 2 Replies
Sep 9, 2009
I was wondering how can I get the two numbers right of the decimal period? If I had 2.85874125639, I would want to get this: 2.86 since it was rounded...
View 4 Replies
Mar 15, 2011
Is there a way to code, so that if your program freezes over a period of time (5sec), it just stops trying to do it, and goto something else.
"On ERROR" wont work, since its not a error. "Try" doesnt work ether.
Its because I'm am programming something that can login to a router thought telnet, and sometimes the telnet ActiveX doesn't read the buffer or the line proberly, so when the .GetLine() func is called, it freezes. And i want away to goto another point if it keeps freezing for more than 5secounds. The telnet ActiveX that, I am using is Dimac w3sock.
View 5 Replies