asp.net - Remove .aspx extension visual studio 2012 -
i'm trying edit web.config roadsunknown's code (from post remove html or aspx extension):
<rewrite> <rules> <rule name="rewriteaspx"> <match url="(.*)" /> <conditions logicalgrouping="matchall"> <add input="{request_filename}" matchtype="isfile" negate="true" /> <add input="{request_filename}" matchtype="isdirectory" negate="true" /> </conditions> <action type="rewrite" url="{r:1}.aspx" /> </rule> </rules> </rewrite>
when add code following error: warning 1 element 'system.web' has invalid child element 'rewrite'.
i have iis url rewrite 2.0 installed , have executed script on blog (http://blog.vanmeeuwen-online.nl/2013/04/visual-studio-2012-xml-intellisense-for.html) update visual studio 2012. don't know else web.config code work.
i'd interested in alternative method remove .aspx site's urls doesn't involve iis.
not sure problem, other looks module isn't installed. have checked modules section in iis ?
you use page routing instead. describes how use page routing mechanism in webforms app - http://msdn.microsoft.com/en-us/library/vstudio/dd329551(v=vs.100).aspx
Comments
Post a Comment