Contact your webhost and ask them how to do it through their control panel.

On Mon, Aug 30, 2010 at 6:52 AM, Gourav <[email protected]> wrote:
> Hi All,
>   This is my fourth same post but i didn't get solution.
> Actually i make a application in this user attached his image then
> this image goes to admin via mail..to do this i make a USERIMAGE
> folder on root of the application...
> This whole application working fine on Localhost,But on server it
> gives error like :
> "Access to the path 'C:\inetpub\vhosts\happymarriagebureau.in\httpdocs
> \ourimage\Digital-Wallpaper-Home-Theather-Interior-by-Stemik-
> Living.jpg' is denied."
>
> You can also check through
> http://www.happymarriagebureau.in/image.aspx..
>
> In this my coding is below :
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
> public void imgsave()
>   {
>       upload_image = FileUpload1.PostedFile.FileName;
>       string strBaseLocation = Server.MapPath("~/userimage/");
>       if (FileUpload1.HasFile)
>       {
>           FileUpload1.SaveAs(strBaseLocation +
> FileUpload1.FileName);
>       }
>
>       else
>       {
>           Page.ClientScript.RegisterStartupScript(typeof(Page),
> "alert", "<script language=JAVASCRIPT> alert('Try Again');</script>");
>       }
>   }
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
>
> I had search on net why it held then i find :
>
> To grant ASP.NET access to a file, right-click the file in Explorer,
> choose "Properties" and select the Security tab. Click "Add" to add
> the appropriate user or group. Highlight the ASP.NET account, and
> check the boxes for the desired access.
>
>
> i do this on my local host and then upload this folder to server
> through FTP.But no solution....
> i have FTP and my control panel...
> anybody can help me ...Please it take only little bit time..
> i'll wait for positive reply...
>
> Warm Regards:-
>    Gourav Vishnoi
>   +91-9871157845 (M)

Reply via email to