an ASP.NET Open Source CMS & eCommerce platform
Search:
Skip Navigation LinksHome > DotShoppingCart Forums > Support > Using DotShoppingCart > I just screwed my my installation
Last Post 9/28/2008 7:17:37 PM By lukezy. 11 replies.
Page 1 of 2 (12 posts) << First < Prev 1 2 Next > Last >> 
9/27/2008 10:15:34 AM
AurelianP
Posts: 17
Joined: 9/27/2008
I just screwed my my installation
I added a new blog...
The top menu was like this : Home | About Us | Blog
I wanted to reorder the items in the menu... so I deleted the about us page from the menu.
 
After I did this I cannot access any page, even though in the amdin area I still see all three pages.
 
What I did wrong?
 
THX
 
PS. The site I attempt to play with is this: http://www.teapot.ro
9/27/2008 10:23:38 AM
lukezy
Posts: 2109
Joined: 6/12/2007
Location:WA, US
Re: I just screwed my my installation
Deleting a link from the menu won't delete the content page. Please post back your exception stack.
DotShoppingCart Staff
9/27/2008 12:02:37 PM
AurelianP
Posts: 17
Joined: 9/27/2008
Re: I just screwed my my installation
It's just a 404 page ... no stack...
 
It seems there is no "View" handler anymore.
 
Where can I get this error stack?
 
Aurelian
9/27/2008 2:04:06 PM
lukezy
Posts: 2109
Joined: 6/12/2007
Location:WA, US
Re: I just screwed my my installation
Check here.
DotShoppingCart Staff
9/28/2008 7:49:22 AM
AurelianP
Posts: 17
Joined: 9/27/2008
Re: I just screwed my my installation
Nothing there  ... It's just a 404 page... returned from webserver ... you can see for yourself here http://teapot.ro ...
 
In fact is a redirect to http://www.teapot.ro/GenericErrorPage.htm?aspxerrorpath=/Dynamic.aspx
 
Hmmm
 
It shoudn't be http://www.teapot.ro/GenericErrorPage.ASPX?aspxerrorpath=/Dynamic.aspx ?
 
If the answer is yes... I set RemoteOnly to Off (in web.config) and i get :
 
<span> 

Server Error in '/' Application. <hr width="100%" color="#c0c0c0" size="1" />

Value cannot be null.
Parameter name: input

</span>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.ArgumentNullException: Value cannot be null.
Parameter name: input

Source Error:

<table width="100%" bgcolor="#ffffcc"> <tbody> <tr> <td>
Line 147:    protected bool IsCurrentPage(string link) {
Line 148:        string rawUrl = SiteNavigation.GetRelativePathToApplicatonRoot(Page.Request.RawUrl);
Line 149:        string linkUrl = SiteNavigation.GetRelativePathToApplicatonRoot(SiteNavigation.RemoveHostFromUrl(ResolveAbsoluteUrl(link)));
Line 150:        return rawUrl.Equals(linkUrl, StringComparison.OrdinalIgnoreCase);
Line 151:    }
</td> </tr> </tbody> </table>
Source File: d:\Inetpub\WebROOT\ro.teapot.www\Controls\Blocks\Menu.ascx.cs    Line: 149

Stack Trace:

<table width="100%" bgcolor="#ffffcc"> <tbody> <tr> <td>
[ArgumentNullException: Value cannot be null.
Parameter name: input]
   System.Text.RegularExpressions.Regex.Match(String input) +5174711
   System.Text.RegularExpressions.Regex.Match(String input, String pattern, RegexOptions options) +44
   DotShoppingCart.Commercial.Core.SiteNavigation.RemoveHostFromUrl(String fullPathWithHost) +20
   Controls_Blocks_Menu.IsCurrentPage(String link) in d:\Inetpub\WebROOT\ro.teapot.www\Controls\Blocks\Menu.ascx.cs:149
   ASP.controls_blocks_menu_ascx.__DataBind__control3(Object sender, EventArgs e) in d:\Inetpub\WebROOT\ro.teapot.www\Controls\Blocks\Menu.ascx:9
   System.Web.UI.Control.OnDataBinding(EventArgs e) +99
   System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +92
   System.Web.UI.Control.DataBind() +15
   System.Web.UI.Control.DataBindChildren() +211
   System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +102
   System.Web.UI.Control.DataBind() +15
   System.Web.UI.WebControls.Repeater.CreateItem(Int32 itemIndex, ListItemType itemType, Boolean dataBind, Object dataItem) +124
   System.Web.UI.WebControls.Repeater.CreateControlHierarchy(Boolean useDataSource) +443
   System.Web.UI.WebControls.Repeater.OnDataBinding(EventArgs e) +51
   System.Web.UI.WebControls.Repeater.DataBind() +75
   Controls_Blocks_Menu.Page_Load(Object sender, EventArgs e) in d:\Inetpub\WebROOT\ro.teapot.www\Controls\Blocks\Menu.ascx.cs:49
   System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
   System.Web.UI.Control.OnLoad(EventArgs e) +99
   System.Web.UI.Control.LoadRecursive() +50
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627
</td> </tr> </tbody> </table>
<hr width="100%" color="#c0c0c0" size="1" /> Version Information: Microsoft .NET Framework Version:2.0.50727.3053; ASP.NET Version:2.0.50727.3053
<!-- [ArgumentNullException]: Value cannot be null. Parameter name: input at System.Text.RegularExpressions.Regex.Match(String input) at System.Text.RegularExpressions.Regex.Match(String input, String pattern, RegexOptions options) at DotShoppingCart.Commercial.Core.SiteNavigation.RemoveHostFromUrl(String fullPathWithHost) at Controls_Blocks_Menu.IsCurrentPage(String link) in d:\Inetpub\WebROOT\ro.teapot.www\Controls\Blocks\Menu.ascx.cs:line 149 at ASP.controls_blocks_menu_ascx.__DataBind__control3(Object sender, EventArgs e) in d:\Inetpub\WebROOT\ro.teapot.www\Controls\Blocks\Menu.ascx:line 9 at System.Web.UI.Control.OnDataBinding(EventArgs e) at System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) at System.Web.UI.Control.DataBind() at System.Web.UI.Control.DataBindChildren() at System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) at System.Web.UI.Control.DataBind() at System.Web.UI.WebControls.Repeater.CreateItem(Int32 itemIndex, ListItemType itemType, Boolean dataBind, Object dataItem) at System.Web.UI.WebControls.Repeater.CreateControlHierarchy(Boolean useDataSource) at System.Web.UI.WebControls.Repeater.OnDataBinding(EventArgs e) at System.Web.UI.WebControls.Repeater.DataBind() at Controls_Blocks_Menu.Page_Load(Object sender, EventArgs e) in d:\Inetpub\WebROOT\ro.teapot.www\Controls\Blocks\Menu.ascx.cs:line 49 at System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) at System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) at System.Web.UI.Control.OnLoad(EventArgs e) at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) [HttpUnhandledException]: Exception of type 'System.Web.HttpUnhandledException' was thrown. at System.Web.UI.Page.HandleError(Exception e) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.ProcessRequest() at System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) at System.Web.UI.Page.ProcessRequest(HttpContext context) at ASP.genericerrorpage_aspx.ProcessRequest(HttpContext context) in c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\8b2ab8a2\7b8381ae\App_Web_bcf4fbc4.6.cs:line 0 at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) --><!-- This error page might contain sensitive information because ASP.NET is configured to show verbose error messages using &lt;customErrors mode="Off"/&gt;. Consider using &lt;customErrors mode="On"/&gt; or &lt;customErrors mode="RemoteOnly"/&gt; in production environments.-->
9/28/2008 8:47:57 AM
lukezy
Posts: 2109
Joined: 6/12/2007
Location:WA, US
Re: I just screwed my my installation
It seems that your menu link is the empty string. Change line 153 to 155 in web\controls\blocks\menu.ascx.cx
 
    protected string ResolveAbsoluteUrl(string url) {
        if (string.IsNullOrEmpty(url))
            return null;
to
    protected string ResolveAbsoluteUrl(string url) {
        if (string.IsNullOrEmpty(url))
            return string.Empty;
 
We will update the code in the next release.
DotShoppingCart Staff
9/28/2008 9:12:54 AM
AurelianP
Posts: 17
Joined: 9/27/2008
Re: I just screwed my my installation
Yep. That fix it.
 
Still ... why was giving me the annoying 404 (with HTM extension intead of ASPX)?
 
And second why this event was not logged?
 
Aurelian
9/28/2008 9:49:44 AM
lukezy
Posts: 2109
Joined: 6/12/2007
Location:WA, US
Re: I just screwed my my installation
Error pages are defined in web.config. Check if you have the right error pages defined in web.config.
 
        <customErrorsmode="RemoteOnly"defaultRedirect="GenericErrorPage.aspx">
            <errorstatusCode="403"redirect="NoAccess.htm"/>
            <errorstatusCode="404"redirect="FileNotFound.aspx"/>
        </customErrors>
 
 Not sure why it's not logged. Do you see DotShoppingCart eventlog at all? If so, check if the credential running your app pool has permissions to write to the DotShoppingCart eventlog.
DotShoppingCart Staff
9/28/2008 10:25:39 AM
AurelianP
Posts: 17
Joined: 9/27/2008
Re: I just screwed my my installation
<div style="margin: 0in 0in 0pt"><span style="font-size: 10pt; color: blue"> <div style="margin: 0in 0in 0pt"> 
</span><span style="font-size: 10pt; color: blue"><span style="font-size: 10pt; color: blue">

 

        <customErrorsmode="RemoteOnly"defaultRedirect="GenericErrorPage.aspx">
            <errorstatusCode="403"redirect="NoAccess.htm"/>
            <errorstatusCode="404"redirect="FileNotFound.aspx"/>
        </customErrors>
 
 
 
I chenaged to :
 
        <customErrorsmode="RemoteOnly"defaultRedirect="GenericErrorPage.aspx">
            <errorstatusCode="403"redirect="NoAccess.htm"/>
            <errorstatusCode="404"redirect="FileNotFound.aspx"/>
        </customErrors>
 
 
 
But as far as I know there is no "FileNotfound.aspx" ... So wha's the correct setting?
 
App Pool runs on network service (w2k3 r2).  What's the nadiest way of givig it permisions?
 
Aurelian
 
9/28/2008 11:09:48 AM
lukezy
Posts: 2109
Joined: 6/12/2007
Location:WA, US
Re: I just screwed my my installation
FileNotFound.aspx is in web directory.
 
Doing an internet search should give you how to giving permissions. Here is a direct link.
DotShoppingCart Staff
9/28/2008 12:43:14 PM
AurelianP
Posts: 17
Joined: 9/27/2008
Re: I just screwed my my installation
Yes. Sorry. It's late here in CEE :)
Page 1 of 2 (12 posts) << First < Prev 1 2 Next > Last >>