Problems encountered in the development of DELPHI2005 asp.net program and related solutions
question:
When creating a new project, select asp.net web application, then follow the default settings, and then click Run. The error message in the browser "This page cannot be displayed". Close the browser and return the error message in the delphi2005 development environment is as follows:
Solution process:
Due to the newly installed system, the default WEB SERVER is IIS through tools->options->html/asp.net options->asp.net. Install IIS and run it again, and the failure remains;
Check the delphi2005 help file and see that cassini web server is also available, download the cassini web server and install it, modify the cassini web server port in tools->options->html/asp.net options->asp.net to change the cassini web server port to other ports, such as 8087, Then modify PRoject->options->debugger->asp.net->host with web server->server as cassini web server, and try to run it again. The error "This page cannot be displayed" is reported in the browser. Close the browser and return to the delphi2005 development environment The error message is as follows:
Change it to another port number, and the error message is similar, but the 8087 in the error message becomes the changed port number, and I have to give up trying to use the cassini web server; (If any expert understands it, I hope you can give me some advice, I am very grateful)
Open IIS, select the default website, right-click, browse, and see the IIS test web page, proving that there is no problem with IIS itself. Select the newly created project just now to automatically generate the virtual directory WebApplication1, right-click, browse, prompt "You do not have permission to view this web page", right-click WebApplication1->Properties->Document->Add->WebForm1.aspx->OK->Move Up ( Move this file up to the first position) -> OK, select WebApplication1 and right-click, browse, and report an error "This page cannot be displayed".
Check the sacred place of aspnet_wp.exe from the search website. It turns out that only installing .net and IIS is not enough. You also need to add/delete components -> application server, click on the details, and add asp.net. It's so ridiculous. , and make such a low-level mistake!
Open IIS, select WebApplication1 and right-click, browse, yes, it finally shows up normally.
Everything has been going well since then. You can use delphi2005 to open the project for trial run. When the browser reports an error "The web page cannot be found", close the browser and return the error message of the delphi2005 development environment, it still has a fault! ! !
Suddenly, I had a whim and changed it to http://192.168.0.5/WebApplication31/WebForm1.aspx in http://localhost/WebApplication31/WebForm1.aspx, maybe it's OK. As expected. Then why doesn’t http://localhost/WebApplication31/WebForm1.aspx work? Next, it should be the DNS domain name resolution? So when configuring DNS, DHCP, WINS, etc., I found an error when configuring DNS. Currently, the DNS server does not have a domain name. Its DNS name is a single tag hostname and has no domain (eg: "host" instead of "host.microsoft.com"). You may have forgotten to configure the primary DNS domain for the server computer. For more information, see "DNS Server Log Reference" or "Configure the primary DNS suffix for client computers" in the online help. --There are relevant solutions. (Microsoft is doing a good job in this.)
According to the above processing method, the machine name is changed, and after restarting, DNS will finally no longer report an error. Other related services are normal.
However, when delphi2005 opened the project and just started trial run, the browser reported an error "The web page cannot be found". When the browser closed, the error message returned to the delphi2005 development environment still failed! ! !
Open IIS, select WebApplication1 and right-click, browse, and report an error "Web page not found". I also thought that from the IIS test just now, I changed the IP address in the website identifier in the default website attribute to the native IP192.168.0.5, so I changed it back, that is (all not allocated).
Yes, this world is quiet...