Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Visual Studio.NET / VS Tools for Office / April 2006

Tip: Looking for answers? Try searching our database.

Can't use COM components

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Andrey Dzizenko - 28 Mar 2006 06:57 GMT
Hi all!

Could anyone please explain me, why if I try to load an external  
component, the VSTO program fails.

For example, I wrote the line:
ADODB.Connection conn;
When debugging everything is ok, but after publishing the execution fails  
at this line without any error, with no messages.
It's VS.NET 2005 and VSTO 2003.

Thanks in advance for any ideas,
    A. Dzizenko.
Alvin Bruney - ASP.NET MVP - 28 Mar 2006 21:58 GMT
have a look at your event log files to see if there are any COM exceptions
being thrown

Signature

Warm Regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
The Microsoft Office Web Components Black Book with .NET
Now Available @ www.lulu.com/owc
Professional VSTO 2005 - Wrox/Wiley 2006
Blog: http://msmvps.com/blogs/Alvin/
-------------------------------------------------------

> Hi all!
>
[quoted text clipped - 9 lines]
> Thanks in advance for any ideas,
> A. Dzizenko.
Andrey Dzizenko - 29 Mar 2006 11:18 GMT
Unfortunatelly there was no error. Everything looks like the program exits  
correctly.

> have a look at your event log files to see if there are any COM  
> exceptions
> being thrown
Alvin Bruney - ASP.NET MVP - 29 Mar 2006 21:59 GMT
firstly, vs.net 2005 does not run vsto 2003 - the two are not compatible.

Signature

Warm Regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
The Microsoft Office Web Components Black Book with .NET
Now Available @ www.lulu.com/owc
Professional VSTO 2005 - Wrox/Wiley 2006
Blog: http://msmvps.com/blogs/Alvin/
-------------------------------------------------------

> Unfortunatelly there was no error. Everything looks like the program exits
> correctly.
>
> > have a look at your event log files to see if there are any COM
> > exceptions
> > being thrown
Andrey Dzizenko - 30 Mar 2006 06:49 GMT
This doesn't ring true. I installed VS.NET 2005 and Tools for Office 2003  
(maybe they're called 2005, but they're for Office 2003), and VSTO was a  
part of VS (Team Edition). After that I can't beleive that VS.NET 2005  
doesn't run VSTO 2003.

> firstly, vs.net 2005 does not run vsto 2003 - the two are not compatible.
Helmut Obertanner - 09 Apr 2006 14:20 GMT
Hello Andrey,

it maybe concerns to a security setting.
Maybe you have to give your assembly more access.
Did you surrounded the statement that throws the exception with a try/catch
block ?
what is the ErrorMessage ?

Signature

Helmut Obertanner
Senior Developer
MVP - Visual Developer VSTO

http://www.x4u.de

> This doesn't ring true. I installed VS.NET 2005 and Tools for Office 2003  
> (maybe they're called 2005, but they're for Office 2003), and VSTO was a  
> part of VS (Team Edition). After that I can't beleive that VS.NET 2005  
> doesn't run VSTO 2003.
>
> > firstly, vs.net 2005 does not run vsto 2003 - the two are not compatible.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.