简体   繁体   English

从Excel读取Windows Server 2012 R2上的.net Windows服务

[英].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.

相关问题 Windows Server 2012 R2上Windows Service Platform上的WCFNotSupportedException - WCF on Windows Service PlatformNotSupportedException On Windows Server 2012 R2 在 Windows Server 2012 R2 中运行针对 .net framework 1.0 构建的 Windows 服务 - Running Windows service built against .net framework 1.0 in Windows Server 2012 R2 在C#.net Windows Server R2中从Excel读取 - Reading from excel in C# .net windows server R2 如何使Windows服务从Windows Server 2012 R2中的UI运行 - How to make windows service run from the UI in windows server 2012 R2 Windows Server 2012 R2上的意外崩溃WCF服务 - Unexpected crash WCF Service on Windows Server 2012 R2 将 .net core 项目部署到 Windows Server 2012 r2 - Deploy .net core project to Windows Server 2012 r2 Windows Server 2012 r2 中的波斯文化 - Persian culture in Windows Server 2012 r2 在 Windows Server 2012 R2 上构建的应用程序在 Windows Server 2008 R2 上失败 - Application built on Windows Server 2012 R2 fails on windows server 2008 R2 在Windows Server 2012 R2上运行Asp.net 5 vNext项目(MVC6)发布生成 - Run Asp.net 5 vNext project (MVC6) publish build on Windows Server 2012 R2 Word Documents.Open在ASP.NET Windows Server 2012 R2中返回null - Word Documents.Open returns null in ASP.NET windows server 2012 R2
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM