Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • choke 15 posts 35 karma points
    Aug 02, 2010 @ 12:06
    choke
    0

    web.config file error , please help

    Server Error in '/' Application.

    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: Unrecognized configuration section system.web.extensions.

    Source Error:

    Line 152:
    Line 153: <!-- ASPNETAJAX -->
    Line 154: <system.web.extensions>
    Line 155: <scripting>
    Line 156: <scriptResourceHandler enableCompression="true" enableCaching="true" />


    Source File: D:\Domains\sdsbiz.com\web.config    Line: 154


    Version Information: Microsoft .NET Framework Version:2.0.50727.3603; ASP.NET Version:2.0.50727.3082

  • Ismail Mayat 4511 posts 10092 karma points MVP 2x admin c-trib
    Aug 02, 2010 @ 12:58
    Ismail Mayat
    0

    Choke,

    Which version of umbraco are you using?

    Regards

    Ismail

  • choke 15 posts 35 karma points
    Aug 02, 2010 @ 13:00
    choke
    0

    Dear Ismail

    I used 4.5 version, which version that i can use with asp.net2.0?

    Thank you

    Regards

    Choke

  • Ismail Mayat 4511 posts 10092 karma points MVP 2x admin c-trib
    Aug 02, 2010 @ 13:17
    Ismail Mayat
    0

    Choke,

    4.5 cannot be used with 2.0 anything pre 4.1 can.

    Regards

    Ismail

  • Sascha Wolter 615 posts 1101 karma points
    Aug 02, 2010 @ 13:51
    Sascha Wolter
    0

    This is the latest one that works with 2.0: http://umbraco.codeplex.com/releases/view/37337

  • choke 15 posts 35 karma points
    Aug 03, 2010 @ 04:49
    choke
    0

    Dear All

    Thank you for your help. I did as your suggest as well,

    i downloaded 4.0.2 version and upload all of files into my host and then point to my url.

    by the way i can't see the configuration page i see only login page as

    and when i enter my username >>> umbracousername and password >>> umbracopassword

    i got en error appear

    Server Error in '/' Application.

    Login failed for user 'umbracopassword'.

    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.Data.SqlClient.SqlException: Login failed for user 'umbracopassword'.

    Source Error:

    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.


    Stack Trace:

    [SqlException (0x80131904): Login failed for user 'umbracopassword'.]
    System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection owningObject) +428
    System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection) +65
    System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) +117
    System.Data.SqlClient.SqlConnection.Open() +122
    Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteReader(String connectionString, CommandType commandType, String commandText, SqlParameter[] commandParameters) +65
    umbraco.DataLayer.SqlHelpers.SqlServer.SqlServerHelper.ExecuteReader(String commandText, SqlParameter[] parameters) +37
    umbraco.DataLayer.SqlHelper`1.ExecuteReader(String commandText, IParameter[] parameters) +68

    [SqlHelperException: Umbraco Exception (DataLayer): SQL helper exception in ExecuteScalar]
    umbraco.DataLayer.SqlHelper`1.ExecuteScalar(String commandText, IParameter[] parameters) +220
    umbraco.BusinessLogic.User.getUserId(String query, IParameter[] parameterValues) +40
    umbraco.BusinessLogic.User.getUserId(String lname) +67
    umbraco.BusinessLogic.User..ctor(String Login) +99
    umbraco.providers.UsersMembershipProvider.ValidateUser(String username, String password) +31
    umbraco.cms.presentation.login.Button1_Click(Object sender, EventArgs e) +84
    System.Web.UI.WebControls.Button.OnClick(EventArgs e) +111
    System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +110
    System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10
    System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
    System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +36
    System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1565



    Version Information: Microsoft .NET Framework Version:2.0.50727.3603; ASP.NET Version:2.0.50727.3082

     

     

    this is my web.config file.

    <?xml version="1.0" encoding="UTF-8"?>
    <configuration>



      <configSections>
        <section name="urlrewritingnet" restartOnExternalChanges="true" requirePermission="false" type="UrlRewritingNet.Configuration.UrlRewriteSection, UrlRewritingNet.UrlRewriter" />
        <!-- ASPNETAJAX -->
        <sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
          <sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
            <section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication" />
            <sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
              <section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="Everywhere" />
              <section name="profileService" type="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication" />
              <section name="authenticationService" type="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication" />
            </sectionGroup>
          </sectionGroup>
        </sectionGroup>

        <sectionGroup name="applicationSettings" type="System.Configuration.ApplicationSettingsGroup, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
          <section name="umbraco.presentation.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
        </sectionGroup>
      </configSections>

      <urlrewritingnet configSource="config\UrlRewriting.config" />

      <appSettings>
        <add key="umbracoDbDSN" value="datalayer=SqlServer;server=203.146.170.168;database=umbraco;user id=umbracopassword;password=umbracopassword" />
        <add key="umbracoConfigurationStatus" value="4.0.2" />
        <add key="umbracoReservedUrls" value="/config/splashes/booting.aspx,/install/default.aspx,/config/splashes/noNodes.aspx" />
        <add key="umbracoReservedPaths" value="/umbraco,/install/" />
        <add key="umbracoContentXML" value="/data/umbraco.config" />
        <add key="umbracoStorageDirectory" value="/data" />
        <add key="umbracoPath" value="/umbraco" />
        <add key="umbracoEnableStat" value="false" />
        <add key="umbracoHideTopLevelNodeFromPath" value="true" />
        <add key="umbracoEditXhtmlMode" value="true" />
        <add key="umbracoUseDirectoryUrls" value="false" />
        <add key="umbracoDebugMode" value="true" />
        <add key="umbracoTimeOutInMinutes" value="20" />
        <!-- How often should umbraco check for upgrades (in days) -->
        <add key="umbracoVersionCheckPeriod" value="7" />
        <add key="umbracoDisableXsltExtensions" value="true" />
        <add key="umbracoDefaultUILanguage" value="en" />
        <add key="umbracoProfileUrl" value="profiler" />
        <add key="umbracoUseSSL" value="false" />
        <add key="umbracoUseMediumTrust" value="false" />
      </appSettings>

      <!-- This Replaces the old umbracoSmptpServer config-->
      <system.net>
        <mailSettings>
          <smtp>
            <network host="127.0.0.1" userName="username" password="password" />
          </smtp>
        </mailSettings>
      </system.net>
     
      <system.web>
        <customErrors mode="Off" />
        <trace enabled="true" requestLimit="10" pageOutput="false" traceMode="SortByTime" localOnly="true" />
        <sessionState mode="InProc" stateConnectionString="tcpip=127.0.0.1:42424" sqlConnectionString="data source=127.0.0.1;Trusted_Connection=yes" cookieless="false" timeout="20" />
        <globalization requestEncoding="UTF-8" responseEncoding="UTF-8" />
        <xhtmlConformance mode="Strict" />

        <pages enableEventValidation="false">
          <!-- ASPNETAJAX -->
          <controls>
            <add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
            <add tagPrefix="umbraco" namespace="umbraco.presentation.templateControls" assembly="umbraco" />
          </controls>
        </pages>

    please help me.

    Thank you

    Regards

    Choke.

    Babie for Umbraco

     

  • webangelo 107 posts 190 karma points
    Aug 03, 2010 @ 05:19
    webangelo
    0

    Greetings Choke,

    If you look closely at your web.config you see the following:

     <add key="umbracoDbDSN" 
    value="datalayer=SqlServer;server=203.146.170.168;database=umbraco;user
    id=umbracopassword
    ;password=umbracopassword" />

    Note that both your user id and password are set to be umbracopassword.  Does this user exist?  Should the user id be umbracousername?  I'm just guessing based upon what you said previously.

    Just note that the user in this case should be the user that you used to create the umbraco database on the SQL Server during install.

    At the login screen that you showed earlier you will need to use the admin username the first time and whatever password you set the admin user to use during install.  After that you can create a new account if you desire with a different name.

     

    --Chris

  • choke 15 posts 35 karma points
    Aug 03, 2010 @ 05:40
    choke
    0

    Dear Chris

    Thank you for your suggestion.

    For my sql database

    database name : umbraco

    uername >>> umbracouser

    password >>> umbracopassword

    and i change my web.config file to

    <add key="umbracoDbDSN" 
    value="datalayer=SqlServer;server=203.146.170.168;database=umbraco;user
    id=umbracouser
    ;password=umbracopassword" />
    i still found this page
    the way i can't see the configuration page i see only login page as

     

    how can i do next?

     

    FYI.

    Regards

    Choke

  • Kim Andersen 1447 posts 2197 karma points MVP
    Aug 03, 2010 @ 09:08
    Kim Andersen
    0

    Choke, are you sure the username/password for the admin area of Umbraco is the same as you used for your database. Normally when installing Umbraco there's created a user called admin and then you need to provide a password for that user. Try loggin in with admin as the username and the password you wrote when installing Umbraco.

    And just to be totally clear: The username and password you write in your web.config:

    <add key="umbracoDbDSN" 
    value="datalayer=SqlServer;server=203.146.170.168;database=umbraco;user
    id=umbracouser
    ;password=umbracopassword" />

    is only used for logging into the database and NOT for logging into Umbraco. But if you have been inside f umbraco and created a user called umbracouser, maybe there's something else wrong.

    Hope the above makes sense :)

    /Kim A

     

  • choke 15 posts 35 karma points
    Aug 03, 2010 @ 10:19
    choke
    0

    Dear kim

    CC: all

     

    Thank you very much for your help.

    by the way, i completed my site already.

    very happy now.

    Thank a ton for your advise.

    Regards

    Choke

Please Sign in or register to post replies

Write your reply to:

Draft