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 / Enterprise Tools / November 2005

Tip: Looking for answers? Try searching our database.

Problem referencing Visio Modeling Engine from VS2005

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Clint - 14 Nov 2005 04:18 GMT
I'm trying to code against the Visio Modeling Engine (installed with VS 2005
Team Suite), and I'm getting the error below.  Any suggestions?  It says to
try importing without class members, but no clues as to how to do that.  A
google search didn't show up much beyond the fact that the
"ResolveComReference" task seems to be new in 2005.

Clint

Warning 3 The "ResolveComReference" task failed unexpectedly.
System.SystemException: The type library importer encountered an error
during type verification. Try importing without class members. --->
System.TypeLoadException: Method 'IVMEERModel_UpdateVerbalizer' on type
'MODELENGLib.VMEERModelClass' from assembly 'Interop.MODELENGLib,
Version=10.0.0.0, Culture=neutral, PublicKeyToken=null' is overriding a
method that has been overridden.
  at System.Reflection.Module.InternalLoadInMemoryTypeByName(String
className)
  at
System.Runtime.InteropServices.TypeLibConverter.TypeResolveHandler.ResolveEvent(Object
sender, ResolveEventArgs args)
  at System.AppDomain.OnTypeResolveEvent(String typeName)
  --- End of inner exception stack trace ---

Server stack trace:
  at
System.Runtime.InteropServices.TypeLibConverter.nConvertTypeLibToMetadata(Object
typeLib, AssemblyBuilder asmBldr, ModuleBuilder modBldr, String nameSpace,
TypeLibImporterFlags flags, ITypeLibImporterNotifySink notifySink,
ArrayList& eventItfInfoList)
  at
System.Runtime.InteropServices.TypeLibConverter.ConvertTypeLibToAssembly(Object
typeLib, String asmFileName, TypeLibImporterFlags flags,
ITypeLibImporterNotifySink notifySink, Byte[] publicKey, StrongNameKeyPair
keyPair, String asmNamespace, Version asmVersion)
  at
Microsoft.Build.Tasks.TlbReference.GenerateWrapper(ComReferenceWrapperInfo&
wrapperInfo)
  at
Microsoft.Build.Tasks.ResolveComReference.ResolveComReferenceTlb(ComReferenceInfo
referenceInfo, String outputDirectory, String refName, Boolean topLevelRef,
ComReferenceWrapperInfo& wrapperInfo)
  at
Microsoft.Build.Tasks.ResolveComReference.ResolveComClassicReference(ComReferenceInfo
referenceInfo, String outputDirectory, String wrapperType, String refName,
Boolean topLevelRef, ComReferenceWrapperInfo& wrapperInfo)
  at
Microsoft.Build.Tasks.ResolveComReference.ResolveReference(ComReferenceInfo
referenceInfo, String outputDirectory, ITaskItem& referencePathItem)
  at
Microsoft.Build.Tasks.ResolveComReference.ResolveReferenceAndAddToList(ComReferenceInfo
projectRefInfo, ArrayList resolvedReferenceList, ArrayList moduleList)
  at Microsoft.Build.Tasks.ResolveComReference.Execute()
  at
System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr
md, Object[] args, Object server, Int32 methodPtr, Boolean
fExecuteInContext, Object[]& outArgs)
  at
System.Runtime.Remoting.Messaging.StackBuilderSink.PrivateProcessMessage(RuntimeMethodHandle
md, Object[] args, Object server, Int32 methodPtr, Boolean
fExecuteInContext, Object[]& outArgs)
  at
System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage
msg, Int32 methodPtr, Boolean fExecuteInContext)

Exception rethrown at [0]:
  at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage
reqMsg, IMessage retMsg)
  at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData&
msgData, Int32 type)
  at Microsoft.Build.Framework.ITask.Execute()
  at Microsoft.Build.BuildEngine.TaskEngine.ExecuteTask(ExecutionMode
howToExecuteTask, Hashtable projectItemsAvailableToTask, BuildPropertyGroup
projectPropertiesAvailableToTask, Boolean& taskClassWasFound)
WindowsApplication1

Signature

Clint

Clint - 14 Nov 2005 20:15 GMT
As an FYI, I think I found the answer (sort of).  I used the "tlbimp"
application (in the VS\SDK\V2.0\bin folder" to create a new dll out of the
existing one.  Seems to have worked ok, although I might end up abandoning
this approach anyway...

> I'm trying to code against the Visio Modeling Engine (installed with VS
> 2005 Team Suite), and I'm getting the error below.  Any suggestions?  It
[quoted text clipped - 71 lines]
> BuildPropertyGroup projectPropertiesAvailableToTask, Boolean&
> taskClassWasFound) WindowsApplication1

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.