Error web.config

93 views
Skip to first unread message

diyaa hamza

unread,
Aug 2, 2012, 3:39:39 PM8/2/12
to urlrewr...@googlegroups.com

Hello All,

I tried to use UrlRewritingNet but I get this error


This my web.config file

<configuration>
  <configSections>
    <section name="urlrewritingnet" requirePermission="false" type="UrlRewritingNet.Configuration.UrlRewriteSection, UrlRewritingNet.UrlRewriter"/>
  </configSections>
  <urlrewritingnet rewriteOnlyVirtualUrls="true" contextItemsPrefix="QueryString" defaultPage="default.aspx" defaultProvider="RegEx" xmlns="http://www.urlrewriting.net/schemas/config/2006/07">
    <rewrites>
      <add name="RewriteOnDomain" virtualUrl="^http\://(.*)/SampleWeb/domain/(.*)/Detail(.*).aspx" rewriteUrlParameter="ExcludeFromClientQueryString" destinationUrl="~/Default.aspx?language=$3&amp;id=$4;&amp;domain=$1" rewrite="Domain" ignoreCase="true"/>
      <add name="Rewrite" virtualUrl="^~/(.*)/Detail(.*).aspx" rewriteUrlParameter="ExcludeFromClientQueryString" destinationUrl="~/Default.aspx?language=$1&amp;id=$2" ignoreCase="true"/>
      <add name="RedirectInApplication" virtualUrl="^~/(.*)/Default.aspx" rewriteUrlParameter="ExcludeFromClientQueryString" destinationUrl="~/$1/Detail_Redirected.aspx" redirect="Application" redirectMode="Permanent" ignoreCase="true"/>
      <add name="KickBrowserToDomain" virtualUrl="^http\://(.*)/SampleWeb/kickto/(.*).aspx" rewriteUrlParameter="ExcludeFromClientQueryString" destinationUrl="http://$2?source=$1" redirect="Domain" redirectMode="Permanent" ignoreCase="true"/>
    </rewrites>
  </urlrewritingnet>
  <appSettings/>
  <system.web>
    <httpModules>
      <add name="UrlRewriteModule" type="UrlRewritingNet.Web.UrlRewriteModule, UrlRewritingNet.UrlRewriter"/>
    </httpModules>

    <compilation debug="true" strict="false" explicit="true" targetFramework="4.0">
      <assemblies>
        <add assembly="System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
      </assemblies>
    </compilation>
    <pages>
      <controls>
        <add tagPrefix="ajaxToolkit" assembly="AjaxControlToolkit" namespace="AjaxControlToolkit"/>
      </controls>
    </pages>
    
  </system.web>

</configuration>


Thank you.

Goldie

unread,
Aug 3, 2012, 9:40:00 AM8/3/12
to urlrewr...@googlegroups.com
If someone else doesnt reply to you by this afternoon (~ 6-7pm CST ), ill get back with the response.  I will have to investigate some other settings that produce this type of response from IIS.  I have received this error but for the most part required some IIS editing in my solution, which may not be possible with your situation.

diyaa hamza

unread,
Aug 7, 2012, 1:43:36 PM8/7/12
to urlrewr...@googlegroups.com
No One????

vikash bhorale

unread,
Aug 7, 2012, 11:18:32 PM8/7/12
to urlrewr...@googlegroups.com
Hi,

  Can you check the application pool of IIS. I think it is using default pool. please make it ASP.Net v4..let me know futher....

Goldie

unread,
Aug 8, 2012, 7:04:01 AM8/8/12
to urlrewr...@googlegroups.com
I assume you are using IIS7 as your web service, since you have .Net 4 library reference?
 
If so, why not use the IIS7 routing components?

On Thursday, August 2, 2012 2:39:39 PM UTC-5, diyaa hamza wrote:

Pankaj Pareek

unread,
Aug 9, 2012, 1:36:40 AM8/9/12
to urlrewr...@googlegroups.com
hi,

I think your config file is correct,
 
have you referenced the dll file "UrlRewritingNet.UrlRewriter.dll" to your project.


2012/8/3 diyaa hamza <diy...@gmail.com>

--
Sie haben diese Nachricht erhalten, weil Sie der Google Groups-Gruppe UrlRewritingNet beigetreten sind.
Besuchen Sie https://groups.google.com/d/msg/urlrewritingnet/-/jm6dkMl_FicJ, um diese Diskussion im Web anzuzeigen.
Wenn Sie Nachrichten in dieser Gruppe posten möchten, senden Sie eine E-Mail an urlrewr...@googlegroups.com.
Wenn Sie aus dieser Gruppe austreten möchten, senden Sie eine E-Mail an urlrewritingn...@googlegroups.com.
Besuchen Sie die Gruppe unter http://groups.google.com/group/urlrewritingnet?hl=de, um weitere Optionen zu erhalten.



--
With Regards,
Pankaj Pareek
pankaj....@gmail.com
+91-9269183551

Reply all
Reply to author
Forward
0 new messages