# Problem during Uploading the Image to Server

**URL:** <https://forum.kirupa.com/t/problem-during-uploading-the-image-to-server/267921>\
**Category:** programming\
**Created:** [August 7, 2008, 10:45am UTC](https://forum.kirupa.com/t/problem-during-uploading-the-image-to-server/267921 "2008-08-07T10:45:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![gunapriyan](https://avatars.discourse-cdn.com/v4/letter/g/7feea3/32.png) [@gunapriyan](https://forum.kirupa.com/u/gunapriyan)\
**Post date:** [August 7, 2008, 10:45am UTC](https://forum.kirupa.com/t/problem-during-uploading-the-image-to-server/267921/1 "2008-08-07T10:45:57Z")

</div>

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](http://www.xyz.com)\images\img-1.jpg’[/COLOR]  
[COLOR=red]is denied. at [System.IO](http://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
