locked
Routing problem in mvc need urgent help 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 eryang Monday, February 7, 2011 3:27 AM (From:Building Development and Diagnostic Tools for .Net)
    Sunday, February 6, 2011 1:55 AM

Answers

  •  

    Hi,

     

    Thanks for your post, but your question is tend to get quicker and better support in http://forums.asp.net where asp.net experts live in.


    Eric Yang [MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    • Proposed as answer by Just Karl Wednesday, January 15, 2014 4:05 PM
    • Marked as answer by Just Karl Thursday, January 23, 2014 11:00 PM
    Monday, February 7, 2011 3:26 AM
  • 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:00 PM
    Wednesday, January 15, 2014 4:05 PM

All replies

  •  

    Hi,

     

    Thanks for your post, but your question is tend to get quicker and better support in http://forums.asp.net where asp.net experts live in.


    Eric Yang [MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    • Proposed as answer by Just Karl Wednesday, January 15, 2014 4:05 PM
    • Marked as answer by Just Karl Thursday, January 23, 2014 11:00 PM
    Monday, February 7, 2011 3:26 AM
  • 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:00 PM
    Wednesday, January 15, 2014 4:05 PM