Deploy the MVC3 application which using EF to virtual host RRS feed

  • Question

  • I want to deploy my app MVC3 app using EF to virtual host.

    My connection string is like this " 

        <add name="fantasyvi"

    But it always return the error "provider: SQL Network Interfaces, error: 26 - locating the special server/instance failed."

    video edit
    Wednesday, September 28, 2011 5:43 AM


  • Hi Tony,

    I got this link before. You mean it doesn't work when you put the connetion string in web.config, right?

    Please check are there any other app.config files in your project? If there is, please add the connection string in it too.

    BTW, please ensure the name of connection string should be same with context name.

    If you also couldn't work it out, please demo your project(T-sql) to ping here: v-alache@microsoft.com

    Have a nice day.

    Alan Chen[MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    • Marked as answer by Tony2008 Saturday, October 1, 2011 10:14 AM
    Friday, September 30, 2011 7:32 AM

All replies