Teach you how to publish your own website

Source: Internet
Author: User
Tags visual studio 2010

Teach you how to publish your own website

Today I have studied how to publish a web site. I have never been patient before. I am not in the mood when I encounter some problems. I have finally understood it with patience. In fact, there are still a lot of problems encountered, and there is no full explanation on the Internet, so I will summarize them based on my own methods and other people's methods.

Environment: Win7 system, Visual Studio 2010, IIS6.1

For details about the release, refer to the release link. Add: In the "publish Web" section of step 2, select a non-project folder in the "target file" area.

If you have set all the settings well, after reading the above Article, your website has been published and can be viewed in the LAN. However, it is usually not as smooth as the first release. Focus on the following:

When you enter the specified IP address and port number in the address bar, the following situations may occur.

Problem 1: ASP. NET settings that are not applicable in integrated managed pipeline mode are detected.


Solution: Open IIS and select the application pool. One of the operations column on the right is set application pool default settings. Click to enter, set enable 32-bit application to true and managed pipeline mode to Classic.


Problem 2: the page you requested cannot be provided due to the "ISAPI and CGI restrictions" list settings on the Web server.


Solution: Open IIS, select the root directory, double-click ISAPI and CGI restriction, and set ASP. NET v4.0.30319 to allow.



Question 3: No table is accessible. Make sure that at least one data model is registered in Global. asax and the base frame is enabled, or the custom page is implemented.


Solution: Open the project and open the Global. asax file. In the RegisterRoutes method, we can see the following content:

1

2

3

4

5

6

7

8

9

// Important: Data Model Registration

// Cancel the comment on this line and register the LINQ to SQL model for ASP. NET Dynamic Data.

// To set ScaffoldAllTables to true, the following conditions must be met,

// Determine that all tables in the data model must support the base frame (Template ). To control

// Base shelf. Create a partition class for the table and

// The [ScaffoldTable (true)] feature is applied to partial classes.

// Note: Make sure that "YourDataContextType" is changed to

// Name.

// Model. RegisterContext (typeof (YourDataContextType), new ContextConfiguration () {ScaffoldAllTables = false });

After the code snippet is uninjected, replace YourDataContextType with the context created by myself, and set ScaffoldAllTables to true. I use the data written by Linq to SQL. It looks like this after modification

1

DefaultModel. RegisterContext (typeof (BmsContextDataContext), new ContextConfiguration () {ScaffoldAllTables = true });

After modification, do not forget to release it again.

Problem 4: The database cannot be opened and logon fails.


Solution: this problem was a bit confusing when it first came out. I thought it was a problem with IIS settings. Later, I took a closer look and thought I was familiar with it. I checked the database connection, it was found that there was a problem connecting to the database and it had nothing to do with IIS settings. The solution to this problem has been detailed in a previous article. When this problem occurs, it is solved in this way. You can refer to the following link: Success.

 


How can I publish my tutor information online?

Do you want to ask for a tutor or do you want to do a tutor?
You can go to Baidu to search for 51 instructors.
Register the student information or register as an instructor.

New Users learn how to build websites and how to create websites

It is recommended that you have the following conditions: Be Familiar with computer operations. It is better to use a computer for more than a year. You can type and understand basic computer knowledge. You can simply do it without being too stupid. Of course, these are not mandatory.
Phase 1: At the beginning, it is best to learn some Web editing software and basic web script syntax, such as Dreamweaver software, HTML syntax (Baidu: HTML entry), and CSS syntax (Baidu: CSS), so that you can learn more about the principles of creating and operating web pages. It is best to take this tutorial to learn and combine it with learning and production. It takes up to one week. If you have time to learn javascript script syntax (Baidu: javascript beginners ).
Phase 2: A complete website can be created after the software and basic syntax of the web page are used. Of course, to make the website more beautiful and more powerful, you need to learn some dynamic programming languages, commonly used ASP, PHP and ASP. NET, the latter two types are recommended. It should be ASP that will be eliminated in a while. The latter two types of programs differentiate themselves from searching online. I prefer to learn. NET, object-oriented, powerful functionality, Microsoft is powerful.
If you don't have the energy to learn these complex dynamic programming languages, you can use the ready-made website management system (also called website creation software, for example, the PageAdmin system, shopex system, and discuz system are all excellent. This is also a popular method that saves time and effort.
Stage 3: Develop a Website Based on your own knowledge, and you can develop a target website that someone else defines for you. At this point, you will become a real website developer.
Tool 1. A website must be published online, so you must first apply for a space. The free space is not very stable, the capacity is small, and the application is not good, it is recommended that you purchase a personal space at the server company. You can install IIS on your computer to simulate server running, if you are interested in Baidu, it is very easy. 2. firework or photoshop is recommended for image processing software and Dreamweaver is recommended for HTML editing software. Of course, if you have HTML syntax, it will be more efficient to directly edit the Event Book.
We recommend that you download a simple web page, open it in the production software, observe the composition of the web page, and imitate it to fill in various elements, in practice, the progress will be much faster with the help of jiaocheng.
In fact, it is not difficult to create a webpage, but to make a distinctive webpage, it is not a task of overnight.
The eight steps of website design have become a simple task because more and more tools are available and convenient to use, it is not like writing the source code of a line by hand. Generally, after a short period of study, beginners can learn how to create webpages. Therefore, they think that creating webpages is very simple, so they rush to create their own websites. However, after the preparation, they will compare with others, I found my website very rough. Why? As the saying goes: "You cannot eat hot tofu in a hurry ". Building a website is like building a building. It is a system project and has its own specific workflow. You only need to follow this step by step, in order to design a satisfactory website.
1. Determine the website theme is the main content of your website. A website must have a specific theme. Especially for personal websites, you cannot make the content as big and comprehensive as a comprehensive website. You do not have this ability or energy. Therefore, you must identify the content that you are most interested in, in this way, users can be deeply impressed. The theme of a website is uncertain. Any content you are interested in can be used, but the theme must be clear and the content within your theme should be big, complete, and refined.
2. After the subject of the website is clarified, You need to collect materials on the subject. As the saying goes: "It's hard to be a man without rice ". If you want your website to be flesh-and-blood and attract users, You need to collect materials as much as possible. The more materials you collect, the more you will create a web site... the remaining full text>

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.