docs icon indicating copy to clipboard operation
docs copied to clipboard

System.Exception HResult=0x80131500 No se puede crear el componente ActiveX

Open GHJJDV opened this issue 1 year ago • 0 comments

Type of issue

Code doesn't work

Description

I've been creating, reading and updating excel worksheets using vb.net (ide VS 2022); regulary I have been used Imports Excel = Microsoft.Office.Interop.Excel Imports System.Runtime.InteropServices . . . Private Sub MyRoutineXLSX() Dim MiLibro As Excel.Application Dim objBooks As Excel.Workbook . . . MiLibro = CreateObject("Excel.Application")

in time a execution of CreateObject("Excel.Application"), occurs System.Exception HResult=0x80131500 Cannoy create the component ActiveX

more information is:

  • TargetSite {System.Object CreateObject(System.String, System.String)} System.Reflection.MethodBase {System.Reflection.RuntimeMethodInfo}

Cannot call méthod System.Reflection.MemberInfo.get_CustomAttributes in this context.

Rarely sometimes it works ok, but, for some circunstance that i do not know, the problem continue.

I'll apreciate a lot your help

Page URL

https://learn.microsoft.com/es-es/dotnet/visual-basic/language-reference/error-messages/cannot-create-activex-component

Content source URL

https://github.com/dotnet/docs/blob/main/docs/visual-basic/language-reference/error-messages/cannot-create-activex-component.md

Document Version Independent Id

91ac470b-689b-6a69-a3c1-9c93d48c7154

Article author

@KathleenDollard

Metadata

  • ID: 9bea5de8-6eeb-d1ac-9260-0c51ca858ca5
  • Service: dotnet-visualbasic
  • Sub-service: errors-warnings

GHJJDV avatar Oct 05 '24 22:10 GHJJDV