|
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
|
|
|
|
|
Can you reframe your question and your post is not looking proper. Please correct it.
|
|
|
|
|
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.
|
|
|
|