views:

61

answers:

3

I have an ASP.NET project which gives me the following exception if I try to run it

alt text

Where should I "call" it before I can use it ?


There is no global.asax in my solution

+2  A: 

As it should be called only once, you should put it in your global.asax Application_Start function IMO

Gregoire
+1  A: 

This method is from Class CloudStorageAccount that provides methods for managing account information for storage services.

SetConfigurationSettingPublisher Method should be called once to set up the environment.

Try calling it in Global.asax in Application_Start Method.

This link at MSDN might help

Asad Butt
A: 

It turns out that I had set a web-role as the startup project, and that made the "onstart" funcition not run when it was supposed to, thus not setting my connection.

MarceloRamires