Solved

Urgent ASP.Net help please help

Posted on 2006-10-20
3
422 Views
Last Modified: 2008-01-09
Hello,

Please help me why I am getting the error message, its really urgent.

bellow is the error message, which I am getting, I have defined a public class in a .vb file, which I am using trying to use.




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 103:                                                  <td width="25%" align="right" height="40" valign="middle"><%
Line 104:                                                  dim HTTPSConfig as object
Line 105:                                                  HTTPSConfig = createobject("ThanXConfig")
Line 106:                                                  HTTPSConfig.IsHTTPS=false     '''''''Redirect to HTTPS
Line 107:                                                  if Request.ServerVariables("HTTPS")="off"  then
 

Source File: c:\inetpub\wwwroot\cart\viewcart.aspx    Line: 105

Stack Trace:


[Exception: Cannot create ActiveX component.]
   Microsoft.VisualBasic.Interaction.CreateObject(String ProgId, String ServerName) +231
   ASP.viewcart_aspx.__Render__control3(HtmlTextWriter __output, Control parameterContainer) in c:\inetpub\wwwroot\cart\viewcart.aspx:105
   System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +27
   System.Web.UI.HtmlControls.HtmlForm.RenderChildren(HtmlTextWriter writer) +44
   System.Web.UI.HtmlControls.HtmlForm.Render(HtmlTextWriter output) +262
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +243
   System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +72
   System.Web.UI.Control.Render(HtmlTextWriter writer) +7
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +243
   System.Web
0
Comment
Question by:davelalande
3 Comments
 
LVL 6

Expert Comment

by:SCDMETA
Comment Utility
Has your activeX object been registered?  It is probably a DLL or OCX file..(maybe ThanXConfig.dll or ThanXConfig.ocx?)

Find it, and run
RegSvr32 {path to file}\filename.ext

You should get a message saying it was successfully registred.

Also, your createobject command looks a little funny.  Typically, the parameter is in the form Component.Class.  Example:  Word.Application, or Microsoft.XMLDOM
0
 

Author Comment

by:davelalande
Comment Utility
I will explain you what I have done, I have a asp.net project in this project undet utils I have created som global class .vb file so that I can use the functions under the class into my aspx files anywhere. could you help me how can I use the class in the ASPX file using <% %> tag.
0
 
LVL 1

Accepted Solution

by:
JElster earned 250 total points
Comment Utility
Use code-behind files or compile your global class and createobject
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

This article will show, step by step, how to integrate R code into a R Sweave document
This is about my first experience with programming Arduino.
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now