ASP. NET MVC DDDFW the way to publish IIS

Source: Internet
Author: User

1. First Windows Server 2012 opens Server Manager--dashboards--add roles and features

2 Add some features of IIS

3 download SQL && VS for debugging on the server

4 Copy the local database to the server

5. Link the database engine--click Database--Attach Database

6. Click Security--Login--New Login--Select SQL Server Authentication (account password), select the default database (the database you just added), click Tab User Mapping (tick the database you just added)--state (allow)-- Complete

7. Right-click Select Server Properties--Security Server Authentication--Select SQL Server and Windows Authentication Mode--Finish

8. Open SQL Server Manager restart MSSQLServer service

9.sql Server Authentication link to see if it is successful.

10. Open the ASP.-Click Server Explorer--data connection--Right click to modify the connection--complete

11. At this time also need to modify the model layer of the App. Config link string, if not modified will appear Format of the initialization string does not conform to specification Starti NG at index 111.
Initialization of string error.

12. Clean-up, publish Web, and publish method (file system)-Click Publish

13. Open IIS--Add Web site--Modify the application pool to defaultapppool--> port (change to 8088, because 80 port is used for client sites)--OK

14. Click to browse the site if you see a server 500 error-click the website, right-click Edit Permissions-Security-Add the Everyone permission (if still 500 error, add IUSR, LOCAL SERVER, Iis_iusrs) permissions. Note that permissions require inheritance.

15. Get a Get method of connection database on the browser address bar, if <ExceptionMessage> user ' IIS apppool\defaultapppool ' login failed. </ExceptionMessage> error, modify IIS application pool defaultapppool--> Right-click Advanced Settings--process model--application pool identity-->localsystem-- > Completion

16. At this point some $http.get methods are already available to the client. For example, get the latest news, etc. post. But at this point you will find that if the system involves login registration some problems, there will be cross-domain issues.

XMLHttpRequest cannot load http://xxxxxxxxxx. Response to preflight request doesn ' t pass access control check:no ' Access-control-allow-origin ' header was present on the Requested resource. Origin ' http://127.0.0.1:8020 ' is therefore not allowed access.

Cross-domain issues occur with angularjs+ bootstrap, and there is no cross-domain issue with the jquery post link. The second is the ANGULARJS 8 ways to request. Try hard.

This completes the publication.

ASP. NET MVC DDDFW the way to publish 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.