Cannot create ActiveX component on IIS 5.1

vb activex dll , asp.net , ms excel India
  • 11 years ago
    I have a .aspx webpage which reads data from an excel file and populates the same in the textboxes of the page.This website consumes vb activex dll.When run on local host,this works fine.When run on a remote machine after hosting on IIS 5.1,an error is thrown a*s shown: Cannot create ActiveX component. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.Exception: Cannot create ActiveX component. Source Error: Line 313: Dim xlBook As Excel.Workbook Line 314: 'xlBook = GetObject(Server.MapPath("~\temp\" & FileUpload2.FileName)) Line 315: xlBook = GetObject("C:\temp\TEMPLATE.xls") ' & FileUpload2.FileName) Line 316: 'xlBook = GetObject(AppDomain.CurrentDomain.BaseDirectory & FileUpload2.FileName) Line 317: Dim login1 As String*

Post a reply

No one has replied yet! Why not be the first?

Sign in or Join us (it's free).

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“The first 90% of the code accounts for the first 90% of the development time. The remaining 10% of the code accounts for the other 90% of the development time.” - Tom Cargill