C#生成ACCESS文件几点注意事项

1.bin文件夹下有没有Interop.ADOX.dll文件。

2.当前服务器有没有安装access 64位驱动,若没有,可安装AccessDatabaseEngine_X64.exe文件。

3.生成的文件存放在某个盘符下,需要设置访问该文件夹权限的用户,在web.config的中配置:

<system.web>
    <httpHandlers />
    <customErrors mode="On" />
    <httpRuntime maxRequestLength="51200" requestValidationMode="2.0" />
    <authentication mode="Forms">
      <forms loginUrl="/_login/default.aspx" />
    </authentication>
    <identity impersonate="true" userName="域\帐号名称" password="帐号密码" />
    <authorization>
      <allow users="*" />
    </authorization>
    ......
</system.web

 

posted @ 2015-09-23 14:06  Jakin.zhou  阅读(465)  评论(0编辑  收藏  举报