Click here to Skip to main content
15,885,985 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi,

I am using 'Intelligencia UrlRewriter' it is working fine in local server but on godaddy server it is showing error.

website hosted on godaddy.
http://fzkforum.com/bscore/

http://fzkforum.com/rome-the-worlds-first-superpower-17.aspx


WINDOWS, Asp.net 4.0/4.5 and ISIS 7 are available in my godaddy hosting account.

source of UrlRewriter i took from here.
http://dotnetguts.blogspot.ae/2008/07/url-rewriting-with-urlrewriternet.html


Below is godaddy webconfig file.

XML
<?xml version="1.0"?>
  <!-- 
    Note: As an alternative to hand editing this file you can use the 
    web admin tool to configure settings for your application. Use
    the Website->Asp.Net Configuration option in Visual Studio.
    A full list of settings and comments can be found in 
    machine.config.comments usually located in 
    \Windows\Microsoft.Net\Framework\v2.x\Config 
-->
  <configuration>
  <system.webServer>
  <httpErrors errorMode="Detailed" />
  <asp scriptErrorSentToBrowser="true"/>
  <rewrite>
  <rules>
  <rule name="enquiry" stopProcessing="true">
  <match url="^enquiry$" />
  <action type="Rewrite" url="/ViewPost.aspx" />
  </rule>
  </rules>
  </rewrite>
  </system.webServer>



  <connectionStrings>
  <add name="ConnectionString" connectionString="Data Source=cdatabse.db.1111111.hostedresource.com; 
  Initial Catalog=databsename; User ID=xxx; Password='xxx';"/>
  </connectionStrings>

    

  <system.web>

  <customErrors mode="Off"/>
  <compilation debug="true"/>

  <httpRuntime requestValidationMode="2.0" />
  <!--to avoid error 'A potentially dangerous Request.Form value was detected from the client' rich text box-->

  <!-- to handle asp:ListView handling starts-->
  <pages controlRenderingCompatibilityVersion="3.5"  validateRequest="false">
  <!--for supporting rich text box validate request 'false'-->
  <!--controlRenderingCompatibilityVersion for if Validation Controls Lost Their Red Color-->

  <controls>
  <add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
  <add tagPrefix="asp" namespace="System.Web.UI.WebControls" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
  </controls>
  </pages>
  <!--to handle asp:ListView handling ends-->

  </system.web>
    

  </configuration>
Posted

1 solution

Hi, have you modified the webconfig file as shown, in dotnetguts.
http://dotnetguts.blogspot.ae/2008/07/url-rewriting-with-urlrewriternet.html
Please modify it as shown and try.
 
Share this answer
 
Comments
aspdotnetkhan 28-May-15 7:48am    
yes i modified the web config file because if i follow the same it is showing ' 500 (Internal Server) Error '.

i think i need web config file of godaddy handling UrlRewriter.
aspdotnetkhan 28-May-15 7:52am    
it is working (simple)
http://fzkforum.com/bscore/ViewPost.aspx?id=17

it is not working (urlRewriter)
http://fzkforum.com/rome-the-worlds-first-superpower-17.aspx



The resource cannot be found.
Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly.

Requested URL: /rome-the-worlds-first-superpower-17.aspx
Shivachalappa Gotur 1-Jun-15 4:47am    
Hi Firoz,
Can you please send me both sample pages, in two separate folder which is working on locale server and which is deployed on GoDaddy server. I will look at both the folder's and I will try to figure out the issue. Email-id:- shiva_gotur@rediffmail.com. I have downloaded source code but it's giving error.

Sincerely
Shivachalappa K Gotur
Linkedin:- https://in.linkedin.com/pub/shivachalappa-gotur/25/907/b37
aspdotnetkhan 2-Jun-15 2:42am    
ok i send u shiva ji.
aspdotnetkhan 2-Jun-15 3:41am    
i have sent you all files by email.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900