What DB required to make the Silverlight Business Application template work?

后端 未结 2 1014
星月不相逢
星月不相逢 2021-01-27 00:14

I\'ve been trying to run the Silverlight Business Application template but it fails when I try to register. I have SQL Express with an MSSQLSERVER instance and I\'ve defined th

相关标签:
2条回答
  • 2021-01-27 00:44

    You need the aspnetdb database created by running aspnet_regsql.exe against a SQL Server instance called SQLExpress - this can be found in the LocalSqlServer connection string in machine.config. Or by replacing the LocalSqlServer connection string with something that points to your SQL instance. Something like this:

    <remove name="LocalSqlServer"/>
    <add name="LocalSqlServer" 
         connectionString="Data Source=YOURCOMPUTER;Initial Catalog=aspnetdb;Integrated Security=True" 
         providerName="System.Data.SqlClient"/>
    
    0 讨论(0)
  • 2021-01-27 00:51

    Don't mess with machine.config Go to Silverlight-TV-51-Debugging-and-Deploying-WCF-RIA-Services

    then do this:

    In IIS under Windows 7, Select the application pool and then "advanced settings." Under "process model" find "Load User Profile" and set it to true.

    SQL should now load under the default app pool account.

    0 讨论(0)
提交回复
热议问题