Some considerations for deploying an ASP. NET MVC Project on IIS

Source: Internet
Author: User
Tags management studio sql server management sql server management studio

1. The published Web site cannot apply the Web. config configuration.

Workaround:

Permissions for the physical path folder of the Web site, if the IIS application pool is identified as applicationpoolidentify, you need to add the IIS_IUSRS user to the folder and allow 5 permissions in the

2.1 LocalDB database cannot be deployed

2.2 Databases created by EF cannot be managed through SQL Server Management Studio when using the LOCALDB database

Workaround:

Do not use the default instance, create a shared instance yourself, and add the appropriate user rights

Specific steps: (Take localdb2012 as an example)

1. Open cmd, execute the following three commands separately in order to create and enable shared instances (SqlLocalDB.exe generally in the "C:\Program Files\Microsoft SQL Server\110\tools\binn" directory)

" InstanceName "  "InstanceName" "shareinstancename "  " InstanceName "

2. Open SQL Server managerment Studio using Windows Authentication Connection (LOCALDB) \.\shareinstancename (note that the data source name format of the shared instance is a bit more than the normal instance)

3. Select "Security"----"Login name"----Right-------"New Login"

If the identity of the application pool for IIS uses "Applicationpoolidentify", use "IIS apppool\ application pool name" as the login name

Set the server role----check public and sysadmin

4. Remember to modify the data source name of the connection string in the project: source= (LOCALDB) \.\shareinstancename

Some considerations for deploying an ASP. NET MVC Project on IIS

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.