我在Windows 8中使用Visual Studio 2015编写了一个程序,并将其安装为Windows服务。
但是,当我在另一个Windows 8中安装该服务并尝试启动它时,我收到以下错误:
Log Name: Application
Source: Application Error
Date: 06/10/2016 16:15:01
Event ID: 1000
Task Category: (100)
Level: Error
Keywords: Classic
User: N/A
Computer: Perinatal
Description:
Faulting application name: perinatal__amor_de_mae__app.exe, version: 0.0.0.0, time stamp: 0x57f68131
Faulting module name: MSVCP140.dll, version: 6.2.9200.17581, time stamp: 0x5644f0df
Exception code: 0xc0000135
Fault offset: 0x00078dd2
Faulting process id: 0xe90
Faulting application start time: 0x01d22005ef6b29f4
Faulting application path: c:\Users\perinatal\Desktop\AmorDeMae\perinatal__amor_de_mae__app.exe
Faulting module path: MSVCP140.dll
Report Id: 2d21619f-8bf9-11e6-be76-000c29f8ce0f
Faulting package full name:
Faulting package-relative application ID:
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
<System>
<Provider Name="Application Error" />
<EventID Qualifiers="0">1000</EventID>
<Level>2</Level>
<Task>100</Task>
<Keywords>0x80000000000000</Keywords>
<TimeCreated SystemTime="2016-10-06T19:15:01.000000000Z" />
<EventRecordID>991320</EventRecordID>
<Channel>Application</Channel>
<Computer>Perinatal</Computer>
<Security />
</System>
<EventData>
<Data>perinatal__amor_de_mae__app.exe</Data>
<Data>0.0.0.0</Data>
<Data>57f68131</Data>
<Data>MSVCP140.dll</Data>
<Data>6.2.9200.17581</Data>
<Data>5644f0df</Data>
<Data>c0000135</Data>
<Data>00078dd2</Data>
<Data>e90</Data>
<Data>01d22005ef6b29f4</Data>
<Data>c:\Users\perinatal\Desktop\AmorDeMae\perinatal__amor_de_mae__app.exe</Data>
<Data>MSVCP140.dll</Data>
<Data>2d21619f-8bf9-11e6-be76-000c29f8ce0f</Data>
<Data>
</Data>
<Data>
</Data>
</EventData>
</Event>
我认为VS在开发计算机中安装了一些东西,但在安装计算机中却没有,但我不知道缺少什么。
有谁知道如何修复它?
非常感谢!
答案 0 :(得分:2)
您需要安装Visual C ++可再发行库。 https://www.microsoft.com/en-us/download/details.aspx?id=48145 或者在项目配置中使用静态运行时重新编译应用程序(应该是/ MT,而不是/ MD)