且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何使用Windows身份验证在WPF中实现客户端应用程序服务?

更新时间:2023-10-17 22:42:58

我的方案解决了问题。



我最终使用了代码正如我原先提到的那样。但为了使其工作,我需要创建一组表格,如http://msdn.microsoft.com/en-us/library/bb384312.aspx中所述。



然后我使用这组表来存储用户/角色信息,而不是使用aspnet成员资格数据库。



添加这些表删除了错误异常无效的对象名称'UserProperties',因为'UserProperties'是其中一个表的名称。
Problem solved for my scenario.

I ended up using the code exactly as I mentioned originally. But in order to make it work, I needed to create a group of tables as mentioned in http://msdn.microsoft.com/en-us/library/bb384312.aspx.

Then instead of using the aspnet membership database, I use this set of tables to store User/Role information.

Adding those tables removed the error exception of "Invalid object name 'UserProperties'", since 'UserProperties' is the name of one of the tables created.