davelalande
asked on
Urgent ASP.Net help please help
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("H TTPS")="of f" then
Source File: c:\inetpub\wwwroot\cart\vi ewcart.asp x Line: 105
Stack Trace:
[Exception: Cannot create ActiveX component.]
Microsoft.VisualBasic.Inte raction.Cr eateObject (String ProgId, String ServerName) +231
ASP.viewcart_aspx.__Render __control3 (HtmlTextW riter __output, Control parameterContainer) in c:\inetpub\wwwroot\cart\vi ewcart.asp x:105
System.Web.UI.Control.Rend erChildren (HtmlTextW riter writer) +27
System.Web.UI.HtmlControls .HtmlForm. RenderChil dren(HtmlT extWriter writer) +44
System.Web.UI.HtmlControls .HtmlForm. Render(Htm lTextWrite r output) +262
System.Web.UI.Control.Rend erControl( HtmlTextWr iter writer) +243
System.Web.UI.Control.Rend erChildren (HtmlTextW riter writer) +72
System.Web.UI.Control.Rend er(HtmlTex tWriter writer) +7
System.Web.UI.Control.Rend erControl( HtmlTextWr iter writer) +243
System.Web
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("H
Source File: c:\inetpub\wwwroot\cart\vi
Stack Trace:
[Exception: Cannot create ActiveX component.]
Microsoft.VisualBasic.Inte
ASP.viewcart_aspx.__Render
System.Web.UI.Control.Rend
System.Web.UI.HtmlControls
System.Web.UI.HtmlControls
System.Web.UI.Control.Rend
System.Web.UI.Control.Rend
System.Web.UI.Control.Rend
System.Web.UI.Control.Rend
System.Web
ASKER
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.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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