无法在使用asp.net网站直播运行时创建的目录 [英] Not able to create directory at runtime in live website using asp.net

查看:65
本文介绍了无法在使用asp.net网站直播运行时创建的目录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我GoDaddy的服务器帐户,我想在运行时我的网站位置创建一个目录,我使用下面给出的code创建目录。

I have godaddy server account, I want to create a directory on my website location at runtime and I am using the code given below to create directory.

System.IO.Directory.CreateDirectory(目录);

500内部服务器错误显示。

推荐答案

具体ASP用户将需要在父文件夹的权限创建新的文件夹。用户可以IIS_USERS,IUSR,ASP_NET或类似...

The specific ASP User will need permission on the parent folder to create new folders. The User could be IIS_USERS, IUSR, ASP_NET or similar...

编辑:额外的细节,
在服务器 - ,你要创建一个文件夹(父文件夹) - 点击鼠标右键,弹出安全窗口。在这个窗口中你想加入修改(或完全控制)为IIS用户。 (使用Add按钮,先添加IIS_USERS,然后确保允许被选中完全控制),这大概是所谓的IIS_USERS但你可以检查这取决于你的系统。用户不会默认权限。

Extra detail, On the server - where you are trying to create a folder (the Parent folder) - Right Click and bring up the Security window. In this window you want to Add 'Modify' (or 'Full Control') for the IIS User. (Use the ADD button to add the IIS_USERS first, then ensure that ALLOW is ticked for Full Control) It is probably called IIS_USERS but you can check this depending on your system. The User will NOT have permission by default.

请参阅此重新GoDaddy的<一个href=\"http://stackoverflow.com/questions/9407437/programatically-create-directory-for-new-user-on-web-site\">Programatically创建于网站

See this re GoDaddy Programatically create directory for new user on web site

这篇关于无法在使用asp.net网站直播运行时创建的目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆