in

dashCommerce

An ASP.NET Open Source e-Commerce Application

Custom Error Runtime Error...

Last post 04-18-2008 2:31 PM by doyenblair. 6 replies.
Page 1 of 1 (7 items)
Sort Posts: Previous Next
  • 04-17-2008 4:40 PM

    Custom Error Runtime Error...

    Let me start out by saying installation thus far has been easy.  I followed the instructions, but when I go to the Login screen I get the following error:

    Parser Error

    Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.

    Parser Error Message: The base class includes the field 'scriptManager', but its type (System.Web.UI.ScriptManager) is not compatible with the type of control (System.Web.UI.ScriptManager).

    Source Error:

    Line 21:   <div id="allContent">
    Line 22:   <form id="form1" runat="server">
    Line 23:   <asp:scriptmanager ID="scriptManager" runat="server" EnablePartialRendering="true" />
    Line 24:   <div id="headerRegion">
    Line 25:         <div class="welcomePanel">

    Source File: /site.master    Line: 23


    Version Information: Microsoft .NET Framework Version:2.0.50727.1433; ASP.NET Version:2.0.50727.1433  

     

     I go to my hosting page control panel and look at the extension that my site is using.  It says that I am using 2.0.  When I change it to 1.1, I get past that error and then I get the following error:

    Server Error in '/' Application.

    Runtime Error

    Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.

    Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customErrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customErrors> tag should then have its "mode" attribute set to "Off".

    <!-- Web.Config Configuration File -->
    
    <configuration>
        <system.web>
            <customErrors mode="Off"/>
        </system.web>
    </configuration>

    Notes: The current error page you are seeing can be replaced by a custom error page by modifying the "defaultRedirect" attribute of the application's <customErrors> configuration tag to point to a custom error page URL.

    <!-- Web.Config Configuration File -->
    
    <configuration>
        <system.web>
            <customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>
        </system.web>
    </configuration>
     

    I have checked and rechecked that custom errors is set to "Off".  I know that XML is case sensitive and have made sure all is correct.

    Does anyone have any ideas on what to do next??

    Thanks,

    Doyen 

     

     

     

     

  • 04-17-2008 5:58 PM In reply to

    Re: Custom Error Runtime Error...

    Hi, I have a guess. try this:

    Either get you the AJAX Extensions 1.0 

    If 2.0 < .NET < 3.5 

    or

    use .NET 3.5

    check out this: http://asp.net/ajax/downloads/

    Thanks!!!

    Click to visit
    Help with .NET Development, Win a Prize!
  • 04-17-2008 6:08 PM In reply to

    Re: Custom Error Runtime Error...

    I agree - ensure your hosting provider has the Ajax Extensions 1.0 installed - the Technology page has all the prerequisites.

    --
    Support dashCommerce - Buy Our Stuff!!


    Find a bug? Create a Work Item for a fast response.. Want to help? Create a patch for us! Documentation? Help us write some!
    Filed under:
  • 04-18-2008 12:29 AM In reply to

    Re: Custom Error Runtime Error...

    Forgive me 'cause I'm fairly new, joined today, but was wondering why the AJAX references are being pointed to the GAC to being with? Is this an application need? There is really no reason to mandate the environment have AJAX extensions installed when you can control this via the app's local references.(In the same vein that assemblies like Log4Net.dll are referenced). 

    Maybe there is a very good reason, like migration path to .Net 3.5 or something. So not trying to question design, just curious. If the web app makes a local AJAX reference, then it takes the burden off making sure host admins get the right stuff installed. (of course this will no longer matter if DashCommerce is migrated to ASP.Net 3.5)

     Very cool product!

     Thanks,

  • 04-18-2008 4:01 AM In reply to

    Re: Custom Error Runtime Error...

    • When AJAX extensions are installed they fly to GAC. 
    • This makes refererences centralized and simplified.
    • When you copy/download a Project you don't need to download big big files of the refererences with it rather you just copy the References' Pointers.
    • References' Pointers are written to the web.config/Project file of an application.
    Click to visit
    Help with .NET Development, Win a Prize!
  • 04-18-2008 8:56 AM In reply to

    Re: Custom Error Runtime Error...

    Thanks for your response. 

    My point is you do not have to do it the way you described. Based on all the trouble users are having with AJAX 1.0 extensions references, it would be easier to change the web project's references to use non-GAC'd copies of the AJAX extension assemblies, and deploy those, along with the web project, in the "bin" directory.

  • 04-18-2008 2:31 PM In reply to

    Re: Custom Error Runtime Error...

    Everyone, I don't know what I did, but I rebuilt the solution and uploaded the web piece to my host and everything is working like it should.  Sorry for all the fuss.

Page 1 of 1 (7 items)