Recently study the Chinese blog system CNBLOGSDOTTEXT with Dottext as prototype. Open CNBLOGSDOTTEXT project file CNBLOGSDOTTEXT.SLN (or dottextWeb.csproj) before using VS.NET, always prompted "Visual Studio .NET could not create or open the application. The problem is probably because there is no required installation on the local web server Component. Run the Visual Studio .NET installer and add web development components. The picture is as follows: Search with Google, there is an article on the personal blog of Mill to give a comparative formal solution, address is: http://www.cnblogs.com/mill2002/46814. HTML. In order to facilitate the reader, here is given here:
Reconfigure computers for Web development
Note All steps occur on the web server computer. 1. Confirm that IIS is installed. One of the methods is to open the Control Panel and select Internet Service Manager. If IIS is installed, you will be able to use this utility to stop and start it. If IIS is installed, on the Windows Control Panel, select Add or Remove Programs, then select Add / Remove Windows Components. In the list, select Internet Information Service (IIS) and continue to install. For more information, see Windows Help.
Safety Instructions When installing IIS, it is highly recommended that you ensure the security of the web server computer. For more information, see File WebServer.htm belonging to the installation document. The file is on the installation CD is Disk1 / Setup / WebServer.htm. After installing Visual Studio, you can also find this file at% install% / csetupmm / webserver.htm of the hard disk. 2. Install or reinstall .NET Framework. Run Visual Studio.net installation and select Option 1 "Windows Component Update". Note If you are sure that the current version of the .NET Framework is installed on the web server computer, you can skip this step. 3. Open Windows "Run" window and type the following to enable ASP.NET: ASPNET_REGIS.EXE / I prompts you to open the command window directly from the correct directory of the command. From the "Start" menu of Windows, point to Programs, Visual Studio .NET 2003, "Visual Studio .Net Tools, then select" Visual Studio .NET Command Tips ". Type ASPNET_REGIS / I after the window is opened. 4. Install the Visual Studio .NET server component. A. Run the Visual Studio .NET installation again and select Option 2 "Visual Studio .NET". Tips You can run the installation from the Control Panel, and select "Add or Remove Programs", select "Microsoft Visual Studio .NET" (the specific name will be slightly different according to the version and language installed), then click "Change / Delete". B. Select "Add or Remove Features". C. Open the Server Component node and select "Web Development". D. Click "Update Now!" 5. Safe lock for IIS, but then enable ASP.NET. If you are using IIS 5.0 running on Windows 2000 or Windows XP, you can use the IIS Locking Tool (Version 2.1).
In Windows Server 2003, you can set the application's security level in the IIS Manager. For more information on using IIS Manager and cancel ASP.NET applications, see Topic Visual Studio .NET Detecting ASP.NET applications and services in IIS have been locked. According to the above prompt, reload the IIS and .NET Framework, the result is still. Later, it was carefully compared with the steps in the installation instructions in CNBLogsDottext, and the virtual directory, delete, and add mapping in the IIS service manager, and add mapping. Finally, holding the mentality of the dead horse, with the highest-benzene violent means, that is, using a notepad (if it is a two-way format file, UltraEdit software) to open the cnblogsdottext.sln file, and the result is as follows in the head 3 line. String:
Microsoft Visual Studio Solution File, Format Version 8.00Project ( "{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DottextWeb", "http: //localhost/DottextWeb/DottextWeb.csproj", "{D5711AB8-BE34- 4D64-91A2-B68F310CA995} "
Suddenly the eyes are bright, the previous depression is swept away. When I was debugging, I was "cnblog" in the virtual directory of this IIS Service Manager for the CNBLogsDottext project, and VS.NET is looking for the DottextWeb virtual directory when loading the cnblogsdottext.sln file, which is of course not found. As a result, VS.NET reported a misunderstanding prompt prompt. The reason is found, manually modify the second line above and save exit. Use VS.NET to open the cnblogsdottext.sln file, and the result is all smooth, and the entire project is old and old, and it is listed in the "Solution Explorer" on the right.
I have a lot of announced web project packs on the Internet, and most of them don't comment on how to debug with the IDE editor. Of course, when using the IDE editor to debug your own code, the IDE editor is definitely not an error. However, after editing the package, after the package is released, the other people will play a different project name and the author's different project names, and there will be a variety of inexplicably wrong mistakes. Therefore, after we get the program code released by others, it is best to open its project profile with Notepad, of course, use UltraEdit in the binary format.
Finally, I went to Mill's personal blog to go shopping. I found that he also sent a relatively short English log. It is also a similar problem to VS.NET. I feel that I can go see it too much. The address is: http://www.cnblogs.com/mill2002/86300.html