tag:blogger.com,1999:blog-32696142.post7318096321213580138..comments2019-01-18T22:27:59.130-06:00Comments on ASP.Net, C#, SQL, JQuery, Sharepoint: URL Rewriting with URLRewriter.Net Simplest WayDotNetGutsnoreply@blogger.comBlogger103125tag:blogger.com,1999:blog-32696142.post-10404823547272892312014-07-07T04:37:24.411-05:002014-07-07T04:37:24.411-05:00nice it is working fine......
but how to use mult...nice it is working fine......<br /><br />but how to use multiple url inside <br /><br /><br /><br />firozhttps://www.blogger.com/profile/18096560832815875634noreply@blogger.comtag:blogger.com,1999:blog-32696142.post-17874649774097699442013-11-21T19:42:21.900-06:002013-11-21T19:42:21.900-06:00@Sumit,
This article is very old. If you have to...@Sumit,<br /><br />This article is very old. If you have to do URL Rewriting in Asp.net 4.0 or Up, I would suggest you too look into routing engine, that is much more efficient than this.<br /><br />Your error clearly states answer: check whether dll file is not corrupt and properly reference.DotNetGutshttps://www.blogger.com/profile/12732063013510099746noreply@blogger.comtag:blogger.com,1999:blog-32696142.post-49124148568722883622013-11-20T05:39:29.881-06:002013-11-20T05:39:29.881-06:00Thanks Sir,
its a nice article..
but its giving er...Thanks Sir,<br />its a nice article..<br />but its giving error &quot; Could not load file or assembly &#39;Intelligencia.UrlRewriter&#39; or one of its dependencies. The system cannot find the file specified&quot;<br />Plz help me..Sumit Sonawanehttps://www.blogger.com/profile/00085621496321059858noreply@blogger.comtag:blogger.com,1999:blog-32696142.post-87165924974260435682013-03-11T20:22:55.689-05:002013-03-11T20:22:55.689-05:00@Sam,
It is hard to help you out with just error ...@Sam,<br /><br />It is hard to help you out with just error message. There can be many reasons by which above exception can be thrown. Please go through comments answered above. Hope that helps.DotNetGutshttps://www.blogger.com/profile/12732063013510099746noreply@blogger.comtag:blogger.com,1999:blog-32696142.post-5110368547751092852013-03-11T04:00:24.905-05:002013-03-11T04:00:24.905-05:00@DotNetGuts, Thanks for replying...
I went through...@DotNetGuts, Thanks for replying...<br />I went through the link and found it useful but i am still using 2.0 so it would be better if i use the above mentioned code. So can you please help me sorting out the problem.<br />samhttps://www.blogger.com/profile/09787404128093624770noreply@blogger.comtag:blogger.com,1999:blog-32696142.post-49758860380892342062013-03-08T15:30:09.036-06:002013-03-08T15:30:09.036-06:00@Sam, This is old way of URL Rewriting in asp.net....@Sam, This is old way of URL Rewriting in asp.net. It is back in VS.Net 2005/2008 days. If you are using VS.Net 2010 or above then I would recommend using new way of doing URL Routing.<br /><br />Check out this url for more info.<br />http://weblogs.asp.net/scottgu/archive/2009/10/13/url-routing-with-asp-net-4-web-forms-vs-2010-and-net-4-0-series.aspxDotNetGutshttps://www.blogger.com/profile/12732063013510099746noreply@blogger.comtag:blogger.com,1999:blog-32696142.post-14941364302324040902013-03-08T06:15:52.059-06:002013-03-08T06:15:52.059-06:00[InvalidOperationException: Failed to map the path...[InvalidOperationException: Failed to map the path &#39;/Copy%20(2)%20of%20Rentingavenue/index.aspx/&#39;.]<br /> System.Web.Hosting.HostingEnvironment.MapPathActual(VirtualPath virtualPath, Boolean permitNull) +8848666<br /> System.Web.Hosting.HostingEnvironment.MapPathInternal(VirtualPath virtualPath) +42<br /> System.Web.VirtualPath.MapPathInternal() +4<br /> samhttps://www.blogger.com/profile/09787404128093624770noreply@blogger.comtag:blogger.com,1999:blog-32696142.post-81169504135333823992012-12-05T05:05:12.932-06:002012-12-05T05:05:12.932-06:00how to remove .aspx through this URL Rewritinghow to remove .aspx through this URL RewritingDeep Davehttps://www.blogger.com/profile/08756924639903815795noreply@blogger.comtag:blogger.com,1999:blog-32696142.post-78526266151438498562012-12-05T05:04:12.201-06:002012-12-05T05:04:12.201-06:00how to Remove .aspx from page through this url rew...how to Remove .aspx from page through this url rewritingDeep Davehttps://www.blogger.com/profile/08756924639903815795noreply@blogger.comtag:blogger.com,1999:blog-32696142.post-70570264975906339232012-12-05T04:43:09.234-06:002012-12-05T04:43:09.234-06:00I am getting NullReferenceException while accessin...I am getting NullReferenceException while accessing rewritten linkAishwarya Shiva Pareekhttps://www.blogger.com/profile/03594486233160331875noreply@blogger.comtag:blogger.com,1999:blog-32696142.post-77905137494007748422012-12-05T03:12:12.581-06:002012-12-05T03:12:12.581-06:00hello sir i used this code in my localhost site bu...hello sir i used this code in my localhost site but created url not redirect to orignal pageDeep Davehttps://www.blogger.com/profile/08756924639903815795noreply@blogger.comtag:blogger.com,1999:blog-32696142.post-17878810942989232112012-07-30T03:08:52.797-05:002012-07-30T03:08:52.797-05:00Hello
I found your post very useful.But i want to...Hello <br />I found your post very useful.But i want to create a url rewriting in which each user can set their own url with username.<br />Example <br />www.abc.com/user1<br />www.abc.com/user2 etc(similar to facebook,twitter).<br />The username is already stored in the database how i can achieve this.<br />Your response will be appreciated.<br /><br />Regards<br />Nitin GoswamiNITIN GOSWAMIhttps://www.blogger.com/profile/03572970762061373895noreply@blogger.comtag:blogger.com,1999:blog-32696142.post-50928169751845921552012-06-29T02:43:20.768-05:002012-06-29T02:43:20.768-05:00hi,
i cant find the binary file to download.
The l...hi,<br />i cant find the binary file to download.<br />The link directs be to the source code....?kelly_seohttps://www.blogger.com/profile/13933593314178679342noreply@blogger.comtag:blogger.com,1999:blog-32696142.post-28741542043966251272012-05-23T06:38:40.926-05:002012-05-23T06:38:40.926-05:00Hi, I am implementing this rule in two page and in...Hi, I am implementing this rule in two page and in web config I change according to this but it always goes to first page. like I have two page 1. pressrelease.aspx and 2. solution.aspx<br />from press release it working fine but from solution pages it again redirect to press release landing pageRishi Sanujhttps://www.blogger.com/profile/01748706410760179204noreply@blogger.comtag:blogger.com,1999:blog-32696142.post-46811697234166133172012-03-26T04:49:58.141-05:002012-03-26T04:49:58.141-05:00hi
thanks for this solution it worked with me fin...hi <br />thanks for this solution it worked with me fine but with one rewrite value but when I tried to use two values as:<br /> <br /> <br /> <br /> <br /><br /> <br /><br />the first value only worked but the second didn&#39;t redirect to model.aspx page.kareem gamalhttps://www.blogger.com/profile/09648891878202848270noreply@blogger.comtag:blogger.com,1999:blog-32696142.post-50936757689632785362011-07-03T17:09:57.297-05:002011-07-03T17:09:57.297-05:00Hi i am Waqas From Karachi,Pakistan
very thanks ya...Hi i am Waqas From Karachi,Pakistan<br />very thanks yar Deadly solution keep it up dear. good workWaqas Memonhttps://www.blogger.com/profile/14056528049836637554noreply@blogger.comtag:blogger.com,1999:blog-32696142.post-42743142864197059252011-05-10T11:05:30.349-05:002011-05-10T11:05:30.349-05:00Hi,
Very helpful article.Thank you so much. Appr...Hi,<br /><br />Very helpful article.Thank you so much. Appreciated your great efforts on <b>GenerateURL</b> function; you makes my job easier.<br /><br />Keep going....Madhu Bhttps://www.blogger.com/profile/09420064941319738888noreply@blogger.comtag:blogger.com,1999:blog-32696142.post-61360828405269319322011-02-09T17:40:55.881-06:002011-02-09T17:40:55.881-06:00hello i ve just rename my solution and project na...hello i ve just rename my solution and project names(18 projects inside) but the problem with intellengcia , it get s me error(page not fund 404 error) while its is working in original website.all web.config configuration for rewriting are same as original website but it si not working in renamed new website.i ve referenced to dll etc set configuration but still getting 404 error on all Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-32696142.post-79385500809409104942010-12-29T04:45:21.578-06:002010-12-29T04:45:21.578-06:00Hello,
it&#39;s really amazing work but when i use...Hello,<br />it&#39;s really amazing work but when i used it with a project [.Net framework 4.0]<br />it&#39;s worked very fine but when i used it with a project [.Net framework 2.0] i got this error [Failed to map the path &#39;/Rewritable%20url/Default3.aspx/].<br />Please help me ASAP <br />thank you...Mehttps://www.blogger.com/profile/07723233388697585946noreply@blogger.comtag:blogger.com,1999:blog-32696142.post-29431843995593117022010-10-24T10:58:29.495-05:002010-10-24T10:58:29.495-05:00Hello,
Great article, however I just wanted to kn...Hello,<br /><br />Great article, however I just wanted to know if it is possible to strip off the Title Id from the url after it has been rewritten. so something like /Article/Asp-Net-website-paths.aspx instead of /Articles/Asp-Net-website-paths-1.aspx. Now I do realize that the title id is important inorder to get the title name but just wondering if there is anything that i can do to remove theWasimhttps://www.blogger.com/profile/17031564285568312649noreply@blogger.comtag:blogger.com,1999:blog-32696142.post-10323228874499892552010-07-26T07:27:57.987-05:002010-07-26T07:27:57.987-05:00Thanks for the reply. I had already tried your sol...Thanks for the reply. I had already tried your solution which worked well but I needed one of the urls to be dynamic and one to be static so after alot of tweaking I came up with this as my best solution:<br /><br /> rewrite url=&quot;~/venuessin/(.*)-(.*).aspx&quot; to=&quot;~/showmetowns.aspx?town=$2&quot;/<br /> rewrite url=&quot;~/(.+)/(.+)-(.+).aspx&quot; to=&quot;~/showmevenues.aspx?venueDamohttps://www.blogger.com/profile/02825539691463247493noreply@blogger.comtag:blogger.com,1999:blog-32696142.post-19342581764395479722010-07-22T07:06:13.870-05:002010-07-22T07:06:13.870-05:00@Damo
Its a good question.
When you use same exp...@Damo<br /><br />Its a good question.<br /><br />When you use same expression twice, Url rewriter get confused and it picks one of them. (In mycase always 1st one).<br /><br />Try following Solution<br /><br />&lt;rewrite url=&quot;~/venues/(.+).aspx&quot; to=&quot;~/ShowMeVenues.aspx?venue=$1&quot;/&gt;<br /><br />&lt;rewrite url=&quot;~/towns/(.+).aspx&quot; to=&quot;~/ShowMeTowns.aspx?town=$1&DotNetGutshttps://www.blogger.com/profile/12732063013510099746noreply@blogger.comtag:blogger.com,1999:blog-32696142.post-19215969990103946892010-07-22T06:29:20.221-05:002010-07-22T06:29:20.221-05:00Hi, Thanks for a great tool, I had this up and run...Hi, Thanks for a great tool, I had this up and running within a matter of minutes but I have a small issue with which I may be missing an obvious point?<br /><br />I have a two pages running in root:<br /><br />ShowMeTowns.aspx?town=1<br />ShowMeVenues.aspx?venue=1<br /><br />I want to display the link for ShowMeTowns.aspx as <br />www.mydomain.com/Abingdon.aspx<br />www.mydomain.com/Damohttps://www.blogger.com/profile/02825539691463247493noreply@blogger.comtag:blogger.com,1999:blog-32696142.post-30622008489349814442010-07-10T00:07:15.251-05:002010-07-10T00:07:15.251-05:00Hello Friends i have problem with URL rewrite usi...Hello Friends i have problem with URL rewrite using querystring<br /><br />I have a page <br />http://www.abc.com/details.aspx?no=123&amp;companyname=monster&amp;state=mumbai<br /><br /><br />select * from ms_survey_corporate where no=&quot;&amp; request.querystring(&quot;no&quot;) &amp;&quot; and companyname like &#39;%&quot;&amp; request.querystring(&quot;company&quot;) &amp;&quot;%&#39; and Bluffmasterhttps://www.blogger.com/profile/17383255983834143749noreply@blogger.comtag:blogger.com,1999:blog-32696142.post-17354404419606899092010-06-24T18:14:13.662-05:002010-06-24T18:14:13.662-05:00Thanks Harish for sharing your problem and solutio...Thanks Harish for sharing your problem and solution with everyone.DotNetGutshttps://www.blogger.com/profile/12732063013510099746noreply@blogger.com