Finding The Uptime Of A Server Programmatically?

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


ADVERTISEMENT

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

VS 2008 : Use WMI To Get Remote System UpTime (Boot Time)?

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

Finding All Names Of The Tables In SQL Server CE

Dec 7, 2010

Can anyone help me with finding all the table names in SQL Server Compact Edition (.sdf file)?

View 3 Replies

Finding Used Space On Web Mail Server Using .NET?

Jul 28, 2010

I need to write an application for finding used space on my web mail server using .NET.

View 1 Replies

Add Users To SQL Server Programmatically?

Dec 30, 2009

So I'm creating this app that will install SQL server 2008 express, add some SQL users and then import a database.

Is there a way to create users for SQL express in Vb.net?

View 1 Replies

C# - Setting Server Bindings Of IIS 6.0 Programmatically

Jul 23, 2010

I'm trying to set up an installer to register a web site. Currently, I've got it creating an Application Pool and Web Site under Windows Server 2003. Unfortunately, whenever I try to modify the ServerBindings property to set the IP Address, it throws an exception at me. I first tried this because the documentation here told me to [URL]. I'm currently using VB.NET, but C# answers are okay too as I need to switch it over to using C# anyway.

[Code]...

View 1 Replies

How To Programmatically Connect With Server Instance

Feb 2, 2012

[code]....

View 5 Replies

Programmatically Attach With Server Instance Through Program?

Feb 2, 2012

I need to attach my database, that resided in the MyData directory of my application folder, to the instance of SQL server on client's machine. [code]...

View 2 Replies

Programmatically Modifying A File On Windows Server 2008

Nov 23, 2009

I have written a VB.NET 2008 application, incorporating Microsoft.Office.Interop.Excel, that modifies an existing Excel 2007 spreadsheet. It works perfectly on my WinXP development computer.When I upload the app to a Microsoft Web Server 2008, it opens the file and reads from the file, but when the app tries to save the file, it throws this exception:"System.Runtime.InteropServices.COMException (0x800A03EC): 'july2009.xlsx' is read-only. To save a copy, click OK, then give the workbook a new name in the Save As dialog box."The file is NOT read-only, nor is it opened by any other user or app.The app and the Excel file both reside on the D: (data-only) drive.My first instinct was to look at file permissions. When nothing else worked, I literally created a temporary Group, added EVERY user and security entity to it and granted the group full control of the entire D: drive. No luck.

Then I tried manually elevating the permission by running my app as administrator. No luck.Finally, I copied the file to my XP development computer and ran the app there. Of course it worked perfectly.Can anyone please tell me how to give my program permission to edit a file on Server 2008?

View 3 Replies

Asp.net - Store Blobs / Rich Text Memos As Rtf Programmatically On Server Hard Disc Instead Of The Database?

Jan 14, 2011

is there a way to store blobs / rich text memos as rtf programmatically on server hard disc instead of the database ?

Update (1)

i want to write in a memo field and store it using identifiers like sessions and time stamps for example writing a memo with the session "subject" and session "dateANDtime" to be stored as "mysubject-12/12/2010-11:56pm.rtf"

how to retrieve the file. can i build hyperlink programmatically?

View 3 Replies

Finding Age From DOB

Mar 16, 2011

My EmpTable is in SQLserver & Data entry using Visual Basic 2010 "List format" on Windows form.Sir my requirement, if I enter (Date of Birth) in DOB column the Age should display on the same form in Textbox.

View 3 Replies

.net - Finding Out The Datetime Value

Jun 7, 2011

In my vb.net winform application, I am moving the file from one folder to another. I need to store the datetimevalue when the transfer has been done. Later I need to show this DateTime value in my Grid. Here is the code i have written, but not able to store the datetime value.

[Code]...

View 2 Replies

Finding A Control In .net

Mar 3, 2010

In vb.net I have control named checkbox1 that I can see at dropdown menu in properties tab. but in designer I am not able to locate it... Also when I am selecting CheckBox1 from properties' dropdown menu, no checkbox in designer gets highlighted.... How to find that control in designer?

View 3 Replies

Finding A Decode Key

Jul 19, 2011

I have to provide a client with a method to retrieve data from an Audiometer. The equipment is discontinued, but they have six of these and are used every work day. Using port monitoring and the DUMP command on the peripheral I was able to read the data and save to file. Now my challenge is decoding each line. It appears that only a section of the string is not in plain values.I added the pipe separators for clarity. I have determined those columns are: EMPID | DateTime | TechID | Results | ResultType = Test.[code]

View 8 Replies

Finding A VB, Or C# Or C++ Dll Injector ?

Aug 26, 2009

I have been finding a VB, or C# or C++ Dll injector for a long time. Ive decided to make one. So in VB i went to toolbar and found "Process" and i didnt know what to do after. how to make one (dont post code). Ive tried using the "GetProcessByID" thing but dont work.

So far what i did:

If Process.Start("Engine.exe") Then

End If

Also how do u make it inject the "DLL"?

View 4 Replies

Finding A Winpcap For .net?

Jan 25, 2011

Is there a Winpcap for Visual Basic .net?

View 8 Replies

Finding An Image?

Aug 7, 2010

I'm looking to take a screen shot with my program and try to find an image inside of it. Is this possible?In other words, I am trying to find an image inside of a larger image. It would be great if it could be a screen shot of just the webbrowser form.

View 18 Replies

Finding And Opening Wow.exe With VB?

Apr 30, 2009

I can't find out how to find and open the program wow.exe using VB.

I can get it to open mine but it can't open other peoples they get errors when they try, I have xp and the Vista and other people can't get it to open theirs so I need to know how to find the file then open it.

The code I'm using is this:

Private Sub Play_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Play.Click
Dim installpath As String = String.Empty

[Code].....

View 7 Replies

Finding The Max & Min Of An Array

May 10, 2009

I have some code that generates 15 random numbers between 1 and 100 and prints the 15 numbers in a listbox. I want to be able to find the max and min numbers in that list. How would I go about finding those values? I'm new to VB so a solution involving basic string/array manipulation would be preferred.

View 2 Replies

Finding The Name Of The First Worksheet

May 27, 2010

I am trying to find the name of the first worksheet in excel. I can get the list of sheets, but i need to know which on is the first one in the workbook. using vs 2010 and office 2007

View 1 Replies

Finding Where App Is Running From?

Aug 22, 2011

under VB6 I used to use the code app.path, what is it under VS2008

When I write the final code I want my program to install the exe and support files in the same directory/folder

In the software I want to be able to refer to these support files when needed
Regards Princy558

View 4 Replies

Page_PreRender Finding Div By Id (asp.net VB)

Sep 1, 2011

I am trying to run some code on Page_PreRender but only want it to run on hyperlinks within a certain DIV. What the code does is change the colour of a hyperlink if the NavigateUrl = the URL of the page the user is on. I have some code that works but it changes the colour of every link on the page that matches when I only want it to happen within a certain div.

[Code]...

View 1 Replies

.net - Finding A Memory Leak Cause?

Feb 9, 2010

I have the following Leak situation in a VB.NET (.NET2) application: a form - DetailTache (TaskDetails) - in my MDI application is not garbage collected is not collected ofter open/close.

EDIT: Result search from projet of WinComboRowSelected Event. There are 3 usages of this word in application:

Declaration in Class WinCombo: Event WinComboRowSelected(ByVal sender... (only one)
Raising: RaiseEvent WinComboRowSelected(sender, (3 raisings)
Usage: ...e As Keolis.ctlWinCombo.WinCombo.WinComboRowSelectedEventArgs) Handles cmbProduit1.WinComboRowSelected (multiple handles).

there is No other usage of this event.

View 5 Replies

.net - Finding Path Of Application?

Jul 7, 2011

In a VB application I am building, I need to launch Outlook. Obviously, on every computer the path to Outlook will not be the same. Thus, I need to know how to find the path of Outlook on the user's computer before I Shell("path"). How would I do this?

View 6 Replies

Adding Helpfile With App And Finding It On A Another Pc?

Nov 6, 2011

I need my published vb 2008 application to open a helpfile that I wrote. It is a simple .txt-file and this piece of code does the trick as long as the program is not published because I already know where I placed the Helpfile:

System.Windows.Forms.Help.ShowHelp(Me, "C:Helpfile.txt", HelpNavigator.TableOfContents)

After it is published on another pc, the helpfile is not on the root of the c-drive but in the application folder of the program. However, I can not know where the path to the program folder of someone else's pc is. It all depends on where they decide to place the program when they install, right?

It seems I need to replace this little: "C:Helpfile.txt" with some code that searches all the drives and directories and/or points directly to the Helpfile's placement - i.e. the parent directory of the program.

View 6 Replies

Adding Txt-file With App And Finding It On Another Pc?

Nov 6, 2011

I need my published vb 2008 application to open a helpfile that I wrote. It is a simple .txt-file and this piece of code does the trick as long as the program is not published because I already know where I placed the Helpfile:

System.Windows.Forms.Help.ShowHelp(Me, "C:Helpfile.txt", HelpNavigator.TableOfContents)

After it is published on another pc, the helpfile is not on the root of the c-drive but in the application folder of the program. However, I can not know where the path to the program folder of someone else's pc is. It all depends on where they decide to place the program when they install, right?

It seems I need to replace this little: "C:Helpfile.txt" with some code that searches all the drives and directories and/or points directly to the Helpfile's placement - i.e. the parent directory of the program.

View 16 Replies

Asp.net - Finding All Use Of Session State?

Feb 3, 2011

I'm looking for some smart ideas on how to quickly find all usage of session state within an existing asp.net (MVC) application.

The application in question was the subject of outsourced development, and has been running fine in production. But we recently realised that it's using InProc session state rather than (our preferred route) StateServer.

In a small scale test, we switched it over to StateServer, and all worked fine. However, when we deployed to production, we suddenly experienced a large number of errors. I'm not sure if these errors were caused by this change (they were actually complaining about database level problems), but removing the change allowed the application to function once again (this may have just been because it caused a recycle to occur).

So before I try switching it again, I'd like to perform a thorough audit of all objects being placed in the session (I'd previously taken a quick look at a couple of controllers, and they seemed fine). If I had full control over the code, this is the kind of place where I'd just comment out the class (to compile and find the various ways of reaching the session class), then comment out the accessors, hit compile, and visit each error. But I can't do that with built in .NET framework types.

I decided to try using Reflector. I've analyzed the "Used By" for each of the following:

System.Web.HttpSessionStateBase.set_Item(String, Object) : Void
System.Web.SessionState.HttpSessionState.set_Item(String, Object) : Void
System.Web.SessionState.HttpSessionState.set_Item(Int32, Object) : Void

[Code]....

View 2 Replies

Finding Available Wireless And Lan Connections?

Oct 14, 2010

i'm using Visual Basic 2008 - Office 2007 - addin for ppt.

ok i'm going to delete the other thread. i'm going to rephrase and try to explain as clearly as possible.

I need to find a code that (when i click the "Search" Button) will start searching for all available lan and wireless connections.

All the available selections will be shown in a List Box provided.

Once i find one i want to use, i can stop the search (by pressing another button "Stop" in this case) or just straight away click the one i want and press another button ("Select" in this case) and if it needs a password or WEP then it will display or it will just connect without asking.

View 10 Replies

Finding A Byte Pattern

Aug 1, 2010

I want my app to look for a byte pattern in a process and return the first memory address of that byte pattern. I know I should use ReadProcessMemory and a loop, but I don't really know how to create a function for that,

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved