Copied to clipboard

Flag this post as spam?

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


  • John Dawson 24 posts 146 karma points
    Nov 09, 2018 @ 09:29
    John Dawson
    0

    Can't open Umbraco on localhost

    Hi, I have started work a couple of weeks ago as a web dev and the platform has been created in Umbraco CMS. I have not used this before so got the web dev company to clone me a repo that I can run locally. This has been working fine until today when I got into work and it won't start, with the error: enter image description here

    I open the folder from Visual Studio Code and the DB connects with Microsoft SQL Management Studio, and then run localhost in my browser with Ctrl-F5 from within VS Code. This has been working fine for me for the last two weeks but now suddenly won't connect.

    Another thing to mention is that, because of space restrictions on my work computer, I have been running the repo from an external HD. I disconnected and took this home last night, but I have done that before with no issues when I reconnect it. Can anyone help diagnose this, please? I'm getting a lot of 404s within the browser...

    Thanks for your help,

    John

  • Alexander Croner 71 posts 282 karma points
    Nov 09, 2018 @ 09:46
    Alexander Croner
    0

    This is a problem with the connection to the database. How is the database set up?

  • John Dawson 24 posts 146 karma points
    Nov 09, 2018 @ 10:00
    John Dawson
    0

    The database was imported from a BAK file into SQL Server Management Studio and connects using SQL Server Authentication with a new login I created with full permissions called serverlogin.

    Here's the Connection String:

    <add name="umbracoDbDSN" connectionString="server=NICA10\SQLEXPRESS;database=voicenorth_20180611;user id=serverlogin;password='***'" providerName="System.Data.SqlClient" />
    

    Do you need any more info? I'm not familiar with Management Studio and followed a guide online that I found to get connected (which I can't find now), but this method has been working fine for the last couple of weeks and I haven't changed anything...

  • Mats Stam 61 posts 210 karma points
    Nov 09, 2018 @ 10:51
    Mats Stam
    0

    Believe this is usually when you fail to close the connections to the database. Have you done custom code that uses the database? Make sure you close your connections when you are done with them :)

    I believe the default value is 100 or somesuch. Can try and increase it but if you're having that many connections to your DB I'd wager the problem lies elsewhere :)

    Can set it by using Max Pool Size=200 in your connectionstring. Something like this:

     <add name="Name" providerName="System.Data.SqlClient" connectionString="Data Source=ServerName;Network Library=DBMSSOCN;Initial Catalog=DatabaseName;user=UserName;password=Password;Max Pool Size=200;Pooling=true;"/>
    

    Although I've never done this myself, so not 100% sure it works :P

    But if you make sure you close your connections after you've finished using them you should be fine :)

  • John Dawson 24 posts 146 karma points
    Nov 09, 2018 @ 11:32
    John Dawson
    0

    Okay, so increasing the Pool size did make a slight change as in that it now loads the page like this with 404s everywhere: enter image description here

    It did do this a couple of times before I made the Pool edits to the Connection String, so I think the issue is unrelated to that. What I don't understand is why it would suddenly stop working after two weeks when before it was working fine? I haven't made any changes. The 404 files it's complaining about DO exist because I have found them in the folder.

  • Mats Stam 61 posts 210 karma points
    Nov 09, 2018 @ 12:20
    Mats Stam
    0

    That sounds really strange...

    Could it be you have a faulty <base href=""> tag thats doing funny stuff? Or are they actually in fact at the "/css/default.min.css"? Are you only getting the 404:s on the css files? Or other files too?

  • John Dawson 24 posts 146 karma points
    Nov 12, 2018 @ 08:59
    John Dawson
    0

    The problem is that I haven't set this build up, it's a clone of someone else's work to allow me to get familiar with Umbraco and the web platform that I'm going to be working from.

    I'm also getting 404s on js files and images.

    Thanks for your help.

  • Mats Stam 61 posts 210 karma points
    Nov 12, 2018 @ 10:15
    Mats Stam
    1

    Sorry, but it's incredibly hard to figure this out without seeing the actual setup... You do have the umbraco and umbraco_client folder, right?

    The CSS and JS you are refering to is also the ones that are used for the actual site, correct?

  • John Dawson 24 posts 146 karma points
    Nov 12, 2018 @ 10:57
    John Dawson
    0

    Yeah, I figured it might be nigh impossible to diagnose! I have just reverted to a previous version and now it's fine. Have lost a few edits but never mind.

    Thanks anyway for your help!

  • Henry_Malone 2 posts 72 karma points
    Nov 13, 2018 @ 19:13
    Henry_Malone
    0

    And I was very strongly suggested options helped solve the problem

Please Sign in or register to post replies

Write your reply to:

Draft