Asp.net 4.5 Routing is not working.... RRS feed

  • Question

  • User-1384762298 posted

    I have deployed a website on Server,in the developement phase I was working fine , but when I deployed it on server it shows 404 eror

    When I write actual aspx page name on server it shows page.. but in case of virtual page name it through an error

    www.example.com/welcome.aspx is fine


    www.example.com/Welcome  is invalid.

    can you examine my configuration file and let me know where exactly I am wrong.


    <?xml version="1.0" encoding="UTF-8"?>
      For more information on how to configure your ASP.NET application, please visit
            <modules runAllManagedModulesForAllRequests="true">
                <remove name="UrlRoutingModule"/>
                <add name="UrlRoutingModule" type="System.Web.Routing.UrlRoutingModule, System.Web, Version=, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
                <add name="UrlRoutingHandler" preCondition="integratedMode" verb="*" path="UrlRouting.axd" type="System.Web.HttpForbiddenHandler, System.Web,
    Version=, Culture=neutral,
            <remove name="LocalSqlServer" />
            <add name="ConString" connectionString="Server=********;Database=***;uid=***********;pwd=*************" />
        <compilation debug="true" targetFramework="4.5" />
          <customErrors mode="On" defaultRedirect="Error" redirectMode="ResponseRedirect"></customErrors>
          <add name="CuteWebUI.UploadModule" type="CuteWebUI.UploadModule,CuteWebUI.AjaxUploader" />

    Tuesday, March 25, 2014 7:53 AM