Can Visual Studio automatically connect to my Azure Virtual Applications?

I have an Azure solution that I want to debug in Visual Studio 2010. I have two MVC sites configured as virtual applications in one web role - this structure makes sense in terms of cost and URL. Virtual application workflows are not automatically deployed, and therefore VS does not join it. After you click the URL of the virtual application (i.e. localhost / app1) in the browser, a new w3p process will start, and I can manually bind it. It's just interesting if someone out there has done this before, and you have a hint on how to automatically join the process.

A related message that makes it sound like you have to do it manually: http://social.msdn.microsoft.com/Forums/uk/windowsazuredevelopment/thread/f1c5d72b-9196-480e-ace6-3c9063be79a7

+3
source share
2 answers

This is not Azure, but you can call a breakpoint when the application starts:

    protected void Application_Start()
    {
        #if DEBUG
        System.Diagnostics.Debugger.Break();
        #endif

        ...
    }

And you could try to combine this with a launch task that only starts when you are in the emulator and that gets into the URL of both web applications (for example, using wget.exe). This will create the w3wp process by starting Debugger.Break.

Resource: http://blog.smarx.com/posts/skipping-windows-azure-startup-tasks-when-running-in-the-emulator

0
source

Cloud . , , , .

( , SDK Local Cloud. Local Cloud, .)

0

All Articles