Solution to connection failure of ASP. NET Website management tools under Silverlight 4

Source: Internet
Author: User

In Silverlight 4.0, an error occurs when you open the "Security" tab using ASP. NET Website management tool.:"SelectA problem may occur in the specified data storage zone because the server name or credential is invalid or the permission is insufficient. It may also be caused by the absence of the role manager function. Click the following button to redirect to the page where you can select a new data storage area. The following message may help diagnose the problem: unable to connect to the SQL Server database."

 

This problem occurs because the ASP. NET Website management tool cannot connect to the configuration database. After the database is created, you need to configure it before applying the database. Because vs2010 web server is used and IIS is not used, you only need to configure it.. net global configuration file, which is used by the web project of Silverlight 4.0. the Net Framework version is 4.0. Therefore, the configuration. net 4.0 framework. config to solve the above problem.

 

The procedure is as follows:

1. Create an aspnetdb Database
Open the Microsoft Visual Studio 2010 -- Visual Studio Tools -- Visual Studio command prompt (2010), enter "aspnet_regsql", and create the aspnetdb database as prompted.
 
2. modify the configuration file
Open the directory "C: \ WINDOWS \ Microsoft. NET \ framework \ v4.0.30319 \ config", find the machine. config file, go to the connectionstrings configuration section, and modify the content as follows:
<Add name = "localsqlserver" connectionstring = "Data Source = (local); initial catalog = aspnetdb; Integrated Security = true" providername = "system. Data. sqlclient"/>
 
3. Save the configuration file and restart ASP. ne.TWebsite management tools

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.