1

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

3 Answers 3

2

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

Sign up to request clarification or add additional context in comments.

Comments

1

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

Comments

0

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.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.