我有一个应用程序,我上传访问数据库到服务器,然后读取该数据库并将其导入到我的SQL数据库。但是,这是我第一次尝试在共享主机上这样做,并且我无法更改上传文件夹的写入权限,因此我无法上传数据库?上传共享主机上的访问数据库
任何人都知道我可以尝试的其他东西吗?我看着IsolatedStorageFileStream,但不知道那会是什么好从数据库文件中读取一次,那是在独立存储
感谢
UPDATE: 好吧,这是我从托管公司得到的消息:
I'm afraid it's not possible to amend the permissions to allow
this to work in Integrated mode as it would pose a security risk
in a shared environment. Its unfortunate that your application
wouldn't function with a custom web directory/application as this
has been used as a work around previously.
I can understand the frustration with this as its basically a
failure between two Microsoft technologies which are meant to work
together. Your web application runs under Identity impersonate and
the user it runs as has read,write,modify permisions to all your
web directories, when run in Integrated mode this aspect isn't respected.
这与事实,我不能在服务器上运行的通配符脚本映射相结合,意味着它不会在经典或集成模式下工作。有没有人遇到过这些问题?
如果您可以上传组成该网站的文件,那么您可以上传包含数据库的文件吗? – Widor
是的,我可以直接上传,但我想在页面上有一个文件上传控件,并允许管理员用户每周上传新的数据库。它正在通过网站上传,这是问题,因为我在尝试上传到文件夹时遇到拒绝访问错误。 –
我想你的整体需求还有一点 - 大概这是一些“最终用户”创建的Access文件,必须通过Web界面上传?即他们不能被信任FTP文件,或者有一些处理发生,这意味着你/他们不能直接导入到远程数据库?大多数专业共享主机选项将允许您将一个或多个文件夹标记为可上传(或通过支持请求为您提供) –