In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-31 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/03 Report--
This article mainly explains "how to understand VS2010 publishing Web website technology". The content of the article is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn "how to understand VS2010 publishing Web website technology".
Step 1: right-click the Web application name (for example: newsSystem) in solution Explorer-- "Click publish, as shown in the figure:"
Step 2: in the pop-up dialog box, the release method is selected: file system, the target location is customized (such as: select the desktop test folder), check the "Delete all existing files before publishing" check box, and then click publish. As shown in the figure:
Add: in the second step [publish Web] section, select a folder that is not the location of the project in the [target file].
Next we will see the files we need under the test folder. The following figure shows the files under the test folder compared with the files in the original project:
Step 3: publish the website in IIS. Right-click the computer-- "manage, open the computer management window, and click Internet Information Services (IIS) Manager under Services and applications, as shown in the figure:"
Step 4: right-click the application pool, add the application pool, in the pop-up "add application pool" window, fill in the name,. NET Framework version according to your development program used. NET Framework version, OK.
Step 5: right-click "website", add a website, in the "add website" window, fill in the name of the website, the application pool select the new application pool in the previous step, the physical path points to the folder output in the second step, "Link is" select a specific user, and enter your user name and password, IP address fill in the local IP. Just be sure. As shown in the figure:
So far, our Web website has been released successfully, and we can enter the URL through the browser to view our website.
Detailed explanation of the problem of VS2010 releasing Web website
If you are better set up in all aspects, after reading the above article, your website has been released and can be browsed in the local area network. Usually, however, if you release it for the first time, it shouldn't go so well. The key points are as follows:
The following situations may occur when you enter a set IP address + port number in the address bar.
Problem one, an ASP.NET setting that does not apply in integrated managed pipe mode is detected.
Solution: open IIS, select Application Pool, and you will see an item in the operation bar on the right that is "set Application Pool default Settings". Click enter, set [enable 32-bit applications] to true, and set [managed Pipeline Mode] to Classic. As shown in the picture
Problem 2, the page you requested could not be provided due to the ISAPI and CGI restrictions list setting of the Web server.
Solution: open IIS, select the root directory, double-click [ISAPI and CGI restrictions], and set both [ASP.NET v4.0.30319] to allow. As shown in the picture
Problem three, there are no accessible tables. Make sure that at least one data model is registered and the base shelf is enabled in Global.asax, or implement a custom page.
Solution: open the project, open the Global.asax file, and we can see the following under the RegisterRoutes method
/ / important: data model registration / / uncomment this line and register the LINQ to SQL model for ASP.NET Dynamic Data. / / to set ScaffoldAllTables = true, you need to meet the following conditions, that is, make sure that you want all tables in the data model to support shelves (that is, templates). To control the / / base of each table, create a partial class for the table and apply the / / [ScaffoldTable (true)] feature to the partial class. / / Note: be sure to change "YourDataContextType" to the / / name of the application's data context class. / / model.RegisterContext (typeof (YourDataContextType), new ContextConfiguration () {ScaffoldAllTables = false})
After annotating the code snippet, replace YourDataContextType with the context you created, set ScaffoldAllTables to true, and I use the data part written by Linq to Sql. It looks like this after the revision.
DefaultModel.RegisterContext (typeof (BmsContextDataContext), new ContextConfiguration ()
After the modification, don't forget to republish it.
Problem 4, unable to open the database, login failed
Solution: when this problem came out, I was a little confused, thinking that it was the problem of IIS setting. Later, when I took a closer look, I felt vaguely familiar. By looking at the database connection, I found that there was a problem on the connection database, which had nothing to do with the IIS setting.
After solving the above problems, log in to the published website again and be able to visit it normally, and then verify it on other machines on the same LAN, and there is no problem.
Thank you for your reading, the above is the content of "how to understand VS2010 publishing Web website technology". After the study of this article, I believe you have a deeper understanding of how to understand VS2010 publishing Web website technology, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.