I have a VB program that I'm trying to deploy. On my machine (the app works fine straight from VS), when I try to install it from the webpage, it asks me to setup .net. I only have a choice of repairing or uninstalling .net. I've tried both but both fail at the moment. The problem with the repair is, although it goes through the entire repair procedure, it then asks me to restart my PC, but when I hit 'restart', nothing happens. So I restart manually, but when I try again, I just have to go through the same procedure again.
I want to make a Presentation CD. I created a setup project, and autorun.inf. But, when the setup starts, I want the installer to check if the program is already installed on the host computer. If it is, it shoul be run. How to change installer to behave like this?
I received "method '~' of object '~' failed" error while my VB6 program trying to bind data from database to my Janus GridEX component. This happen to my client's pc running on Windows7 Home Premium with MDAC6.1. I do not have this problem in my Windows7 Professional with MDAC6.1. Search through the web and most of experts suggest it might be caused by MDAC.how to reinstall / repair MDAC6.1?
When I insert CD, if program is already installed it should be run, instead of dialog box asking to remove/repair program. How to change bootstrapper, or maybe launch conditions, to run program instead of installing it over and over again?
My idea and code is in reply #4 dated today in that topic.I found C# code to allow my application to compact and repair the database used by the application I have created. However, I need to translate that C# code into VB.Net. My attempt is described in the post.I don't know the VB.Net equivalent for the statement: [code]
Has anyone succeed to compact an Access 2007 database via VB.net code? The previous methods from JRO don't work anymore and there is no help on msdn on how this could be done for 2007. compacting this database?
I am using VB .NET 2005 and I would like to compact an Access 2003 database.I've read "How to compact a Microsoft Access database by using Visual Basic .NET" from the knowledge base but it will only save in Access 2000 (link below).Attempting this with a 2003 database throws an exception about not being able to save it as an older version (losing features and what not).Is there a way to do this with a 2003 database? url....
I know that there is a topic about compacting and repairing but i already have the compact part done. I was wondering if there was any way to repair the database from code from within the database?
All 3 statements below do NOT download the file; BUT also do not create any error msgs! owever, when pluggingFTP://localhost/QMSpathFTP/Prozess Akquisition.doc directly into the IE the .doc is shown correctly! I.e., to me, the virtual directory 'QMSpathFTP' is correct!
Why is hi failing to even hit the event? This should be htting the event, I see no reason why it would not hit this event when I press the enter key, instead I get a beep sound.
Private Sub Browser_1_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles Me.KeyDown If e.KeyCode = Keys.Enter Then WebBrowser.Navigate(tb_Address.Text) End If End Sub
I'm trying to write a program to control input. Unfortunately, thing always seems to fail.
The thing always comes up with "Application Defined or Object Defined Error". It doesn't help that I can't find the complete listing of error codes[code]...
The following code works fine in Access 2007 but VB 2005 Dataset refuses to see it. 2 questions Why? and how do I call a function in a Tableadapter query? "sizecats" is a function that extracts a substring depending on the length of ContainerRef.
SELECT sizecats([ContainerRef]) AS [Size], Count(tbl_Bookings_Containers.ContainerUsageID) AS CountOf FROM tbl_Bookings_Containers GROUP BY sizecats([ContainerRef]);
I use vb.net to backup sql '05 - '08 databases. It works great on smaller databases. but when it comes to large databases it fails at 30 or 40 percent with the error: The backup or restore was aborted.
Dim objBackup1 As Backup = New Backup() With {.Action = BackupActionType.Database, .Database = Common.DsSettings("DataBase", Nothing), .Initialize = True, .Checksum = True, .ContinueAfterError = True, .Incremental = False, .LogTruncation = BackupTruncateLogType.Truncate} objBackup1.SqlBackup(objServer)
I wrote an application on windows XP using visual studio 2008. Based on the .net framework 3.5. For some reason that I do not understand the application refuses to run on windows 7. You would think that if the .net framework 3.5 was installed on the windows 7 machine it would run.
I'm catching the following error in a publishing script (VB.Net) I'm running:
Request for the permission of type 'System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
It runs fine for most of the files but some have a '~' in the path and those ones are all failing.
Just to clarify: i am using the full path an example of the path i am having problems with is "c:/websites/xml/myfile~test.xml" the ones that work are "c:/websites/xml/myfiletest2.xml"
I currently have this line of code which has been working for the past 6 months:
If IsNumeric(txtProductID.Text) Then ...do stuff Else Dim msg As String = "Error!" End If
All of the sudden, no matter what kind of entry is put in txtProductID (including plain numbers), it fails! Is there reason for me to be going crazy over this?
I am currently using the AsyncFileUpload in my VB.NET web app. Locally it works perfectly, however on the server it fails to upload a small file (<9k). I can't even seem to debug this as in JavaScript handlers I have no idea as to how to get the error reason.
function uploadError(sender,args) { $get("<%=LabelErr.ClientID%>").innerHTML = "Unable to Upload file for the following reason: ", "<span style='color:red;'>" + args.get_errorMessage() + "</span>";
I have just finished my application using VB in Visual Studio 2005 and it works fine on my Win 7 development machine. But when I install and run it on an XP machine it fails with an unhandled exception:System.Runtime.InteropServices.COMException (0x80040154): Retrieving the COM class factory for component with CLSID {E8D851FA-9967-4ADF-9644-0183B9B1EA68} failed due to the following error: 80040154.
I've googled the error message and the solutions seem to be 1) compile as x86 (was doing that anyway), and 2) register the dll on the machine But firstly I'm not sure which dll I need to register, and secondly I don't want to be going around registering dlls - the whole point of the installation programs is that it should just install and configure everything automatically..
My problem is that when trying to print out a excel worksheet, after it has just beeen printed out onces. It gives me this error: "Object reference not set to an instance of an object", when trying to open the existing worksheet(the template)
I've really tryed to fix it, I think that the problem is that after the first print, i need to clear the worksheet and the excelapp.[code]...
I am trying to insert a picture in the RTB but my system hangs when I try to do it... No error message... it simply hangs... I also get a tough time calling the Task Manager to end it...
This is the code that I am using...
Is it going into an infinite loop?
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) _ Handles Button1.Click
Module Module1 Public Const HKEY_LOCAL_MACHINE = &H80000002 Public Const KEY_ALL_ACCESS = &HF003F Public Const REG_OPTION_NON_VOLATILE = 0 Key is preserved when system is rebooted
I am developing a vb script to query an Access 2000 database and return the data to a recordset and place it in to an Excel Spreadsheet. However I am not able to Complete the CopyRecordSet to the Excel spreadsheet I receive the runtime error "Microsoft VBScript runtime error: Class doesn't support Automation" at line "xlWs.Range("A1").CopyFromRecordset rs " [code]
I've been trying to convert some old VB6 code to VB.Net and ran into a programming problem. Basically the Set keyword from vb6 is no longer used in VB.Net 2008 and 2010. So with that said, this won't work in .Net, (assuming you referenced the ActiveMovie control type library in vb6, which is basically DirectShow):