Run time error

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
14 years ago
Hello all i am new to NopCommerce, I was attempting to set up the software but I was getting this error. i did what it says to do and even took the web.config page out and still get this message. Can anyone help with this


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>
14 years ago
hi lisa,

you need to go to your web.config file and find the <custom errors>  tags, comment them out  and switch off custom errors
- do it like so ( you can copy and paste exactly ) :

<customErrors mode="Off" />
  
<!--    <customErrors mode="RemoteOnly" defaultRedirect="ErrorPage.htm">
      <error statusCode="403" redirect="BannedAddress.htm"/>
      <error statusCode="404" redirect="FileNotFound.htm"/>
    </customErrors>
-->

note:  Off  must be spelled with a capitol 'O'

upload the web.config file and retry                  
this will not solve your problem but it will let you see a detailed error message which will bring you closer to solving the issue

once you have solved the issue and the store is running, return the custom errors setting to the way it was (that way your customers will see the custom error page ( ErrorPage.htm - which you can edit) rather than the compilation error message.

when your store is running normally, you can view then view error messages in admin --> system-->log
14 years ago
Thanks for you help--------------This is the web.config file i have
but i am getting the same error.. I have added the code



<?xml version="1.0"?>
<configuration>
  <configSections>
    <sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
      <sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
        <section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
        <sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
          <section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="Everywhere"/>
          <section name="profileService" type="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
          <section name="authenticationService" type="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
          <section name="roleService" type="System.Web.Configuration.ScriptingRoleServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
        </sectionGroup>
      </sectionGroup>
    </sectionGroup>
    <section name="NopConfig" type="NopSolutions.NopCommerce.BusinessLogic.Configuration.NopConfig, Nop.BusinessLogic" requirePermission="false"/>
    <section name="urlrewritingnet" type="UrlRewritingNet.Configuration.UrlRewriteSection, UrlRewritingNet.UrlRewriter" requirePermission="false"/>
    <sectionGroup name="nopDataProviders">
      <section name="LogProvider" type="NopSolutions.NopCommerce.DataAccess.DBProviderSection, Nop.DataAccess" requirePermission="false"/>
      <section name="SearchLogProvider" type="NopSolutions.NopCommerce.DataAccess.DBProviderSection, Nop.DataAccess" requirePermission="false"/>
      <section name="CategoryProvider" type="NopSolutions.NopCommerce.DataAccess.DBProviderSection, Nop.DataAccess" requirePermission="false"/>
      <section name="SettingProvider" type="NopSolutions.NopCommerce.DataAccess.DBProviderSection, Nop.DataAccess" requirePermission="false"/>
      <section name="BlogProvider" type="NopSolutions.NopCommerce.DataAccess.DBProviderSection, Nop.DataAccess" requirePermission="false"/>
      <section name="ForumProvider" type="NopSolutions.NopCommerce.DataAccess.DBProviderSection, Nop.DataAccess" requirePermission="false"/>
      <section name="NewsProvider" type="NopSolutions.NopCommerce.DataAccess.DBProviderSection, Nop.DataAccess" requirePermission="false"/>
      <section name="PollProvider" type="NopSolutions.NopCommerce.DataAccess.DBProviderSection, Nop.DataAccess" requirePermission="false"/>
      <section name="TopicProvider" type="NopSolutions.NopCommerce.DataAccess.DBProviderSection, Nop.DataAccess" requirePermission="false"/>
      <section name="CustomerProvider" type="NopSolutions.NopCommerce.DataAccess.DBProviderSection, Nop.DataAccess" requirePermission="false"/>
      <section name="CountryProvider" type="NopSolutions.NopCommerce.DataAccess.DBProviderSection, Nop.DataAccess" requirePermission="false"/>
      <section name="CurrencyProvider" type="NopSolutions.NopCommerce.DataAccess.DBProviderSection, Nop.DataAccess" requirePermission="false"/>
      <section name="LanguageProvider" type="NopSolutions.NopCommerce.DataAccess.DBProviderSection, Nop.DataAccess" requirePermission="false"/>
      <section name="StateProvinceProvider" type="NopSolutions.NopCommerce.DataAccess.DBProviderSection, Nop.DataAccess" requirePermission="false"/>
      <section name="LocaleStringResourceProvider" type="NopSolutions.NopCommerce.DataAccess.DBProviderSection, Nop.DataAccess" requirePermission="false"/>
      <section name="MaintenanceProvider" type="NopSolutions.NopCommerce.DataAccess.DBProviderSection, Nop.DataAccess" requirePermission="false"/>
      <section name="ManufacturerProvider" type="NopSolutions.NopCommerce.DataAccess.DBProviderSection, Nop.DataAccess" requirePermission="false"/>
      <section name="MeasureProvider" type="NopSolutions.NopCommerce.DataAccess.DBProviderSection, Nop.DataAccess" requirePermission="false"/>
      <section name="DownloadProvider" type="NopSolutions.NopCommerce.DataAccess.DBProviderSection, Nop.DataAccess" requirePermission="false"/>
      <section name="PictureProvider" type="NopSolutions.NopCommerce.DataAccess.DBProviderSection, Nop.DataAccess" requirePermission="false"/>
      <section name="MessageProvider" type="NopSolutions.NopCommerce.DataAccess.DBProviderSection, Nop.DataAccess" requirePermission="false"/>
      <section name="OrderProvider" type="NopSolutions.NopCommerce.DataAccess.DBProviderSection, Nop.DataAccess" requirePermission="false"/>
      <section name="ShoppingCartProvider" type="NopSolutions.NopCommerce.DataAccess.DBProviderSection, Nop.DataAccess" requirePermission="false"/>
      <section name="CreditCardTypeProvider" type="NopSolutions.NopCommerce.DataAccess.DBProviderSection, Nop.DataAccess" requirePermission="false"/>
      <section name="PaymentMethodProvider" type="NopSolutions.NopCommerce.DataAccess.DBProviderSection, Nop.DataAccess" requirePermission="false"/>
      <section name="PaymentStatusProvider" type="NopSolutions.NopCommerce.DataAccess.DBProviderSection, Nop.DataAccess" requirePermission="false"/>
      <section name="ProductAttributeProvider" type="NopSolutions.NopCommerce.DataAccess.DBProviderSection, Nop.DataAccess" requirePermission="false"/>
      <section name="SpecificationAttributeProvider" type="NopSolutions.NopCommerce.DataAccess.DBProviderSection, Nop.DataAccess" requirePermission="false"/>
      <section name="ProductProvider" type="NopSolutions.NopCommerce.DataAccess.DBProviderSection, Nop.DataAccess" requirePermission="false"/>
      <section name="AffiliateProvider" type="NopSolutions.NopCommerce.DataAccess.DBProviderSection, Nop.DataAccess" requirePermission="false"/>
      <section name="CampaignProvider" type="NopSolutions.NopCommerce.DataAccess.DBProviderSection, Nop.DataAccess" requirePermission="false"/>
      <section name="DiscountProvider" type="NopSolutions.NopCommerce.DataAccess.DBProviderSection, Nop.DataAccess" requirePermission="false"/>
      <section name="ACLProvider" type="NopSolutions.NopCommerce.DataAccess.DBProviderSection, Nop.DataAccess" requirePermission="false"/>
      <section name="BlacklistProvider" type="NopSolutions.NopCommerce.DataAccess.DBProviderSection, Nop.DataAccess" requirePermission="false"/>
      <section name="ShippingByTotalProvider" type="NopSolutions.NopCommerce.DataAccess.DBProviderSection, Nop.DataAccess" requirePermission="false"/>
      <section name="ShippingByWeightProvider" type="NopSolutions.NopCommerce.DataAccess.DBProviderSection, Nop.DataAccess" requirePermission="false"/>
      <section name="ShippingByWeightAndCountryProvider" type="NopSolutions.NopCommerce.DataAccess.DBProviderSection, Nop.DataAccess" requirePermission="false"/>
      <section name="ShippingMethodProvider" type="NopSolutions.NopCommerce.DataAccess.DBProviderSection, Nop.DataAccess" requirePermission="false"/>
      <section name="ShippingRateComputationMethodProvider" type="NopSolutions.NopCommerce.DataAccess.DBProviderSection, Nop.DataAccess" requirePermission="false"/>
      <section name="ShippingStatusProvider" type="NopSolutions.NopCommerce.DataAccess.DBProviderSection, Nop.DataAccess" requirePermission="false"/>
      <section name="TaxCategoryProvider" type="NopSolutions.NopCommerce.DataAccess.DBProviderSection, Nop.DataAccess" requirePermission="false"/>
      <section name="TaxProviderProvider" type="NopSolutions.NopCommerce.DataAccess.DBProviderSection, Nop.DataAccess" requirePermission="false"/>
      <section name="TaxRateProvider" type="NopSolutions.NopCommerce.DataAccess.DBProviderSection, Nop.DataAccess" requirePermission="false"/>
      <section name="TemplateProvider" type="NopSolutions.NopCommerce.DataAccess.DBProviderSection, Nop.DataAccess" requirePermission="false"/>
      <section name="WarehouseProvider" type="NopSolutions.NopCommerce.DataAccess.DBProviderSection, Nop.DataAccess" requirePermission="false"/>
      <section name="CustomerActivityProvider" type="NopSolutions.NopCommerce.DataAccess.DBProviderSection, Nop.DataAccess" requirePermission="false"/>
    </sectionGroup>
  </configSections>
  <appSettings>
    <add key="UseSSL" value="false" />
    <add key="SharedSSL" value="" />
    <add key="GoogleMerchantID" value="" />
    <add key="GoogleMerchantKey" value="" />
    <add key="GoogleEnvironment" value="Sandbox" />
    <add key="GoogleAuthenticateCallback" value="True" />
  </appSettings>
  <connectionStrings configSource="ConnectionStrings.config"/>
  <urlrewritingnet configSource="UrlRewriting.config"/>


  <system.web>
    <httpRuntime maxRequestLength="51200"/>
    <customErrors mode="Off"/>

    <!-- <customErrors mode="RemoteOnly" defaultRedirect="ErrorPage.htm">
      <error statusCode="403" redirect="BannedAddress.htm"/>
      <error statusCode="404" redirect="FileNotFound.htm"/>-->

  </system.web>
  </customErrors>
</configuration>
    <compilation debug="true">
      <assemblies>
        <add assembly="System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
        <add assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
        <add assembly="System.Data.DataSetExtensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
        <add assembly="System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
      </assemblies>
      <expressionBuilders>
        <add expressionPrefix="NopResources" type="NopSolutions.NopCommerce.BusinessLogic.Localization.NopResourceExpressionBuilder, Nop.BusinessLogic"/>
      </expressionBuilders>
    </compilation>
    <authentication mode="Forms">
      <forms name="NOPCOMMERCE.AUTH" loginUrl="~/Login.aspx" protection="All" timeout="43200" path="/" requireSSL="false" slidingExpiration="true" defaultUrl="~/default.aspx" enableCrossAppRedirects="false"/>
    </authentication>
    <anonymousIdentification enabled="true"/>
    <authorization>
      <allow users="*"/>
    </authorization>
    <membership defaultProvider="NopMembershipSqlProvider" userIsOnlineTimeWindow="15">
      <providers>
        <add name="NopMembershipSqlProvider" type="NopSolutions.NopCommerce.BusinessLogic.Profile.StoreMembershipProvider, Nop.BusinessLogic" connectionStringName="NopSqlConnection" enablePasswordReset="true" requiresQuestionAndAnswer="false" applicationName="NopCommerce" requiresUniqueEmail="true" enablePasswordRetrieval="true"/>
      </providers>
    </membership>
    <roleManager enabled="true" cacheRolesInCookie="false" defaultProvider="NopRoleManagerSqlProvider" cookieName=".NopCommerceRoles" cookiePath="/" cookieTimeout="30" cookieRequireSSL="false" cookieSlidingExpiration="true" createPersistentCookie="false" cookieProtection="All">
      <providers>
        <add name="NopRoleManagerSqlProvider" type="NopSolutions.NopCommerce.BusinessLogic.Profile.StoreRoleProvider, Nop.BusinessLogic" connectionStringName="NopSqlConnection" applicationName="NopCommerce"/>
      </providers>
    </roleManager>
    <sessionState timeout="20" mode="InProc" cookieless="false"/>
    <siteMap defaultProvider="NopAdminXmlSiteMapProvider" enabled="true">
      <providers>
        <add name="NopAdminXmlSiteMapProvider" type="System.Web.XmlSiteMapProvider" siteMapFile="Administration/Admin.sitemap" />
      </providers>
    </siteMap>
    <pages theme="DarkOrange">
      <namespaces>
        <add namespace="System.Collections.Generic"/>
        <add namespace="NopSolutions.NopCommerce.BusinessLogic"/>
        <add namespace="NopSolutions.NopCommerce.BusinessLogic.Audit"/>
        <add namespace="NopSolutions.NopCommerce.BusinessLogic.Categories"/>
        <add namespace="NopSolutions.NopCommerce.BusinessLogic.Configuration.Settings"/>
        <add namespace="NopSolutions.NopCommerce.BusinessLogic.Content.Blog"/>
        <add namespace="NopSolutions.NopCommerce.BusinessLogic.Content.Forums"/>
        <add namespace="NopSolutions.NopCommerce.BusinessLogic.Content.NewsManagement"/>
        <add namespace="NopSolutions.NopCommerce.BusinessLogic.Content.Polls"/>
        <add namespace="NopSolutions.NopCommerce.BusinessLogic.CustomerManagement"/>
        <add namespace="NopSolutions.NopCommerce.BusinessLogic.Directory"/>
        <add namespace="NopSolutions.NopCommerce.BusinessLogic.Localization"/>
        <add namespace="NopSolutions.NopCommerce.BusinessLogic.Manufacturers"/>
        <add namespace="NopSolutions.NopCommerce.BusinessLogic.Measures"/>
        <add namespace="NopSolutions.NopCommerce.BusinessLogic.Media"/>
        <add namespace="NopSolutions.NopCommerce.BusinessLogic.Messages"/>
        <add namespace="NopSolutions.NopCommerce.BusinessLogic.Orders"/>
        <add namespace="NopSolutions.NopCommerce.BusinessLogic.Payment"/>
        <add namespace="NopSolutions.NopCommerce.BusinessLogic.Products.Attributes"/>
        <add namespace="NopSolutions.NopCommerce.BusinessLogic.Products.Specs"/>
        <add namespace="NopSolutions.NopCommerce.BusinessLogic.Products"/>
        <add namespace="NopSolutions.NopCommerce.BusinessLogic.Profile"/>
        <add namespace="NopSolutions.NopCommerce.BusinessLogic.Promo.Affiliates"/>
        <add namespace="NopSolutions.NopCommerce.BusinessLogic.Promo.Campaigns"/>
        <add namespace="NopSolutions.NopCommerce.BusinessLogic.Promo.Discounts"/>
        <add namespace="NopSolutions.NopCommerce.BusinessLogic.Security"/>
        <add namespace="NopSolutions.NopCommerce.BusinessLogic.SEO"/>
        <add namespace="NopSolutions.NopCommerce.BusinessLogic.Shipping"/>
        <add namespace="NopSolutions.NopCommerce.BusinessLogic.Tasks"/>
        <add namespace="NopSolutions.NopCommerce.Busines
14 years ago
i would try a fresh install - and i would temporarily make the <customerrors> change right at the start
14 years ago
Hello, to me the same thing happens, I already made the <custom errors>  tags change , and I get the following error message:

Configuration Error

Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

Parser Error Message: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level.  This error can be caused by a virtual directory not being configured as an application in IIS.

Source Error:


Line 98:       </expressionBuilders>
Line 99:     </compilation>
Line 100:    <authentication mode="Forms">
Line 101:      <forms name="NOPCOMMERCE.AUTH" loginUrl="~/Login.aspx" protection="All" timeout="43200" path="/" requireSSL="false" slidingExpiration="true" defaultUrl="~/default.aspx" enableCrossAppRedirects="false"/>
Line 102:    </authentication>

Source File: C:\Inetpub\vhosts\regalaunaexperiencia.com\httpdocs\site\store\web.config    Line: 100

What should I do?
13 years ago
i am still not able to get past this runtime error page. I have done a clean install anyone have any ideas?
13 years ago
haydie wrote:
hi lisa,

you need to go to your web.config file and find the <custom errors>  tags, comment them out  and switch off custom errors
- do it like so ( you can copy and paste exactly ) :

<customErrors mode="Off" />
  
<!--    <customErrors mode="RemoteOnly" defaultRedirect="ErrorPage.htm">
      <error statusCode="403" redirect="BannedAddress.htm"/>
      <error statusCode="404" redirect="FileNotFound.htm"/>
    </customErrors>
-->

note:  Off  must be spelled with a capitol 'O'

upload the web.config file and retry                  
this will not solve your problem but it will let you see a detailed error message which will bring you closer to solving the issue

once you have solved the issue and the store is running, return the custom errors setting to the way it was (that way your customers will see the custom error page ( ErrorPage.htm - which you can edit) rather than the compilation error message.

when your store is running normally, you can view then view error messages in admin --> system-->log



I'm trying to make sure if this is the right method since I have done it three times. Every time I upload it and change the web.config but not a single change in that !!!

I have changed it manually and even copy/pasted it from this forum but still I'm getting this annoying error message of .NET

Any help will be appreciated greatly.

Although you have it above but I'm pasting what I have in web.config again:


  <system.web>
    <customErrors mode="Off" />
      <!--
      <customErrors mode="Off" defaultRedirect="errorpage.htm">
      <error statusCode="403" redirect="bannedaddress.htm"/>
      <error statusCode="404" redirect="filenotfound.htm"/>
      </customErrors>
      -->

       more tags here .....

       </system.web>
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.