Free Support Forum - aspose.com

VB.NET 2005 problem

I just converted a VB.NET 2003 project over to 2005.



It chokes on the commented line. The license file is included in the project and it worked just fine under 2003.



Public Sub New()

Dim license As Aspose.PowerPoint.License = New Aspose.PowerPoint.License

license.SetLicense(“Aspose.Custom.lic”) ‘’’’ <======= Fails here

End Sub



System.TypeLoadException was unhandled

Message=“The signature is incorrect.”

Source=“mscorlib”

TypeName=“XenoCode.User.Attributes.AssemblyAttributes.SuppressDisassembly”

StackTrace:

at
System.ModuleHandle.ResolveType(Int32 typeToken, RuntimeTypeHandle*
typeInstArgs, Int32 typeInstCount, RuntimeTypeHandle* methodInstArgs,
Int32 methodInstCount)

at
System.ModuleHandle.ResolveTypeHandle(Int32 typeToken,
RuntimeTypeHandle[] typeInstantiationContext, RuntimeTypeHandle[]
methodInstantiationContext)

at
System.Reflection.Module.ResolveType(Int32 metadataToken, Type[]
genericTypeArguments, Type[] genericMethodArguments)

at
System.Reflection.CustomAttribute.FilterCustomAttributeRecord(CustomAttributeRecord
caRecord, MetadataImport scope, Assembly& lastAptcaOkAssembly,
Module decoratedModule, MetadataToken decoratedToken, RuntimeType
attributeFilterType, Boolean mustBeInheritable, Object[] attributes,
IList derivedAttributes, RuntimeType& attributeType,
RuntimeMethodHandle& ctor, Boolean& ctorHasParameters,
Boolean& isVarArg)

at
System.Reflection.CustomAttribute.GetCustomAttributes(Module
decoratedModule, Int32 decoratedMetadataToken, Int32 pcaCount,
RuntimeType attributeFilterType, Boolean mustBeInheritable, IList
derivedAttributes)

at
System.Reflection.CustomAttribute.GetCustomAttributes(Assembly
assembly, RuntimeType caType)

at System.Reflection.Assembly.GetCustomAttributes(Type attributeType, Boolean inherit)

at
System.Attribute.GetCustomAttributes(Assembly element, Type
attributeType, Boolean inherit)

at
System.Attribute.GetCustomAttribute(Assembly element, Type
attributeType, Boolean inherit)

at System.Attribute.GetCustomAttribute(Assembly element, Type attributeType)

at Aspose.PowerPoint.License.xf74d306af4e0bbb9(String[] xe720c4db0a24a8ae)

at Aspose.PowerPoint.License.SetLicense(Stream stream)

at Aspose.PowerPoint.License.SetLicense(String licenseName)

at
Mead2005.clsPowerpointHandler…ctor() in D:\Compass
Creative\Mead2005\Mead2005\clsPowerpointHandler.vb:line 13

at
Mead2005.usrProductCatalogPage2.UpdatePage(Int64 id) in D:\Compass
Creative\Mead2005\Mead2005\usrProductCatalogPage2.vb:line 171

at
Mead2005.frmMain.ProductCatalogPage1ItemClicked(Int64 id) in D:\Compass
Creative\Mead2005\Mead2005\frmMain.vb:line 190

at
Mead2005.usrProductCatalogPage1.ProdClicked(Int64 id) in D:\Compass
Creative\Mead2005\Mead2005\usrProductCatalogPage1.vb:line 163

at
Mead2005.usrSingleSelectGrid.ClickHandler(usrProduct prod) in
D:\Compass Creative\Mead2005\Mead2005\usrSingleSelectGrid.vb:line 80

at
Mead2005.usrProduct.usrProduct_Click(Object sender, EventArgs e) in
D:\Compass Creative\Mead2005\Mead2005\usrProduct.vb:line 173

at
Mead2005.usrProduct.Constituent_Click(Object sender, EventArgs e) in
D:\Compass Creative\Mead2005\Mead2005\usrProduct.vb:line 185

at System.Windows.Forms.Control.OnClick(EventArgs e)

at
System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons
button, Int32 clicks)

at System.Windows.Forms.Control.WndProc(Message& m)

at System.Windows.Forms.Label.WndProc(Message& m)

at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)

at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)

at
System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32
msg, IntPtr wparam, IntPtr lparam)

at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)

at
System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32
dwComponentID, Int32 reason, Int32 pvLoopData)

at
System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32
reason, ApplicationContext context)

at
System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32
reason, ApplicationContext context)

at System.Windows.Forms.Form.ShowDialog(IWin32Window owner)

at System.Windows.Forms.Form.ShowDialog()

at Mead2005.Common.StartProgram()
in D:\Compass Creative\Mead2005\Mead2005\Common.vb:line 105

at Mead2005.Common.Main() in D:\Compass Creative\Mead2005\Mead2005\Common.vb:line 69

at System.AppDomain.nExecuteAssembly(Assembly assembly, String[] args)

at
System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence
assemblySecurity, String[] args)

at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()

at System.Threading.ThreadHelper.ThreadStart_Context(Object state)

at
System.Threading.ExecutionContext.Run(ExecutionContext
executionContext, ContextCallback callback, Object state)

at System.Threading.ThreadHelper.ThreadStart()


  1. Do you use last Aspose.PowerPoint hot fix.
  2. Are you sure you didn’t change accidentally Aspose.Custom.lic file?
    Is this license for Aspose.PowerPoint only or also for some other
    components?
  1. I’ll try the hotfix
  2. I didn’t change it and it’s PPT only.

The hotfix did it. I hadn’t updated since June according to the dll dates.



Simple and easy. I like that.



John