当前位置:网站首页>Access is denied encountered when vfpbs calls excel under IIS
Access is denied encountered when vfpbs calls excel under IIS
2022-06-30 05:20:00 【VFP of Garfield】
The first part is under the development mode , Successfully completed EXCEL The function of uploading and saving in the database , But publish to IIS But there was an error in .
According to this error prompt , It's called EXCEL com Component does not have permission .
The methods found on the Internet are as follows :
1. function Dcomcnfg.exe
2. Component service ―― Computer ―― My computer ――DCOM To configure ―― find microsoft Excel
3. Click properties
4. choice “ Security ”
5. selected “ Use custom access ” and “ Use custom startup permissions ”
I watched it for a long time , Still don't see , It turns out that we need to be in 32 Adjust in bit mode
If there is 32 position Office Of 64 Bit servers , This... May not be found DCOM Set up . You need to run... From the command prompt "MMC -32" Start up 32 position MMC, And then from " file ">“ add to / Delete snap in " Add... To the menu " Component service ”.
- add to 32 Bit component service

- find microsoft EXCEL Application

- Set access and startup permissions

Try again after setting , Sure enough , The pit is coming again , Tips
Microsoft Office Excel Can't access file “a.xls”. The possible reasons are :
? The file name or path does not exist .
? The file is being used by other programs .
? The workbook you are saving has the same name as the currently open workbook
I watched it for a long time , The path is right , None of these tips match . Continue to troubleshoot .
Finally found
This solution is …
?Windows 2008 Server x64
Please make this folder.
C:\Windows\SysWOW64\config\systemprofile\Desktop
?Windows 2008 Server x86
Please make this folder.
C:\Windows\System32\config\systemprofile\Desktop
…instead of dcomcnfg.exe.
This operation took away office automation problems in my system.
A Desktop folder seems to be necessary in the systemprofile folder to open file by Excel.
It disappears from Windows2008, Windows2003 had the folder,
and I think it cause this error.
win2008,win2003 There will be this problem .
That is to say C:\Windows\System32\config\systemprofile and C:\Windows\SysWOW64\config\systemprofile Create a directory named Desktop Directory can solve the problem .
So far, the problem has been solved perfectly .
边栏推荐
- 003-JS-DOM-Attr-innerText
- Chapter 12 pipeline monitoring of OpenGL super classic (version 7)
- Assembly learning tutorial: accessing memory (3)
- Unity mobile end sliding screen rotation
- Chapter 8 primitive processing of OpenGL super classic (version 7)
- Win10 vs2015 compiling curaengine
- Chapter 10 of OpenGL super classic (7th Edition) calculation shader
- Question mark (?) in Cron expression Use of
- UnityEngine. JsonUtility. The pit of fromjason()
- Fifty years ago, the go code first submitted by the inventor of Hello world was as long as this
猜你喜欢

Unity3d packaging and publishing APK process

Chinese pycharm changed to English pycharm

Database base (Study & review for self use)

Unity screenshot method

LxC and LXD container summary

Unit asynchronous jump progress

Intellj idea jars projects containing external lib to other project reference methods - jars
![[note] usage model tree of the unity resource tree structure virtualizingtreeview](/img/3e/fe5610c797a14554ad735172c3ab54.jpg)
[note] usage model tree of the unity resource tree structure virtualizingtreeview

MinGW-w64下载文件失败the file has been downloaded incorrectly!

14x1.5cm竖向标签有点难,VFP调用BarTender来打印
随机推荐
Very nervous. What should I do on the first day of software testing?
Parkour demo
使用码云PublicHoliday项目判断某天是否为工作日
Unity scroll view element drag and drop to automatically adsorb centering and card effect
Pytorch的安装以及入门使用
Bev instance prediction based on monocular camera (iccv 2021)
Redis cluster concept
2021-06-17 solve the problem of QML borderless window stretching, window jitter and flicker when stretching and shrinking
Operation of JSON file
Database base (Study & review for self use)
The difference between SVG and canvas
Unity multiple UI page turning left and right
Unity shader flat shadow
【LeetCode】Easy | 225. Using queue to realize stack (pure C manual tearing queue)
【 VCS + Verdi joint simulation】 ~ Taking Counter as an Example
Leetcode 180 Consecutive numbers (2022.06.29)
Nestjs introduction and environment construction
Unity mobile end sliding screen rotation
Unity + hololens common basic functions
Unity camera control