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..
Frustration has officially set in. This is my first post here, and to be very honest, I'll admit that I'm a newbie VB programmer as well. I guess that's why I'm posting here, in hopes you super-porgrammer types might be able to help.
I've written a smallish VB program with 2010 express... the code uses some text files to gather various lists of numbers ( as part of a manufacturing Bill of Material ) that assiciate to PDF files of the same name. The intent was simply to view and print the gathered existing PDF files.
I have the program mostly working the way I want ( at home ), but when I bring it to work, it fails to open.
My home PC is a 32Bit Windows Vista Machine with Adobe 10.1 viewer installed.My Work PC is a 64 Bit Windows 7 Machine also with Adobe 10.1. I've sent the .sln and code to a buddy who is also running a 64bit Win 7 machine very similar to what I have... he is able to run the program. I've sent the same thing to my work pc and tried to run it. I get some crazy HRESULT error I can't make heads or tails out of... remember I'm a newbie.
I will happily post code if you guys are interested, but I believe that it isn't code related. What kind of things MIGHT i try to look for on my work pc that would cause this simple program Not to function? I've brought other programs I've written to work without problem. But this one has me stumped.
Other things I've tried: 1) uninstall and re-install Adobe... ( no change ) 2) written a super small adobe viewer program at work... ( works ) 3) tried to comple as "any CPU", "x86", and "x64"... ( does not work ) 4) bring .sln & code files to compile and run at work... ( does not work, HRESULT err )
I'm trying to deploy a VB.NET app which is an extension to Excel using VSTO. It works fine in the development environment, but when someone else (without a dev environment installed, just the .NET framework) installs it, they get:
The common language runtime could not be loaded by <application>. Contact your administrator for further assistance.Google pops up the microsoft help page for this:
[URL]
But I've verified that the .NET versions are the same on both machines. For VSTO apps in 2k5 there was a specific vsto runtime library users needed to install -- is there something similar for VS2008 that I haven't found yet?
If I develop a VB2010 Windows Forms application on a 64 bit machine, can I deploy it to a 32 bit machine?The 32 bit machine has .NET Framework 4 Extended on it.Or can I tell the 64 bit compiler to go 32 bit? I have VS Pro on the 64 bit machine.I don't want to leave any development package on the 32 bit machine, which will be transferred to a client.jeyoung
I wonder if/how to use a 32 bit DLL on a 64 bit machine. The situation is like follows:Autocad Inventor(64 bit program) can launch plugin DLL's. The plugin DLL in this case is programmed with VB.NET 2008 Express edition. As far as I know, I can only choose "Any CPU" when building the DLL with the Express edition. This DLL makes uses of a COM object called Isah IERPlink, a piece of software that is used with a 32 bit package. So in my bin directory this DLL will be added "interop.IERPlink.dll". I guess this DLL is specified for 32 bit CPU's, but I'm not sure.
I have written an async UDP client to talk to a server at my company. When I run on my developer machine all is well. When I deploy to another machine I get a socket exception on EndReceive the first time I send data over the socket. My dev box is Win7 and I have deployed to both an XP SP3 machine and a Server 2003 R2 machine. Below is the receive code:
I am getting the following error on a users machine who is running XP method not found 'system.string system.windows.forms.openfiledialog.get_safefilename Do I need netframework 3.5 ?
I have created an application using VB 2008 Express on an XP machine. I created a deployment package and installed it on other XP machines with no problems. I tried it on a Vista machine and all seemed well until performing a serial port function. It simply halts/locks up. I have to close it in task mangler. I thought I would circumvent the problem by building and publishing it on the Vista machine. While running the program from VB express the program functions perfectly on that Vista machine, but when I publish and install it on same it still crashes at the serial portion of the program.
I'm having to write a reporting application that gets information from some Interbase servers and it also has to work on Vista as well as XP, I'm using to connect Borlands Data Provider.[code]My Issue is that debugging on my xp Machine the dataset gets filled, debugging on my vista box it fails ("Interbase provider initialization failed"), my initial thought was that this could be UAC related but I've compiled the application and 'ran as admin' and still same issue. (by the way it failes on the line Dim da as BdpDataAdapter...)
I have an application that takes a series of reports and sends them as attachments in an email to a specified group of email accounts.
When I run the Java version of this using apache commons and the same setting, the email is sent. However, when I run the VB.NET version of the code, it fails on my local machine and on the client machine.
I have a VB.NET web application running on a server that uses similar code. I tried that code locally and it fails. Yet, the web application is working perfectly.
Why is it that the Java application can send the email, but the .NET application cannot?[code]....
I develop an application using vb.net.application will run on client server architecture.when we try to execute the program in client side then it will give me an error which is related to sqlclientexception.how can i handle this situation.i used vb.net 3.5 as front end and sql server 2000 as back end.i have done total coding with system.data.sqlclient namespace.
I am deploying sql express as a prerequisite. I have created a custom prerquisite using bootstrap manifest generator. The problem I have is replacing the template.ini file which exists in the sqlexpr32.exe cab file. Winrar and winzip allow me to open the sqlexpr32.exe but will not allow me to edit, add or replace the template.ini.I also cannot find the path where the sqlexpr32.exe extracts to as I want to use that path for the settings file eg "template.ini".[code]
i'm developing an application vb.net with mssql server as database. on my pc it works. but i don't know how to make it works on my customer's pc.anybody have some tutorial regarding the creation of a setup and deployment project with ms sql server.my first doubt is: how can i determinate the right connection string?
I've inherited a lot of custom made software for an office, and, while managing it, I've found it performs differently from machine to machine.I mean, some controls get painted in weird ways in some machines but well in another, or just work differently, like in some machines clicking something selects it, and in the next machine clicking the same thing makes it editable.I suspect, o course, of the myriad of DLL the software loads
I have a windows app that uses the shape control which is part of the MS power pack and requires Microsoft.VisualBasic.PowerPacks.Vs.dll. I am using Publish to build my app and I have tried to change the dll to Include in the properties page but nothing seems to work.
I need a way to have the file included and I am unable to find a external copy and I understand that I cannot just copy the dll from my PC into the installation folder
I want to block a perticular machine from accessing my machine..Both the machines are in LAN..I dont want a perticular machine to access my computer How can i achieve this...I want to do this using VB.NetAny idea....
Have built a project and associated it with a Setup&Deployment Project. The S&D project needs to contain 2 main folders (under User's Desktop) with various formats of files (xmls, txts, dlls) inside them and several subfolders. How can i copy/import these 2 folders and there sub-files/folders into my s&d project?
When adding them in the usual way, they are copied and defined a source path onto the current pc. You can understand what errors this might create when an another targeted pc does not contain those files to the exact location. Is there any way to copy them locally or somehow import them?
I have compiled my app to x86 so that it will run in a 64 bit processor, the issue I am facing right now is that when I install the app in under application folder I am not able to edit the config file which is in the same folder of the exe. how to give admin previlages to the application ?
PS: the app runs fine when installed in a different folder other than applicaitonfolder
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.
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>";