I have created a Setup Project to deploy a Silverlight + WCF web app. Everything works nicely, except that the Application is created with a Default Document of default.aspx
.
Could someone please tell me how - or even whether it's possible - to set the Setup Project to specify t开发者_如何学JAVAhat Default Document should be index.html
?
If you are working in IIS 7 then you can specify this from the web.config:
<system.webServer>
<defaultDocument>
<files>
<clear / >
<add value="index.html" />
</files>
</defaultDocument>
</system.webServer>
If you need to do this in IIS 6, you can do it from your setup project (presumably also for IIS7)
In the setup project open up the File System View and open the properties editor of the Web Application Folder. Locate the DefaultDocument property and set it to what you need. If you require multiple values, you can use a comma separated list (bit of luck there, I guessed it would work and it did!)
精彩评论