Copied to clipboard

Flag this post as spam?

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


  • lele 102 posts 429 karma points
    Mar 27, 2013 @ 14:37
    lele
    0

    Is newsletterstudio not compatible with umbraco 6.0.2

    hello 

    when I want to install the newsletterstudio on the umbraco 6.0.2 I've got this error:

    Could not load control: '/umbraco/newsletterstudio/usercontrols/dashboard.ascx'. 

    Error message: System.ArgumentException: Format of the initialization string does not conform to specification starting at index 135. at System.Data.EntityClient.DbConnectionOptions.GetKeyValuePair(String connectionString, Int32 currentPosition, StringBuilder buffer, String& keyname, String& keyvalue) at System.Data.EntityClient.DbConnectionOptions.ParseInternal(Hashtable parsetable, String connectionString, Hashtable synonyms) at System.Data.EntityClient.DbConnectionOptions..ctor(String connectionString, Hashtable synonyms) at System.Data.EntityClient.EntityConnection.ChangeConnectionString(String newConnectionString) at System.Data.EntityClient.EntityConnection..ctor(String connectionString) at System.Data.Objects.ObjectContext.CreateEntityConnection(String connectionString) at NewsletterStudio.Model.ContextFactory.GetInstance() at ASP.umbraco_newsletterstudio_usercontrols_dashboard_ascx..ctor() at __ASP.FastObjectFactory_app_web_dashboard_ascx_2b1ca25b_kvdl1iua.Create_ASP_umbraco_newsletterstudio_usercontrols_dashboard_ascx() at System.Web.Compilation.BuildResultCompiledType.CreateInstance() at System.Web.UI.TemplateControl.LoadControl(IWebObjectFactory objectFactory, VirtualPath virtualPath, Type t, Object[] parameters) at System.Web.UI.TemplateControl.LoadControl(VirtualPath virtualPath) at umbraco.cms.presentation.dashboard.OnInit(EventArgs e)

    I checked the umbraco database and couldn't find any tables. Are the newsletter studio 1.3.3 not compatible with the lastest umbraco version (6.0.2)?

  • Markus Johansson 1760 posts 5141 karma points c-trib
    Mar 27, 2013 @ 14:40
    Markus Johansson
    0

    Hi!

    This should work and has been tested, was it a clean install?

    I would check

    • Does the db user has the right to create new db tables?
    • Are all permission-settings correct? Including permisstion for the "umbraco"-folder?
    • Any errors in the umbraco-log table?

    / markus

  • lele 102 posts 429 karma points
    Mar 27, 2013 @ 14:48
    lele
    0
      Yes it was.
    • Yes its the same user which I have installed the umbraco solution.
       
    • I tried on both system local and remote and I checked the permission with the umbraco go live function. all is ok.
       
    • No error on the umbraco log table

     

    thanks for your help.

  • Markus Johansson 1760 posts 5141 karma points c-trib
    Mar 27, 2013 @ 14:50
    Markus Johansson
    0

    What database are you using? How does your db connection look?

    This: Error message: System.ArgumentException: Format of the initialization string does not conform to specification starting at index 135. at System.Data.EntityClient.DbConnectionOptions.GetKeyValuePair(String connectionString, Int32 currentPosition, StringBuilder buffer, String& keyname, String& keyvalue) at

    Makes me feel it's something wrong with the db. We only support Ms SQL and My SQL (which special instructions).

    // m

  • lele 102 posts 429 karma points
    Mar 27, 2013 @ 15:00
    lele
    0

    I use Microsoft SQLEXPRESS.  My connectionstring looks like:

    <add name="umbracoDbDSN" connectionString="serverxy, port;database=DBName;user id=userid;password=password" providerName="System.Data.SqlClient" />

    I think standard standard :)...

  • Markus Johansson 1760 posts 5141 karma points c-trib
    Mar 27, 2013 @ 15:44
    Markus Johansson
    0

    Yes.. SQL Express should work just fine. Did de section appear in the backoffice? Any errors when loading the section? If you look with ie. fiddler?

  • lele 102 posts 429 karma points
    Mar 27, 2013 @ 15:48
    lele
    0

    No the newsletter section didn't appear. Do you use the umbracoDbDSN connectionstring? All "ns_" tabels are missing... No not yet.

  • Markus Johansson 1760 posts 5141 karma points c-trib
    Mar 27, 2013 @ 15:53
    Markus Johansson
    0

    Yes, we use the same connection as the installer does. Very strange and the db was clean at installation?

  • lele 102 posts 429 karma points
    Mar 27, 2013 @ 15:54
    lele
    0

    Yes I had installed umbraco v. 6.0.2 from scratch!

  • lele 102 posts 429 karma points
    Mar 27, 2013 @ 16:16
    lele
    101

    I've installed a new umbraco cms from scratch again and now it works all as expected. I don't know what was wrong. Thanks for your support.

  • Markus Johansson 1760 posts 5141 karma points c-trib
    Mar 27, 2013 @ 23:05
    Markus Johansson
    0

    Hi!

    Great! Thank you for letting me know!

    If you have any questions you know where to find me! =D

    // m

  • ondrej 5 posts 55 karma points
    Apr 16, 2013 @ 15:06
    ondrej
    0

    Hi Markus,

    I have the same problem with umbraco v. 4.11.1 and newsletter studio v. 1.3.3, but I can't install a new umbraco cms from scratch.

    Do you have any ideas what to do, or what is related with?

    Should I try to install new version of newsletter studio?

  • Markus Johansson 1760 posts 5141 karma points c-trib
    Apr 16, 2013 @ 18:12
    Markus Johansson
    0

    Hi!

    Since this solved the problem last time:

    "I've installed a new umbraco cms from scratch again and now it works all as expected. I don't know what was wrong. Thanks for your support."

    I guess that it would probably work again?

    As I said, we support MS SQL Server (Express and up) and MySQL but not SQL CE for example.

  • ondrej 5 posts 55 karma points
    Apr 18, 2013 @ 09:47
    ondrej
    0

    Hi,

    Thanks for you reply.

    We can not install a new umbraco cms from scratch. Database is MS SQL Server 2008 R2 SP1, so this seems to be OK.

    Do you specify any special characters, that are not allowed in connection string?

  • Markus Johansson 1760 posts 5141 karma points c-trib
    Apr 19, 2013 @ 05:06
    Markus Johansson
    0

    Hi!

    No it should work, we are just using the same connection string as the rest of umbraco. Are you getting any errors? YSOD? Or in the umbraco_log-table in the db?

    / m

  • Tobias Lopez 64 posts 210 karma points
    Apr 26, 2013 @ 10:02
    Tobias Lopez
    0

    Hi,

    I tried several times to install Newsletter Studio on a clean Umbraco 6.0.3 and 6.0.4 installation.

    if i look into fiddler:

    #ResultProtocolHostURLBodyCachingContent-TypeProcessCommentsCustom
    68 500 HTTP new.opten.ch /umbraco/webservices/TreeDataService.ashx?rnd=d3cd1b35734d4456b9b4b855ec45b8de&id=-1&contextMenu=true&isDialog=false&app=newsletterstudio&rnd2=17.3 4'748 private

    text/html; charset=utf-8

    iexplore:7928    

     

    this is the web view:

     

    Server Error in '/' Application.


    Object reference not set to an instance of an object.

    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.NullReferenceException: Object reference not set to an instance of an object.

    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:

    [NullReferenceException: Object reference not set to an instance of an object.]
       NewsletterStudio.Umbraco.loadSettings.CreateRootNode(XmlTreeNode& rootNode) +21
       umbraco.cms.presentation.Trees.BaseTree.CreateRootNode() +67
       umbraco.cms.presentation.Trees.BaseTree.Initialize() +154
       umbraco.presentation.webservices.TreeDataService.LoadAppTrees(TreeRequestParams treeParams) +155
       umbraco.presentation.webservices.TreeDataService.GetXmlTree() +112
       umbraco.presentation.webservices.TreeDataService.ProcessRequest(HttpContext context) +62
       System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +341
       System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +69
    


     


    Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.18034           

    Any ideas?

    Thanks for any suggestion!

    Tobias

  • Markus Johansson 1760 posts 5141 karma points c-trib
    Apr 26, 2013 @ 11:22
    Markus Johansson
    0

    Hi!

    I tid try this "on my machine" and it works... =D 

    But... let's try to figure out the problem.

    1. Anything i the umbraco log? (log table in the db)

    2. What version of Newsletter Studio?

    3. Does the "dashboard" of the package load? Where you see the headline and a list of newsletters?

    4. What happens if you try to "Create a newsletter"?

    5. What database and version of that database are you using?

  • Tobias Lopez 64 posts 210 karma points
    Apr 26, 2013 @ 11:36
    Tobias Lopez
    0

    hi,

    1. Nothing there...
    2. 1.3.4
    3. See the screenshot in my prior post
    4. YSOD NullReferenceException
    5. MS SQL-Server

  • Markus Johansson 1760 posts 5141 karma points c-trib
    Apr 26, 2013 @ 11:46
    Markus Johansson
    0

    Hmm...

    Same null exception in 4 as in the Fiddler trace?

    Do you have the configuration set up correctly? Is there a "/config/newsletterStudio.config" file?

    Is there a newsletter studio-section in your root web.config?

    I bet this is due to permission-errors and that Newsletter Studio did not have permissions to touch web.config during the install?

  • Tobias Lopez 64 posts 210 karma points
    Apr 26, 2013 @ 11:54
    Tobias Lopez
    0

    There is no newsletterStudio.config file and also no section in the web.config...

  • Markus Johansson 1760 posts 5141 karma points c-trib
    Apr 26, 2013 @ 11:56
    Markus Johansson
    0

    Great!

    Then thats the problem. Please make sure that your permission settings is correct.

    http://our.umbraco.org/wiki/reference/files-and-folders/permissions

  • Tobias Lopez 64 posts 210 karma points
    Apr 26, 2013 @ 11:57
    Tobias Lopez
    0

    The permissions are correct

  • Markus Johansson 1760 posts 5141 karma points c-trib
    Apr 26, 2013 @ 12:02
    Markus Johansson
    0

    If the installer would have had the permissions set correctly it would have created a section in web.config which would have added the "/config/newsletterStudio.config"-file.

    So please try to give full access to web.config and try again.

    / m

  • Tobias Lopez 64 posts 210 karma points
    Apr 26, 2013 @ 12:10
    Tobias Lopez
    0

    All Folders and the web.config have full access.

    I install Umbraco 6.0.4 via Webmatrix and it works. I copied the /config/newsletterStudio.config file and the sections in the web.config.

    Now it works, but that isn't a solution...

  • Markus Johansson 1760 posts 5141 karma points c-trib
    Apr 26, 2013 @ 13:26
    Markus Johansson
    0

    Hi again!

    Hmm, just to verify. Did you make a clean Umbraco 6.0.4-install using WebMatrix and then installed Newsletter Studio? And that worked?

    From there you copied over the section-lines to web.config and the newsletterStudio.config-file to the project that you had problems with?

    I agree that this is not a good solution but I'm also 99.9% sure that the problem was/is releated to permissions/enviroment-settings. 

    Good to hear that you finally got it working tough.

    // m 

  • Tobias Lopez 64 posts 210 karma points
    Apr 26, 2013 @ 13:33
    Tobias Lopez
    0

    Jap, exactly.

    This permission thing is a known problem with our hoster...

  • Markus Johansson 1760 posts 5141 karma points c-trib
    Apr 26, 2013 @ 13:36
    Markus Johansson
    0

    Ahh I see! 

    But what did you mean with "Now it works, but that isn't a solution..."?

    Is there anything that I can do you improve this or help you out?

    // m 

  • Pedro Adão 43 posts 80 karma points
    Nov 18, 2019 @ 12:27
    Pedro Adão
    0

    Hi,

    Had the same error

    2019-11-18 11:45:00,686 [P6248/D2/T104] ERROR NewsletterStudio.Umbraco.WebAPI.NewsletterController - Unhandled controller exception occurred System.NullReferenceException: Object reference not set to an instance of an object. at NewsletterStudio.Infrastucture.Services.NewsletterService.Save(NewsletterViewModel vm)

    I didn't had the

    <newsletterStudio configSource="config\newsletterStudio.config" />
    

    and

    <section name="newsletterStudio" type="NewsletterStudio.Bll.Configuration.NewsletterStudioConfig, NewsletterStudio, Version=2.1.9.6, Culture=neutral, PublicKeyToken=null" allowLocation="true" allowDefinition="Everywhere" allowExeDefinition="MachineToApplication" overrideModeDefault="Allow" restartOnExternalChanges="true" requirePermission="true" />
    

    in my root web.config file.

    Thank you for the help, Best regards, Pedro

  • Markus Johansson 1760 posts 5141 karma points c-trib
    Nov 18, 2019 @ 13:38
    Markus Johansson
    0

    Thanks for sharing!

    Sounds like permissions during install - quite a common thing.

    Let us know if you have any other issues =D

Please Sign in or register to post replies

Write your reply to:

Draft