[英].net Windows service on windows server 2012 R2 read from excel
I have a .net windows service built to read from excel and write on excel sheet ,, i have installed it on windows server 2012 R2 and received this error message,although full permission have been set to the folder : 我有一个.net Windows服务,可以从excel读取并在excel工作表上写,我已将其安装在Windows Server 2012 R2上并收到此错误消息,尽管已将完全权限设置为该文件夹:
Microsoft Excel cannot access the file . Microsoft Excel无法访问该文件。 There are several possible reasons: • The file name or path does not exist. 有几种可能的原因:•文件名或路径不存在。 • The file is being used by another program. •该文件正在被另一个程序使用。 • The workbook you are trying to save has the same name as a currently open workbook. •您要保存的工作簿与当前打开的工作簿具有相同的名称。
Uninstall the current service and use below steps - 卸载当前服务并使用以下步骤-
go to start > All Programs > Microsoft Visual Studio> Visual Studio Tools 转到开始>所有程序> Microsoft Visual Studio> Visual Studio工具
right click on "Developer Command Prompt for vs(version)" > go to "Run as Administrator" 右键单击“ vs(version)的Developer命令提示符”>转到“以管理员身份运行”
Enter the command to install your service. 输入命令以安装服务。
installutil.exe E:\\Projects\\MyNewService\\MyTestService.exe installutil.exe E:\\ Projects \\ MyNewService \\ MyTestService.exe
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.