There are two ways for as to generate a web application: one is to use the ADF for development, and the other is to use the create Web Application Command of as manager to generate a line without manual writing.CodeThe latter will generate a web application in c: \ Inetpub \ wwwroot \.ProgramTo access the services provided by the.
However, when the name attribute is set in step 1, a"Host Machine is invalid"Error, resulting in service failure. Looking up the network, there was no Chinese solution, as if the Chinese had never encountered this problem (maybe I did not find it deep enough). Later, I found a wide variety of statements on ESRI's forum, ESRI technical staff asked three questions. Later, a man said that the reason is that the Web is in the C: \ Inetpub \ wwwroot \ ArcGIS \ manager folder. config FileKey = "publishport" value = "8080"It should be changed to the default port, for example, 80. Later, someone jumped out and said that the root of the web. config file did not find the key. Another person said that this line of configuration was automatically deleted after the SP4 patch was applied.
Manually open web. config and add this configuration. Everything is OK !!!