http://www.ee99ee.com/blog/2009/02/08/how-to-get-aspnet-mvc-working-under-iis-51-on-windows-xp/
Can the following be put into batch commands? If not, is there an alternative where the con开发者_运维问答figuration can be set through an executable without the user having to configure through IIS?
the simplest solution is to include .aspx into the controller name. so the controller is in the following format {controller}.aspx/{action}/{id}.
You might be able to set those properties with the GET and SET commands of the Adsutil.vbs script (which works with IIS 5.1, would probably be in the directory C:\Inetpub\AdminScripts\
).
I tried a little poking around, and couldn't figure out which keys were needed. But you might be able to figure them out using the Metabase Explorer (from the IIS 6.0 ResKit, or here is a third-party version which I haven't tried).
I have been researching this topic as well and first of all I don't agree with the votes down moderators for a perfectly valid question with research done by the asker. Second the answer is no you cannot put IIS commands in a executable the whole point of IIS is that you set it up once and you are done so just set it up correctly the first time and you should be good also that tutorial you are looking at is rubbish. Just my 2 cents!
精彩评论