Copied to clipboard

Flag this post as spam?

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


  • Alex Hicks 2 posts 73 karma points
    Feb 29, 2016 @ 07:34
    Alex Hicks
    1

    New install help - Value cannot be null. Parameter name: sqlSyntax

    Hi All,

    Bit of a newb after some help, recently got a new install fully working and live on a website, all working great.

    This morning however, i downloaded the full site to local using webmatrix, made one very minor change to the smtp from code and re-uploaded, and now i have this error:

    An help would be greatly appreciated, let me know what other info you may need

    Server Error in '/' Application.

    Value cannot be null. Parameter name: sqlSyntax

    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: sqlSyntax

    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:

    [ArgumentNullException: Value cannot be null.
    Parameter name: sqlSyntax]
       Umbraco.Core.Persistence.Repositories.PetaPocoRepositoryBase`2..ctor(IDatabaseUnitOfWork work, CacheHelper cache, ILogger logger, ISqlSyntaxProvider sqlSyntax) +120
       Umbraco.Core.Persistence.Repositories.DomainRepository..ctor(IDatabaseUnitOfWork work, CacheHelper cache, ILogger logger, ISqlSyntaxProvider sqlSyntax) +23
       Umbraco.Core.Services.DomainService.GetAll(Boolean includeWildcards) +75
       Umbraco.Web.Routing.PublishedContentRequestEngine.FindDomain() +286
       Umbraco.Web.Routing.PublishedContentRequestEngine.PrepareRequest() +15
       Umbraco.Web.UmbracoModule.ProcessRequest(HttpContextBase httpContext) +361
       Umbraco.Web.UmbracoModule.<Init>b__8(Object sender, EventArgs e) +80
       System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +141
       System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +69
    
  • Sebastiaan Janssen 5060 posts 15522 karma points MVP admin hq
    Feb 29, 2016 @ 07:36
    Sebastiaan Janssen
    1

    Try clearing your cookies: http://issues.umbraco.org/issue/U4-7494

    I blogged about this as well if you run into more problems: https://cultiv.nl/blog/how-to-diagnose-umbraco-upgrade-problems/

  • Alex Hicks 2 posts 73 karma points
    Feb 29, 2016 @ 08:59
    Alex Hicks
    0

    Hi Seb, many thanks for this - I have reviewed what you have shared and tried everything - clearing cookies etc, on all my devices, and i still have an issue.

    I even used a device i haven't visited the site on before and same issue.

    Any other ideas?

  • Reggie 2 posts 72 karma points
    Mar 13, 2016 @ 18:56
    Reggie
    0

    I too have tried the suggestions that you provided here and in the post and I still get the error message, " Value cannot be null. Parameter name: sqlSyntax" I have changed my backend database from SQLCE to SQL Server using the SQL Server Compact/SQL Lite Toolbox and the structure and data compared exactly. I have some questions about the line in the Web.Config stating

    Important: If you're upgrading Umbraco, do not clear the connection string / provider name during your web.config merge.

    I continue to use the name umbracoDbDSN but I have changed the login credentials. I have also tried to change the corresponding <system.data> <DbProviderFactories> from "Microsoft SQL Server Compact Data Provider 4.0" but that did not work either.

  • Sebastiaan Janssen 5060 posts 15522 karma points MVP admin hq
    Mar 13, 2016 @ 19:01
    Sebastiaan Janssen
    1

    @Reggie Change your connection string to something like:

    <add name="umbracoDbDSN" connectionString="server=.\SQLExpress;database=mydatabase;user id=myuser;password=mypassword" providerName="System.Data.SqlClient" />

    @Alex, sorry, no idea, something must be wrong with your connection or your database or something.

  • Reggie 2 posts 72 karma points
    Mar 14, 2016 @ 12:17
    Reggie
    0

    Hi Sebastiaan

    Thanks for your reply, but my connection string works fine. It is in the same format you are using and it works correctly from SQLServer Management Studio.

    This is my Stack Trace

    Stack Trace:

    [ArgumentNullException: Value cannot be null. Parameter name: sqlSyntax] Umbraco.Core.Persistence.Repositories.PetaPocoRepositoryBase`2..ctor(IDatabaseUnitOfWork work, CacheHelper cache, ILogger logger, ISqlSyntaxProvider sqlSyntax) +100 Umbraco.Core.Persistence.Repositories.DomainRepository..ctor(IDatabaseUnitOfWork work, CacheHelper cache, ILogger logger, ISqlSyntaxProvider sqlSyntax) +30 Umbraco.Core.Persistence.RepositoryFactory.CreateDomainRepository(IDatabaseUnitOfWork uow) +50 Umbraco.Core.Services.DomainService.GetAll(Boolean includeWildcards) +63 Umbraco.Web.Routing.PublishedContentRequestEngine.FindDomain() +292 Umbraco.Web.Routing.PublishedContentRequestEngine.PrepareRequest() +33 Umbraco.Web.Routing.PublishedContentRequest.Prepare() +26 Umbraco.Web.UmbracoModule.ProcessRequest(HttpContextBase httpContext) +387 Umbraco.Web.UmbracoModule.

  • Veronica Van Dyke 1 post 71 karma points
    Apr 09, 2016 @ 15:41
    Veronica Van Dyke
    0

    I had the exact same error, and it was in fact a problem with my connection string. For more details, check your trace log file in the App_Data folder. It will give you the actual SQL error. In my case, I was using a server that was a lower version than my db file, and that was indicated in the log file error.

    Good luck.

  • Nikolay Zherdev 1 post 71 karma points
    May 11, 2016 @ 23:32
    Nikolay Zherdev
    0

    I had this error too.

    In my case issue was in the project location. Project files were stored in network drive.

    After I copied project to local drive installation process was successful.

  • Bobi 352 posts 956 karma points
    Apr 03, 2017 @ 22:40
    Bobi
    0

    Did anyone figure this out? I upgraded to 7.5.11; did not allow any config files to merge; used win merge to manually make changes; things work fine on my local computer and localdb\v11.0; tried to publish the website for the first time, but I was running into this error.

    Steps to fix:

    1. So what I did was I deleted the server side database completely.
    2. I then created a new one.
    3. I used Sql Server Manager to connect to my local db and the newly created server db.
    4. I then right-clicked on my local db and chose to export. I ran through the wizard choosing the server side db as the target db. I let the export occur, and voila the error stopped showing.

    Hope this helps!

  • Proxicode 128 posts 324 karma points
    Apr 14, 2018 @ 17:04
    Proxicode
    0

    For me I made 2 changes so I'm not sure which was the actual fix though I suspect it was adding the providerName.

    I had this...

      <connectionStrings>
        <add name="umbracoDbDSN" connectionString="Data Source=|DataDirectory|\Umbraco.sdf;Flush Interval=1;" />
      </connectionStrings>
    

    and changed it to this and it started working

    <connectionStrings>
        <remove name="umbracoDbDSN" />
        <add name="umbracoDbDSN" connectionString="Data Source=|DataDirectory|\Umbraco.sdf;Max Database Size=4090;Flush Interval=1;" providerName="System.Data.SqlServerCe.4.0" />
    </connectionStrings>
    

    So be sure you have the "remove" line and also be sure to use the providerName attribute.

    By the way, I suspect that this change in the web.config happened when I saved from the ASP.NET settings section in GoDaddy.

    Good luck!

  • Lewis Smith 211 posts 620 karma points c-trib
    Mar 08, 2019 @ 16:01
    Lewis Smith
    0

    Hi all,

    I had the same issue when downgrading a database from version 13 to version 11.

    I opened the same website in a different browser / private browser and it went straight through so i think its something to do with the account / login stuff.

    Check your App_data/ logs and it gives you more details on the exact issue.

    Good luck!!

Please Sign in or register to post replies

Write your reply to:

Draft