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


Abhimanyu K VatsaRank #14 · 51.7K reputationPosted Jun 21, 2011, 11:19 PM EDT
you can success then show us the code of your base page and new window code.
sagar Bhosale162 reputationPosted Jun 21, 2011, 11:25 PM EDT
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
Posted Jun 21, 2011, 11:57 PM EDT
sagar Bhosale162 reputationPosted Jun 22, 2011, 12:28 AM EDT
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
Abhimanyu K VatsaRank #14 · 51.7K reputationPosted Jun 22, 2011, 1:47 AM EDT
sagar Bhosale162 reputationPosted Jun 22, 2011, 1:58 AM EDT
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
Posted Jun 22, 2011, 3:58 AM EDT
string UploadFileName = Server.MapPath("~/temp/"+filename));
And use the UploadFileName to display the image.
Hope this helps you.
Pradeep ChandrakerRank #941 · 2.2K reputationPosted Jun 22, 2011, 6:42 AM EDT
Can you provide code sample on how and where you are using this image?
sagar Bhosale162 reputationPosted Jun 22, 2011, 8:00 AM EDT
Pradeep ChandrakerRank #941 · 2.2K reputationPosted Jun 22, 2011, 8:13 AM EDT
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.
Suthish NairRank #92 · 22.8K reputationPosted Jun 22, 2011, 10:27 AM EDT
sagar Bhosale162 reputationPosted Jun 22, 2011, 8:46 PM EDT
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 NairRank #92 · 22.8K reputationPosted Jun 22, 2011, 10:04 PM EDT
sagar Bhosale162 reputationPosted Jun 22, 2011, 10:30 PM EDT
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 NairRank #92 · 22.8K reputationPosted Jun 23, 2011, 9:41 AM EDT
Server.MapPath("~/temp/"+filename)
ConfigurationManager.AppSettings["IMGMAPPATH"]
Server.MapPath("~/temp/" + Session["uploadedImage"])