Hai Dears,
I have developed one CMS Site. In this site the “Image Gallery” is one of the important part.
I have wrote the uploading coding for images.
Its working fine in the local server…
But when i try to upload the images to main server, it shows the “path” error…
The error is for your kind action…
[COLOR=red]System.UnauthorizedAccessException: Access to the path[/COLOR]
[COLOR=red]‘www.xyz.com\images\img-1.jpg’[/COLOR]
[COLOR=red]is denied. at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) at [/COLOR]
[COLOR=red]System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights,[/COLOR]
[COLOR=red]FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)[/COLOR]
[COLOR=red]at System.IO.FileStream…ctor(String path, FileMode mode) at System.Web.HttpPostedFile.SaveAs(String filename) [/COLOR]
[COLOR=red]at btn_submit_Click(Object sender, EventArgs e)[/COLOR]
Waiting for your nice reply…
Yours
GUNA