468,283 Members | 1,517 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,283 developers. It's quick & easy.

"The resource cannot be found." error occured

maliksleo
115 100+
hi all

i m having this "The resource cannot be found." error. I applied the url rewriting on my project every page is being browsed very well but i am getting the above error an some pages i dont know why? can any one suggest some solution.

When i click on the button on that page i got this error with something like this

"Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly.

Requested URL: /sp2.aspx.aspx"

maliksleo
Jul 29 '09 #1
3 5393
tlhintoq
3,525 Expert 2GB
Requested URL: /sp2.aspx.aspx"
Do you really have a page with that name? I'd be surprised if you did.
Jul 29 '09 #2
maliksleo
115 100+
@tlhintoq
yes i am getting this path but my page name is sp2.aspx i dont know why i am getting this requested url i place
Expand|Select|Wrap|Line Numbers
  1. <if url="~/sp2.aspx.aspx">
  2.       <rewrite url="~/sp2.aspx.aspx" to="~/sp2.aspx" />
  3.     </if>
this in my web.config under url rewriting but still i am getting this error.
do you know any thing about this type of errors?

maliksleo
Jul 30 '09 #3
tlhintoq
3,525 Expert 2GB
Well... It's not an 'error' in the sense that you are getting an exception. It's just a flaw in the logic of your code. Someplace you are receiving a full URL that includes the suffix .aspx and you are adding on another suffix of .aspx

I suggest you use breakpoints and walk through the code line by line, watching the variables in a "Watch" window. At some point you will see where it is happening.

I tend to try to cut problems in half. Then cut that in half. Then that in half. You can narrow down very quickly this way.

Start in the middle of your processing of the URL. If it is already a double suffix, you know its in the first half of your process. Try again, in the middle of that half, and so on.
Jul 30 '09 #4

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

9 posts views Thread by Martin Eyles | last post: by
reply views Thread by NPC403 | last post: by
2 posts views Thread by MrBee | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.