Thanks all for yours solutions,But i have my Control panel and all things
can you tell me how to give permission to specific folder becoz first time i
am using this..please ,,

On Tue, Aug 31, 2010 at 10:43 AM, BIJU A.J <[email protected]> wrote:

> Hi,
>
> Contact your domain provider and ask them set the read/write permission to
> that image folder
>
>
>
>
> On Mon, Aug 30, 2010 at 11:22 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 <http://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 
>> <http://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)
>
>
>


-- 
Warm Regards:-
    Gourav Vishnoi
   +91-9871157845 (M)

Reply via email to