ASP.NET debugging three axes: first

zhaozj2021-02-11  171

ASP.NET debugging three axes: first

http://www.tongyi.net Author: Wang Hengbin Source: www.51dotnet.com Hits: 6093

The person who has used ASP's debugging should be deep memory. In the entirety of the whole code, it is difficult to know. Now Microsoft launches an ASP update product ASP.NET. For the benefits of ASP.NET, I think a lot of websites have already introduced almost, but it is not much for the debugging of ASP.NET. So, I wrote this article with my personal experience. Because, I also exposed ASP.NET soon, the wrong leaks are inevitable, please pay more. well, let's get back to business. The first trick: Configure config.web, when we write a good web page, ASP.NET will tell us on the page, but it is wrong, it is not prompted. In order to make ASP.NET further prompt us to go wrong information. We need to edit configuration information in config.Web. There may be many people who have just contacted ASP.NET don't know how config.web files. Then I will introduce it by the way. Config.Web is a configuration file for ASP.NET, which stores all configuration information about ASP.NET. When an ASP.NET page is executed, it will look for this file first to the directory where you are, if you are not found, you will find the previous directory, until the wwwroot directory. If all, it will call the config.Web file in the x: /winnt/microsoft.net/framework/v1.0.2204 directory (x is the system directory). So, if you want to change all the configurations, you should change the config.web in the Winnt directory. In addition, when you open config.web, you will find that this is an XML structure configuration file. Ok, the introduction is so much, go back to our theme. The first step you have to do now is: Open or create a config.Web file. We separate: If you are new, you need to create a new document with a text editor, then enter the following statement in the inside: After you will enter the file name config.Web, you can save it to the same folder as the current page. If you want to modify a already existing config.Web file, you only need to open it with a text editor, then enter anywhere between and : Now you can look at the prompt information of the error page. How, it's not the same! Ok, this first trick tells this, what problems are welcome to contact me, let's see you next time!

转载请注明原文地址:https://www.9cbs.com/read-5464.html

New Post(0)