Groups > Web Hosting > Windows Hosting open forum > Re: Failed to upload files with GoDaddy Windows Hosting




Failed to upload files with GoDaddy Windows Hosting

Failed to upload files with GoDaddy Windows Hosting
Fri, 29 Feb 2008 05:47:03 +000
My ASP.NET application uses a 'FileUpload' control to allow a user to upload
files.  I already set the 'Write' permission of the destination folder using
GoDaddy's Control Panel > File Manager but I catch this error:Request for the
permission of type 'System.Security.Permissions.FileIOPermission, mscorlib,
Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
mscorlib This is my code: s_FilePath =
d:\hosting\myacoount\folder1\subfolder1\filename
 Me.FileUpload1.SaveAs(s_FilePath + fileinfo.Extension.ToString)  I already
emailed their support but it gives me the same answer... Anyone who have
experienced like this, any tips?  Thanks :)
Post Reply
Re: Failed to upload files with GoDaddy Windows Hosting
Fri, 29 Feb 2008 06:40:58 +000
This might be of help:
http://www.velocityreviews.com/forums/t295686-fileiopermission-erro-using-refere
nced-dll-on-shared-hosting.html.

But I think you are having a medium vs. full trust issue. I haven't hosted with
GoDaddy, but I've heard from a few web software vendors that their packages
don't work on GoDaddy because of .NET trust issues. Not sure if there is a
workaround.
Post Reply
Re: Failed to upload files with GoDaddy Windows Hosting
Fri, 29 Feb 2008 19:42:13 +000
It definately seems like a permissions issue to me. What is the answer that
Godaddy's support has provided you?
Post Reply
Re: Failed to upload files with GoDaddy Windows Hosting
Sat, 1 Mar 2008 03:07:24 +0000
These are the instructions that they gave me...  

 To modify Windows permissions using the File Manager:

1. Log in to your Account Manager. 

2. In the My Products section, select Hosting Account List.

3. Next to the hosting account you want to modify, click Open.

4. In the Content section, click File Manager. 

5. Select the directory or directories for which you'd like to set permissions.


6. Click the Permissions icon.

7. Select the permissions for the selected files.

Read
Selecting "Read" enables anonymous users to view files in the
directory through a Web browser. 
Deselecting "Read" presents users of your Web site that reference
files in the directory with a security challenge. To view the files, users must
authenticate into the hosting account by entering the FTP user name and
password.
NOTE: You must select the "Anonymous Access" setting in the IIS
Settings for a page in the directory to be viewable through a Web browser.

Write
Selecting "Write" enables anonymous users to use your site's
applications to modify the contents of a directory. Select "Write"
only if your site's applications create files or write to files in the
directory.

Inherit
Selecting "Inherit" removes the explicit "Read" and
"Write" permissions on a directory, so it inherits its parent
directory's permissions. When a directory inherits permissions from its parent,
the directory's permissions are dynamically updated when the parent's
permissions are updated. Deselecting "Inherit" applies the explicit
"Read" and "Write" permissions to the directory. When a
directory does not inherit permissions from its parent, the directory's
permissions are unaffected by updates to the parent's permissions.

Reset all children to inherit
Selecting "Reset all children to inherit" causes the
"Inherit" setting to be cascaded to all of the subdirectories below
the directory. This condition has the affect of removing any explicit
permissions that may have been set.

8. Click OK

I already set the permission to "Write" and "Read" for the
folder/directory to be uploaded with files but still no luck.
Post Reply
Re: Failed to upload files with GoDaddy Windows Hosting
Sat, 1 Mar 2008 05:25:07 +0000
If you have already set the permissions and it is not working, contact the
support team and ask them to check and apply the permissions manually from the
server.
Post Reply
<< Previous 1 2 3 4 Next >>
( Page 1 of 4 )
about | contact