locked
Need routing Help in MVC urgent RRS feed

  • Question

  • I have created a mvc application where i have addedd my deafult page in the application which is not in view foler.Now i want to make that as start up page .I can make that in visula studio but when i publish that in iis it doesnt work.It goes to global.asax and makes the routing to the deafult on 

     

     routes.MapRoute(

                   "Default", // Route name

                   "{controller}/{action}/{id}", // URL with parameters

                   new { controller = "Account", action = "LogOn", id = UrlParameter.Optional } // Parameter defaults

               );

     

     

    But i want my start up page to be like this http://www.sn-infotech.com/default.aspx..

    I changed in web.config also like this 

     

     <authentication mode="Forms">

          <forms name="UrlDirect" defaultUrl="default.aspx" path="/">

          </forms>

          <!--<forms loginUrl="~/Account/LogOn" timeout="2880"/>-->

        </authentication>

     

     

    Still its not working...I cant find any solution to it.

    Woulkd anyone please help that would be really nice.

    Thanks

    Sam

    • Moved by Larcolais Gong Monday, February 7, 2011 8:16 AM (From:.NET Framework Setup)
    Sunday, February 6, 2011 1:58 AM

Answers

  • For better/faster results, please consider asking in the ASP.NET forums, found here:

    http://forums.asp.net/

    This forum is for .NET Framework installation/setup issues

    • Proposed as answer by Just Karl Wednesday, January 15, 2014 3:32 PM
    • Marked as answer by Just Karl Thursday, January 23, 2014 11:02 PM
    Sunday, February 6, 2011 3:54 PM
  • Hello,

    Specifically, this should be asked in the ASP.Net MVC forum on forums.asp.net.

    Karl


    When you see answers and helpful posts, please click Vote As Helpful, Propose As Answer, and/or Mark As Answer.
    My Blog: Unlock PowerShell
    My Book: Windows PowerShell 2.0 Bible
    My E-mail: -join ('6F6C646B61726C40686F746D61696C2E636F6D'-split'(?<=\G.{2})'|%{if($_){[char][int]"0x$_"}})

    • Proposed as answer by Just Karl Thursday, January 16, 2014 10:32 PM
    • Marked as answer by Just Karl Thursday, January 23, 2014 11:02 PM
    Wednesday, January 15, 2014 3:32 PM

All replies

  • For better/faster results, please consider asking in the ASP.NET forums, found here:

    http://forums.asp.net/

    This forum is for .NET Framework installation/setup issues

    • Proposed as answer by Just Karl Wednesday, January 15, 2014 3:32 PM
    • Marked as answer by Just Karl Thursday, January 23, 2014 11:02 PM
    Sunday, February 6, 2011 3:54 PM
  • Hello,

    Specifically, this should be asked in the ASP.Net MVC forum on forums.asp.net.

    Karl


    When you see answers and helpful posts, please click Vote As Helpful, Propose As Answer, and/or Mark As Answer.
    My Blog: Unlock PowerShell
    My Book: Windows PowerShell 2.0 Bible
    My E-mail: -join ('6F6C646B61726C40686F746D61696C2E636F6D'-split'(?<=\G.{2})'|%{if($_){[char][int]"0x$_"}})

    • Proposed as answer by Just Karl Thursday, January 16, 2014 10:32 PM
    • Marked as answer by Just Karl Thursday, January 23, 2014 11:02 PM
    Wednesday, January 15, 2014 3:32 PM