{"action":"created","issue":{"url":"https://api.github.com/repos/fsprojects/SQLProvider/issues/283","repository_url":"https://api.github.com/repos/fsprojects/SQLProvider","labels_url":"https://api.github.com/repos/fsprojects/SQLProvider/issues/283/labels{/name}","comments_url":"https://api.github.com/repos/fsprojects/SQLProvider/issues/283/comments","events_url":"https://api.github.com/repos/fsprojects/SQLProvider/issues/283/events","html_url":"https://github.com/fsprojects/SQLProvider/issues/283","id":160523314,"number":283,"title":"NullReferenceException when using connectionStringName in web application","user":{"login":"TheJayMann","id":736769,"avatar_url":"https://avatars.githubusercontent.com/u/736769?v=3","gravatar_id":"","url":"https://api.github.com/users/TheJayMann","html_url":"https://github.com/TheJayMann","followers_url":"https://api.github.com/users/TheJayMann/followers","following_url":"https://api.github.com/users/TheJayMann/following{/other_user}","gists_url":"https://api.github.com/users/TheJayMann/gists{/gist_id}","starred_url":"https://api.github.com/users/TheJayMann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TheJayMann/subscriptions","organizations_url":"https://api.github.com/users/TheJayMann/orgs","repos_url":"https://api.github.com/users/TheJayMann/repos","events_url":"https://api.github.com/users/TheJayMann/events{/privacy}","received_events_url":"https://api.github.com/users/TheJayMann/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-06-15T21:03:37Z","updated_at":"2016-06-20T18:08:42Z","closed_at":null,"body":"When attempting to use connectionStringName instead of connectionString in a web application, a null reference occurs when attempting to create the type.  I have found this appears to occur in the getConStringFromConfig function, when it attempts to invoke entryAssembly.Location, as entryAssembly will be null when the code is launched from a non-managed process (such as IIS or IIS Express).  It appears that if isRuntime were false, it would not have attempted to access any properties on the null object.  I'm not exactly sure what I would have to do to pass false to isRuntime, otherwise I would have tried that.  Also, changing the condition to (isRuntime && entryAssembly <> null) would help as well, as, even if the type provider is compiled with isRuntime = true, if the entryAssembly is null, there is no point attempting to access properties of entryAssembly."},"comment":{"url":"https://api.github.com/repos/fsprojects/SQLProvider/issues/comments/227222166","html_url":"https://github.com/fsprojects/SQLProvider/issues/283#issuecomment-227222166","issue_url":"https://api.github.com/repos/fsprojects/SQLProvider/issues/283","id":227222166,"user":{"login":"colinbull","id":585546,"avatar_url":"https://avatars.githubusercontent.com/u/585546?v=3","gravatar_id":"","url":"https://api.github.com/users/colinbull","html_url":"https://github.com/colinbull","followers_url":"https://api.github.com/users/colinbull/followers","following_url":"https://api.github.com/users/colinbull/following{/other_user}","gists_url":"https://api.github.com/users/colinbull/gists{/gist_id}","starred_url":"https://api.github.com/users/colinbull/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/colinbull/subscriptions","organizations_url":"https://api.github.com/users/colinbull/orgs","repos_url":"https://api.github.com/users/colinbull/repos","events_url":"https://api.github.com/users/colinbull/events{/privacy}","received_events_url":"https://api.github.com/users/colinbull/received_events","type":"User","site_admin":false},"created_at":"2016-06-20T18:08:42Z","updated_at":"2016-06-20T18:08:42Z","body":"Wrong, for web applications it should be using webconfigurationmanager. And I don't think it should be using the assembly location thing at all I don't believe it is required now. "}}
{"actor":{"display_login":"colinbull"}}