Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to configure net for virtual host

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

Today, I will talk to you about how to configure net for virtual hosts. Many people may not know much about it. In order to let everyone know more, Xiaobian summarized the following contents for everyone. I hope everyone can gain something according to this article.

This article is about deploying ASP.NET membership on a virtual host. It is compiled according to the sharing of cloud community authors for everyone to learn and refer to.

Because ASP.NET membership uses dbo users to access the database by default, deploying membership to a virtual host usually results in an item that cannot be accessed, causing the membership to fail to work properly. The following describes how to solve this problem.

1. When establishing the membership database on the virtual space (the basic virtual host sql server database will not provide dbo users), all [dbo]. and dbo., so that when the membership database is built, all objects will be created using the current connection user.

2. Download the membership source code from microsoft. After default installation (recommended), you can find the source project under C:Program FilesASP. NET Provider Toolkit SQL Samples, add the project to your solution, and reference the project in the project you need to use.

3. Rewrite membership, remove dbo. from all source code in memeorship project, and regenerate membership project. At this time, a ProviderToolkitSampleProviders.dll file will be generated under the bin directory of your project.

The membership section in the web.config file is as follows:

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report