Click here to Skip to main content
15,903,856 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Detect the file is opened or not? Pin
japel21-Feb-06 18:32
japel21-Feb-06 18:32 
QuestionWhat object is streamwriter located under? Pin
kenn_rosie21-Feb-06 13:00
kenn_rosie21-Feb-06 13:00 
AnswerRe: What object is streamwriter located under? Pin
progload21-Feb-06 13:37
progload21-Feb-06 13:37 
GeneralRe: What object is streamwriter located under? Pin
kenn_rosie21-Feb-06 13:49
kenn_rosie21-Feb-06 13:49 
GeneralRe: What object is streamwriter located under? Pin
progload21-Feb-06 14:36
progload21-Feb-06 14:36 
GeneralRe: What object is streamwriter located under? Pin
kenn_rosie21-Feb-06 14:51
kenn_rosie21-Feb-06 14:51 
QuestionServer & Client Pin
ADY00721-Feb-06 12:25
ADY00721-Feb-06 12:25 
QuestionCreateObject("WindowsInstaller.Installer") Error Pin
Sysdoc262821-Feb-06 12:18
Sysdoc262821-Feb-06 12:18 
I have written a very simple vb.net app to look at some properties in an msi file. Whenever I execute the msiInstall = CreateObject("WindowsInstaller.Installer") statement I get the error: Cannot create ActiveX component. I have added a reference to the Microsoft Windows Installer module and msi.dll is definately registered on my system. I have declared the msi object using Dim msiInstall As WindowsInstaller.Installer.

When I run the same bit of code in VBScript I do not get this error so it must be something in my VS 2003 configuration.

This is the complete error with details when I compile and run the exe:

************** Exception Text **************
System.Exception: Cannot create ActiveX component.
at Microsoft.VisualBasic.Interaction.CreateObject(String ProgId, String ServerName)
at UpdateVers.Form1.btnUpdateMin_Click(Object sender, EventArgs e) in C:\VB\UpdateVers\UpdateVers\UpdateVers\Form1.vb:line 95
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.2032
CodeBase: file:///c:/windows/microsoft.net/framework/v1.1.4322/mscorlib.dll
----------------------------------------
UpdateVers
Assembly Version: 1.0.2243.29760
Win32 Version: 1.0.2243.29760
CodeBase: file:///C:/VB/UpdateVers/UpdateVers/UpdateVers/obj/Debug/UpdateVers.exe
----------------------------------------
System.Windows.Forms
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.2032
CodeBase: file:///c:/windows/assembly/gac/system.windows.forms/1.0.5000.0__b77a5c561934e089/system.windows.forms.dll
----------------------------------------
System
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.2032
CodeBase: file:///c:/windows/assembly/gac/system/1.0.5000.0__b77a5c561934e089/system.dll
----------------------------------------
System.Drawing
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.2032
CodeBase: file:///c:/windows/assembly/gac/system.drawing/1.0.5000.0__b03f5f7f11d50a3a/system.drawing.dll
----------------------------------------
System.Xml
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.2032
CodeBase: file:///c:/windows/assembly/gac/system.xml/1.0.5000.0__b77a5c561934e089/system.xml.dll
----------------------------------------
Microsoft.VisualBasic
Assembly Version: 7.0.5000.0
Win32 Version: 7.10.6001.4
CodeBase: file:///c:/windows/assembly/gac/microsoft.visualbasic/7.0.5000.0__b03f5f7f11d50a3a/microsoft.visualbasic.dll
----------------------------------------
Interop.WindowsInstaller
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/VB/UpdateVers/UpdateVers/UpdateVers/obj/Debug/Interop.WindowsInstaller.DLL

Questioncreating multiple dataset based on query Pin
uglyeyes21-Feb-06 12:00
uglyeyes21-Feb-06 12:00 
AnswerRe: creating multiple dataset based on query Pin
ne0h21-Feb-06 21:16
ne0h21-Feb-06 21:16 
QuestionVlookup function like excel Pin
Sergi2521-Feb-06 11:41
Sergi2521-Feb-06 11:41 
AnswerRe: Vlookup function like excel Pin
Ray Cassick21-Feb-06 11:48
Ray Cassick21-Feb-06 11:48 
QuestionInheritence, disallow ShowDialog() Pin
K. Shaffer21-Feb-06 8:59
K. Shaffer21-Feb-06 8:59 
AnswerRe: Inheritence, disallow ShowDialog() Pin
K. Shaffer21-Feb-06 9:09
K. Shaffer21-Feb-06 9:09 
QuestionVS 2003 to VS 2005 Crystal Reports Hell problems Pin
nordico2521-Feb-06 7:41
nordico2521-Feb-06 7:41 
QuestionCrystal reports via VB.Net Pin
directred21-Feb-06 7:29
directred21-Feb-06 7:29 
QuestionSending HTML emails with MAPI (VB6) Pin
ThePmanLives21-Feb-06 5:47
ThePmanLives21-Feb-06 5:47 
Questionsearching through a site Pin
teuneboon21-Feb-06 4:38
teuneboon21-Feb-06 4:38 
AnswerRe: searching through a site Pin
Divya Rathi22-Feb-06 3:55
Divya Rathi22-Feb-06 3:55 
QuestionUsing a digital camera in my VB project Pin
marclenoir200521-Feb-06 4:16
marclenoir200521-Feb-06 4:16 
QuestionIs there a way to do a spell check on a text box Pin
New_Coder21-Feb-06 3:59
New_Coder21-Feb-06 3:59 
AnswerRe: Is there a way to do a spell check on a text box Pin
uglyeyes21-Feb-06 12:05
uglyeyes21-Feb-06 12:05 
GeneralRe: Is there a way to do a spell check on a text box Pin
New_Coder21-Feb-06 12:12
New_Coder21-Feb-06 12:12 
Questionhow can we use ms agent control in a vb windows application? Pin
kamalika_kk21-Feb-06 3:54
kamalika_kk21-Feb-06 3:54 
AnswerRe: how can we use ms agent control in a vb windows application? Pin
Steve Pullan21-Feb-06 13:46
Steve Pullan21-Feb-06 13:46 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.