简体   繁体   English

无法在客户端PC中安装.NET应用程序

[英]Cant install .NET application in Clients PC

My client's PC runs Windows 7 Ultimate with .netframework 4 client profile. 我的客户端的PC运行带有.netframework 4客户端配置文件的Windows 7 Ultimate。 I am unable to install my application developed in VS2008. 我无法安装在VS2008中开发的应用程序。 I tried uninstalling .NET Framework 4 From his PC and running the Clean up tool provided by Microsoft. 我尝试从他的PC上卸载.NET Framework 4并运行Microsoft提供的清理工具。 But still I am unable to install it successfully. 但是我仍然无法成功安装它。 It provides Error 1001. 它提供了错误1001。

I tried running the program as administrator. 我尝试以管理员身份运行该程序。 I also tried to Turn on .net 3.5 feature from add or remove program. 我还尝试通过添加或删除程序打开.net 3.5功能。

Thanks in advance. 提前致谢。 :) :)

Edit: 编辑:

The error what i get is shown here. 我得到的错误显示在这里。

替代文字

Furthermore, 此外,

  1. I have confirmed that it is a 32bit processor and i run x86 release version of setup 我已经确认它是32位处理器,并且运行了x86发行版的安装程序
  2. The application is developed in a Windows 7 OS with .NET Framework 3.5 该应用程序是在带有.NET Framework 3.5的Windows 7 OS中开发的。
  3. I have installed this application in 7 PCs which have .NET 3.5 installed in them and having OS Windows XP,Vista and Windows 7; 我已经在7台装有.NET 3.5的PC上安装了此应用程序,并且这些PC的操作系统为Windows XP,Vista和Windows 7; and all are working fine. 而且一切正常。

  4. In clients PC, when I try to install .NET 3.5 again, the installer starts but then it disappears suddenly without doing anything 在客户端PC中,当我尝试再次安装.NET 3.5时,安装程​​序启动,但随后突然消失而无所事事

  5. I have tried turning on .NET 3.5 framework feature from control panel> Program and Features. 我尝试从控制面板>程序和功能中打开.NET 3.5框架功能。

  6. I have tried running the program as Administrator 我试图以管理员身份运行程序
  7. I have tried setting the application setup in Windows XP and Vista compatible mode. 我尝试在Windows XP和Vista兼容模式下设置应用程序设置。

But still the issue persists. 但是问题仍然存在。

Thanks :) 谢谢 :)

@Niraj.. hope you recognize me.. :) @Niraj ..希望你认识我.. :)

Well, I think the issue is with your installer. 好吧,我认为问题出在您的安装程序上。 Something in your package settings is conflicting with the environment at your client's computer. 软件包设置中的某些内容与客户端计算机上的环境冲突。 With the error message that you posted, it looks like there is some dependency on some assembly which isnt available to the installer, and hence its failing. 收到您发布的错误消息后,看起来对某些程序集存在某种依赖关系,而该组件对于安装程序不可用,因此会导致失败。 This might include version number mismatches too. 这也可能包括版本号不匹配。

You should also look at this question , which talks about an issue similar to yours. 您还应该查看这个问题 ,它讨论的问题与您的问题类似。

or try using FusLogvw.exe to check which assemblies fail to load at runtime. 或者尝试使用FusLogvw.exe检查哪些程序集在运行时无法加载。

As you said you have only .net framework 4 client profile which is a subset of the .NET Framework 4 and is optimized for client applications. 如您所说,您只有.net Framework 4客户端配置文件,它是.NET Framework 4的子集,并且针对客户端应用程序进行了优化。 Please make sure that everything needed for your new application is included in client profile version. 请确保客户端配置文件版本中包含新应用程序所需的所有内容。 Also it is possible that your application installer requires .NET Frw 3.5 as a dependency. 应用程序安装程序也可能需要.NET Frw 3.5作为依赖项。 Anyway as already said by Henk no need to do anything with .NET Frw 4 just install 3.5. 无论如何,正如Henk所说的那样,无需使用.NET Frw 4进行任何操作,只需安装3.5。

There is an exception raised during the installation, and you should as it wished to collect MSI debug log and other necessary information to troubleshoot. 在安装过程中会引发异常,因此您应希望收集MSI调试日志和其他必要信息以进行故障排除。

I don't think .NET 4 is the root cause. 我不认为.NET 4是根本原因。 Otherwise, you should already install this app after uninstallation of .NET 4. 否则,您应该在卸载.NET 4之后已经安装了此应用程序。

in my opinion 在我看来

  1. be sure that you not run X64 application in X86 based computer 确保您不在基于X86的计算机上运行X64应用程序

  2. trying to run them in compatibility mode for OS depend on which OS you used in client system 尝试在兼容模式下为操作系统运行它们取决于您在客户端系统中使用的操作系统

  3. check the prerequested component are installed or not in client system. 检查客户端系统中是否安装了预定组件。

  4. you show the problem 1001 in snapshot so you can Read the log for more information about the setup you trying to install on client side. 您在快照中显示问题1001,因此您可以阅读日志以获取有关尝试在客户端安装的设置的更多信息。

your setup forced client system to load a specific type during the installation and type not exactly load as setup want so they give you a exception called "LoaderException" 您的安装程序强制客户端系统在安装过程中加载特定类型,并且键入的类型不完全符合安装程序的要求,因此它们会给您一个称为“ LoaderException”的异常

for more information start googling may be it solved your problem 欲了解更多信息,请开始谷歌搜索是否可以解决您的问题

http://www.google.co.in/search?sourceid=chrome&ie=UTF-8&q=loaderexception+in+.net&qscrl=1 http://www.google.co.in/search?sourceid=chrome&ie=UTF-8&q=loaderexception+in+.net&qscrl=1

I got it finally...nothing was stopping my application but Crystal Reports. 我终于明白了……除了Crystal Reports,什么都没有停止我的应用程序。 We forgot to include Crystal Reports Basic as a prerequisite. 我们忘记了将Crystal Reports Basic作为先决条件。

Thank you guys for the efforts taken. 谢谢你们所做的努力。 :) :)

Niraj 尼拉吉

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM