How to use aspnet_regsql.exe

纵然是瞬间 提交于 2019-12-12 08:27:15

问题


I'm having problems Creating Users in a Silverlight Business Application that uses the Local IIS Web Server.

If I use the Visual Studio Development Server I have no problems, but once I check "Use Local IIS Web Server" in the properties page and run the application, whenever I try to create a new user using "login->Register now" I get an "Unable to connect to SQL Server" error.

I found a similar problem as mine and the solution was to use aspnet_regsql in the command prompt.

If I have to use this tool, then I don't know how to use it:

aspnet_regsql.exe -S DBServerName -U DBLogin -P DBPassword -A all -d DBName

What should I enter in these parameters:

DBServerName: I guess it's ".\sqlexpress"

DBLogin and DBPassword: Kind of a login and password for the database?

DBName: If I'm not using any particular database, then what?

Please, what should I do here?


回答1:


Navigate to the wizard(C:\Windows\Microsoft.NET\Framework[framework version]\aspnet_regsql) and launch it , you will be able to see a form appear and you can enter details here rather than using the command prompt.

Also within VS , from top menu select WEBSITE -> ASP.Net Configuration you should be able to see all your user and role details (you can tst the connectivity as this will pull of data based on your web.config/app.config settings)



来源:https://stackoverflow.com/questions/14733329/how-to-use-aspnet-regsql-exe

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!