In my application when i upload image it is successfully uploaded but when click image button new window open & show me the error resource is not found insted of that showing that images in that it is show following error
how to solve this buggs plz help me
Server Error in '/' Application.
The resource cannot be found.
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: /temp/New Picture.png
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1
Thanks

Suthish NairPosted Jun 23, 2011, 1:41 PM
Server.MapPath("~/temp/"+filename)
ConfigurationManager.AppSettings["IMGMAPPATH"]
Server.MapPath("~/temp/" + Session["uploadedImage"])
sagar BhosalePosted Jun 23, 2011, 2:30 AM
i post screenshot for when image is upload then when i click imagebutton above error display
but when i save my article then i click same that imagebutton image can see properly
i post both screenshot
Thanks for reply
Suthish NairPosted Jun 23, 2011, 2:04 AM
sagar BhosalePosted Jun 23, 2011, 12:46 AM
when i check in my code image path show in this way "D:\\workspace\\Radar\\Radar.WebApp\\temp\\"
is it correct ? plz help me solve this bugg
Suthish NairPosted Jun 22, 2011, 2:27 PM
Pradeep ChandrakerPosted Jun 22, 2011, 12:13 PM
Where are you using BuildImageUrl and UploadImageUrl method. If possible can you upload your project? otherwise it will be very hard to find out what actually you want to do and what is the issue.
sagar BhosalePosted Jun 22, 2011, 12:00 PM
Pradeep ChandrakerPosted Jun 22, 2011, 10:42 AM
Can you provide code sample on how and where you are using this image?
Posted Jun 22, 2011, 7:58 AM
string UploadFileName = Server.MapPath("~/temp/"+filename));
And use the UploadFileName to display the image.
Hope this helps you.
sagar BhosalePosted Jun 22, 2011, 5:58 AM
but what happen when i click there is one image button i show above error but when i save my artical & again i click on that image button image can see properly
I upload image then image is stored accordding to userid e.g. 92e95d97-0575-42f6-b08b-8c81a72d0b07_New Picture.png but it is search only in my uploaded folder New Picture.png thats
why it give me error how to solve this problem
my code is
Abhimanyu K VatsaPosted Jun 22, 2011, 5:47 AM
sagar BhosalePosted Jun 22, 2011, 4:28 AM
but after saving artical when i click same image button image can see in proper manner
actualy what can i done sir, I upload image then image is stored accordding to userid e.g. 92e95d97-0575-42f6-b08b-8c81a72d0b07_New Picture.png but it is search only in my uploaded folder New Picture.png thats why it give me error how to solve this problem
Posted Jun 22, 2011, 3:57 AM
sagar BhosalePosted Jun 22, 2011, 3:25 AM
but when i save my artical at that time when i click that image button it is shown me proper image but after uload image when i click that image button it is shown above error
Thanks for reply
Abhimanyu K VatsaPosted Jun 22, 2011, 3:19 AM
you can success then show us the code of your base page and new window code.