为什么会出现此错误访问路径被拒绝。

问题描述:

我在Asp.net上开发了一个Web项目。

我正在尝试将一个excel表上传到sql server并且它在本地主机上运行良好但是当我试图在Godaddy中使用它时服务器它显示如下错误..



访问路径'D:\Hosting\12540715\html\TempFiles \\ \\学生.xlsx'被拒绝。




我也将权限更改为特定文件夹进行读写,然后

I have developed a web project on Asp.net.
I am trying to upload an excel sheet to sql server and It runs fine in local host but when i am trying to use it in Godaddy Server it shows me an error like the following ..

Access to the path 'D:\Hosting\12540715\html\TempFiles\Students.xlsx' is denied.


I also changed the permission to the particular folder to read and write then "

The 'Microsoft.ACE.OLEDB.12.0' provider is not registered on the local machine.



错误显示。



任何机构都可以向我推荐一些解决方案。



谢谢


error showing .

could any body suggest me some solutions .

Thank you

您必须授予服务器上该特定文件夹的权限。如果您使用共享主机(Godaddy),不太可能不能那样做。更好地问Godaddy支持团队。



甚至Crystal报告都需要临时文件夹的权限才能生成输出文件。但AFAIK Godaddy(以及其他托管服务提供商)不支持共享托管的水晶报告。



如果您有自己的服务器,那么您可以这样做。
You have to give permission to that particular folder on server. If you're using shared hosting(Godaddy), unlikely you can't do that. Better ask the Godaddy suppot team.

Even Crystal reports needs permission to temp folder to generate output files. But AFAIK Godaddy(and other hosting providers) doesn't support crystal reports on shared hosting.

If you have own server then you could do that.


我在google时看到的东西。



可能你需要这个



http://social.msdn.microsoft.com/Forums/en-US/1d5c04c7-157f-4955-a14b-41d912d50a64/how-to-fix -error-the-microsoftaceoledb120-provider-is-not-registered-on-local-machine?forum = vstsdb [ ^ ]
i see something when i google it.

possibly you need this

http://social.msdn.microsoft.com/Forums/en-US/1d5c04c7-157f-4955-a14b-41d912d50a64/how-to-fix-error-the-microsoftaceoledb120-provider-is-not-registered-on-the-local-machine?forum=vstsdb[^]