I really want this thing to work, but it has been quite the task. And thanks for the new version 1.0.4, at least it started to work. Untill I added some products that is. Now it gives me an error page saying that an unhandled error occured.
Line 54 is the one that is in red.
Suggestions?
code follows-
Line 52: <TD vAlign="top" align="left">
Line 53: <P>
Line 54: <asp:Label id=lblPrice Runat="server" CssClass="Normal" Text='<%# "Price: " & GetPrice(CInt(DataBinder.Eval(Container.DataItem, "ProductID"))) %>'>
Line 55: </asp:Label><BR>
Line 56: <asp:Label id=lblSKU Runat="server" CssClass="Normal" Text='<%# "Item #: " & IIf(DataBinder.Eval(Container.DataItem, "SKU") Is Nothing, String.Empty, DataBinder.Eval(Container.DataItem, "SKU")) %>'>
Source File: E:\web\buddyhoffma\htdocs\PrivateAssemblies\ECommerce\Products.ascx Line: 54
Stack Trace:
[UnauthorizedAccessException: Access is denied.]
System.Runtime.Remoting.RemotingServices.AllocateUninitializedObject(RuntimeType objectType) +0
System.Runtime.Remoting.RemotingServices.AllocateUninitializedObject(Type objectType) +25
System.Runtime.Remoting.Activation.ActivationServices.CreateInstance(Type serverType) +66
System.Runtime.Remoting.Activation.ActivationServices.IsCurrentContextOK(Type serverType, Object[] props, Boolean bNewObj) +61
System.RuntimeType.CreateInstanceImpl(Boolean publicOnly) +0
System.Activator.CreateInstance(Type type, Boolean nonPublic) +66
System.Management.MTAHelper.CreateInMTA(Type type) +47
System.Management.ManagementPath.CreateWbemPath(String path) +24
System.Management.ManagementPath..ctor(String path) +24
System.Management.ManagementPath..cctor() +26
[TypeInitializationException: The type initializer for "System.Management.ManagementPath" threw an exception.]
System.Management.ManagementScope._Clone(ManagementScope scope, IdentifierChangedEventHandler handler) +105
System.Management.ManagementObjectSearcher..ctor(ManagementScope scope, ObjectQuery query, EnumerationOptions options) +23
System.Management.ManagementObjectSearcher..ctor(String queryString) +53
ECommerce.Portal.GetLocalIP() +49
ECommerce.Portal.ReportProblem(String subj, String msg) +46
ECommerce.Portal.ReportProblem(Exception ex) +123
ECommerce.User.LoadFromDB(Int32 PortalID) +1526
ECommerce.User..ctor(Int32 PortalID, Int32 UserID) +184
ECommerce.User.GetUser(Int32 PortalID, Int32 UserID) +157
ECommerce.Products.GetPrice(Int32 ProductID) +162
ASP.Products_ascx.__DataBind__control21(Object sender, EventArgs e) in E:\web\buddyhoffma\htdocs\PrivateAssemblies\ECommerce\Products.ascx:54
System.Web.UI.Control.OnDataBinding(EventArgs e) +66
System.Web.UI.Control.DataBind() +26
System.Web.UI.Control.DataBind() +86
System.Web.UI.Control.DataBind() +86
System.Web.UI.WebControls.DataGrid.CreateItem(Int32 itemIndex, Int32 dataSourceIndex, ListItemType itemType, Boolean dataBind, Object dataItem, DataGridColumn[] columns, TableRowCollection rows, PagedDataSource pagedDataSource) +169
System.Web.UI.WebControls.DataGrid.CreateControlHierarchy(Boolean useDataSource) +1408
System.Web.UI.WebControls.BaseDataList.OnDataBinding(EventArgs e) +49
System.Web.UI.WebControls.BaseDataList.DataBind() +23
ECommerce.Products.BindData() +103
ECommerce.Products.Page_Load(Object sender, EventArgs e) +7
System.Web.UI.Control.OnLoad(EventArgs e) +67
System.Web.UI.Control.LoadRecursive() +35
System.Web.UI.Control.LoadRecursive() +98
System.Web.UI.Control.LoadRecursive() +98
System.Web.UI.Control.LoadRecursive() +98
System.Web.UI.Control.LoadRecursive() +98
System.Web.UI.Page.ProcessRequestMain() +731