If you are receiving similar message, then there is code some part which is trying to determine your location. In my case problem was with Bing maps:


In other cases search for GeoLocation.

If you are receiving error message as in title, then in connection string add:


Something like:

<add name="MyDbContext" 
  Data Source=myServer;Initial Catalog=MyDb;
  Persist Security Info=True;
  Integrated Security=True;
" />

Writing HTML Helpers
page 330,
book Professional ASP.NET MVC 3

For example in: \MvcApplication1\MvcApplication1\Core\Extensions.cs write something like:

using System;
using System.IO;
using System.Web.Mvc;

namespace MvcApplication1.Core
    public static class HtmlExtensions
        private class Extensions : IDisposable
            private readonly TextWriter _writer;

            public Extensions(TextWriter writer)
                _writer = writer;

            public void Dispose()
        } //private class Extensions : IDisposable

        //note that this part is not under private class Extensions : IDisposable
        public static IDisposable Begin(this HtmlHelper html)
            var writer = html.ViewContext.Writer;
            return new Extensions(writer);

And in: \MvcApplication1\MvcApplication1\Views\Stanko\Index.cshtml Something like:

@using (Html.Begin())

after starting app in the HTML source I will see tag <table></table> from here

In Global.asax.cs RegisterRoutes change to:

public static void RegisterRoutes(RouteCollection routes)
		"Default", // Route name
		"{controller}/{action}/{id}", // URL with parameters
		new { controller = "Default1", action = "Index", id = UrlParameter.Optional } // Parameter defaults


This mean that Default1 controller will be called, action Index (also view)... It is called from:

protected void Application_Start()

and Application_Start() is place where application begans