all groups > visual studio .net general > april 2005 >
You're in the

visual studio .net general

group:

A setup project to a custom folder messed up some references


A setup project to a custom folder messed up some references frankcvc
4/26/2005 8:06:01 PM
visual studio .net general:
I have a project references AxInterop.MSComctlLib and AxInterop.MSComDlg.
The project worked fine to begin with. After I created a stup and Deployment
project in the same solution and changed the Application Folder's
DefaultLocation to a custom location, see C:\myApp, a yellow ! mark appeared
in front of the references in my originl project . Deleted the refernces,
re-added the same references to the project, the yellow marks were gone and
built the project with no trouble either. But when I run it, I saw this
error message:

An unhandled exception of type System.Runtime.InteropServices.COMException'
occurred in system.windows.forms.dll

Additional information: Class not registered

Any idea why this happened and how can I fix and avoid the problem? Your
help is great;y appreciated.

--
Re: A setup project to a custom folder messed up some references (xliu75 NO[at]SPAM yahoo.com)
5/6/2005 10:45:35 AM
I got same problem. Here is the way I make it work.

regsvr32 C:\WINDOWS\system32\MSDATGRD.OCX
regsvr32 C:\WINDOWS\system32\MSADODC.OCX

maybe you will get another error, in case you

DataGrid.Columns.Add(2) :

An unhandled exception of type System.Runtime.InteropServices.COMException'
occurred in system.windows.forms.dll

Additional information: Invalid Column index
then you just need change it to DataGrid.Columns.Add(1)

And then maybe you got another error
datagrid could not bindings

then go to reference in project solution find adodb properties, copy to local set to be true.

All right, good luck then.



**********************************************************************
Sent via Fuzzy Software @ http://www.fuzzysoftware.com/
AddThis Social Bookmark Button