none
Azure-blob NBLOG config/settings.json could not be found

    Question

  • On github there is an open-source project called NBlog. Its description is “A lightweight blog engine built with ASP.NET MVC5, Razor, jQuery and C#”. Once downloaded, opened in Visual Studio Community edition 2013, and I hit F5 (RUN) I get a yellow page of death saying the following

    I have posted an issue on github but have gotten no response.

    https://github.com/ChrisFulstow/NBlog/issues/28

    As you can tell, I have established an Azure account, along with storage. I created a blob container called blustor1.

    I found this blog post detailing

    https://alexandrebrisebois.wordpress.com/2012/06/24/uploading-an-object-as-json-to-windows-azure-blob-storage/

    something almost identical, except the following line of code

    GetBlockBlobReference(blobAddressUri);

    vs.

    GetBlockBlobReference(relativePath); 

    AzureBlobRepository.cs line 54

    Alex uses an absolute URI as where NBlog uses a relative path

    Can someone help me this newbie to Azure?


    Danny Rosales


    Thursday, June 11, 2015 2:44 PM

All replies

  • I added the connection string value but it still did not fix it. 

     <add name="AzureBlobEndpointURL" connectionString="https://xxx1.blob.core.windows.net/json" />
      </connectionStrings>



    Danny Rosales

    Thursday, June 11, 2015 3:44 PM
  • Okay, just discovered the error message refers to the following file which in the github project which is also found on my hard-disk; 

    NBlog/NBlog.Web/App_Data/localhost/Config/settings.json

    Here is it's content

    {
    	"Site": "localhost-8080",
    	"Theme": "Default",
    	"MetaDescription": "NBlog, an ASP.NET MVC 3.0 blog platform.",
    	"Heading": "NBlog",
    	"Title": "NBlog",
    	"Tagline": "A blog platform for ASP.NET MVC developers",
    	"Crossbar": "ASP.NET MVC 3.0, Razor, JSON.NET, Markdown, Autofac, AntiXSS, HTML5 & CSS3, OpenID, NSubstitute, ELMAH",
    	"Admins":
    	[
    		"http://cxfx.myopenid.com/"
    	],
    	"GoogleAnalyticsId": "",
    	"TwitterUsername": "twitter",
    	"ContactForm":
    	{
    		"RecipientName": "NBlog Admin",
    		"RecipientEmail": "nblog-admin@mailinator.com",
    		"Subject": "NBlog contact form"
    	},
    	Cloud:
    	{
    		"ConsumerKey": "DropBox_Key",
    		"ConsumerSecret": "DropBox_Secret",
    		"UserToken": "DropBox_UserToken",
    		"UserSecret": "DropBox_UserSecret"
    	},
    	Disqus:
    	{
    		"Shortname": "",
    		"DevelopmentMode": true
    	}
    }


    Danny Rosales

    Sunday, June 14, 2015 12:11 PM
  • Hi Danny,

    Would you be able to let us know how you set this up?
    If you could provide the link from where you downloaded the project, would be helpful in us trying to reproduce the issue and help troubleshoot it.

    Regards,
    Malar.

    Thursday, June 18, 2015 11:45 AM