Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Problem with MapPageRoute..

Problem with MapPageRoute..

Scheduled Pinned Locked Moved ASP.NET
questioncomhelpannouncement
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    Jassim Rahma
    wrote on last edited by
    #1

    Hi, Why I am getting object reference not set to an instance of an object with the following MapPageRoute? I guess it's because of {ADDRESS} at the beginning without a name like Page/{ADDRESS{ but how can I solve it. I already sent all the three lines at the end of the MapPageRoute but still having the same problem, keep in mind the problem occuers only in the PostComment.aspx <pre lang="cs">routes.MapPageRoute("volow_member_channel_post", "{ADDRESS}/{GUID}", "~/Post.aspx"); routes.MapPageRoute("volow_channel_home", "{ADDRESS}", "~/ChannelHome.aspx"); routes.MapPageRoute("volow_member_post_comment", "{ADDRESS}/Comment/{GUID}", "~/PostComment.aspx");</pre>

    Technology News @ www.JassimRahma.com

    B L 2 Replies Last reply
    0
    • J Jassim Rahma

      Hi, Why I am getting object reference not set to an instance of an object with the following MapPageRoute? I guess it's because of {ADDRESS} at the beginning without a name like Page/{ADDRESS{ but how can I solve it. I already sent all the three lines at the end of the MapPageRoute but still having the same problem, keep in mind the problem occuers only in the PostComment.aspx <pre lang="cs">routes.MapPageRoute("volow_member_channel_post", "{ADDRESS}/{GUID}", "~/Post.aspx"); routes.MapPageRoute("volow_channel_home", "{ADDRESS}", "~/ChannelHome.aspx"); routes.MapPageRoute("volow_member_post_comment", "{ADDRESS}/Comment/{GUID}", "~/PostComment.aspx");</pre>

      Technology News @ www.JassimRahma.com

      B Offline
      B Offline
      Brij
      wrote on last edited by
      #2

      Can you reframe your question and your post is not looking proper. Please correct it.

      Cheers!! Brij Microsoft MVP ASP.NET/IIS Visit my Blog: http://brijbhushan.net

      1 Reply Last reply
      0
      • J Jassim Rahma

        Hi, Why I am getting object reference not set to an instance of an object with the following MapPageRoute? I guess it's because of {ADDRESS} at the beginning without a name like Page/{ADDRESS{ but how can I solve it. I already sent all the three lines at the end of the MapPageRoute but still having the same problem, keep in mind the problem occuers only in the PostComment.aspx <pre lang="cs">routes.MapPageRoute("volow_member_channel_post", "{ADDRESS}/{GUID}", "~/Post.aspx"); routes.MapPageRoute("volow_channel_home", "{ADDRESS}", "~/ChannelHome.aspx"); routes.MapPageRoute("volow_member_post_comment", "{ADDRESS}/Comment/{GUID}", "~/PostComment.aspx");</pre>

        Technology News @ www.JassimRahma.com

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #3

        Jassim Rahma wrote:

        object reference not set to an instance of an object

        You should understand that this error means that you are using a reference that does not refer to anything, i.e. the reference is null or not initialised. In your code your are using the reference routes so it is reasonable to guess that routes has not been set up correctly, or has been corrupted.

        One of these days I'm going to think of a really clever signature.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups