从Windows服务更新ASP.Net会员 [英] Update ASP.Net membership from windows service

查看:129
本文介绍了从Windows服务更新ASP.Net会员的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在为一个物业管理公司的一个项目。有后端系统存储所有住户及物业投资组合,以及前端的网站,允许用户查看自己的包,服务请求等。

I am working on a project for a property management company. There is the back end system that stores all of the tenants and property portfolios, and a front end website that allows users to view their packages, service requests etc.

我需要写一个窗口服务,拉他们的信息从后端并将其放置到会员数据库。

I need to write a windows service that pulls their information out of the back end and place it into the membership database.

我无法弄清楚如何配置服务连接到成员资格提供程序。

I cannot figure out how to configure the service to connect to the membership provider.

推荐答案

您基本上可以用它作为你的Web应用程序,他们关键是,你必须为你的应用程序和Web应用程序相同的machineKey值。否则,密码将不加密或解密的适当方式。

You can basically use it as you were with the web application, they key is that you must have the same machinekey values for your application AND the web application. Otherwise the passwords will not encrypt or decrypt in the proper manner.

下面是一个教程,可以帮助您了一点就用它从Windows应用 。这个过程应该是相同的,您的Windows服务。

Here is a tutorial that might help you out a bit on using it from a windows app. The process should be the same for your windows service.

这篇关于从Windows服务更新ASP.Net会员的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆