Solved

Urgent ASP.Net help please help

Posted on 2006-10-20
3
426 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 6

Expert Comment

by:SCDMETA
ID: 17775453
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
ID: 17775558
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
ID: 17776337
Use code-behind files or compile your global class and createobject
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article will show, step by step, how to integrate R code into a R Sweave document
Whether you’re a college noob or a soon-to-be pro, these tips are sure to help you in your journey to becoming a programming ninja and stand out from the crowd.
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

756 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