the application requires that assembly microsoft.r

2019-01-23 19:45发布

I have a small windows forms application created in Visual Studio 2012 that uses ReportViewer version 11.0.0.0.

The application target framework is .NET 4.0 and its deployment method is ClickOnce

On my PC it installs but on client machines, intallation fails with error

the application requires that assembly microsoft.reportviewer.processingObjectModel version 11.0.0.0 be installed in the global assembly cache first.

On the client machines, i have installed

  • .NET 4.0
  • ReportViewer 2010
  • Microsoft Report Viewer 2012 Runtime CTP
  • SQLSYSCLRTYPES.msi

in the project application files settings, i have set microsoft.reportviewer.processingObjectModel publish status to Include(Auto), in the references i have also set its Copy Local property to True.

what am i missing?

I have even followed the instructions here http://msdn.microsoft.com/en-us/library/ms251723.aspx

9条回答
Viruses.
2楼-- · 2019-01-23 20:07

I encountered this error


System Update Required

Unable to install or run the application. The application requires that assembly Microsoft.ReportViewer.ProcessingObjectModel Version 11.0.0.0 be installed in the Global Assembly Cache (GAC) first.

Please contact your system administrator.


this error popped out when installing an application made from Visual Studio meaning I am one of the client

I have Visual Studio 2015 and a Microsoft SQL Server 2014 and didn't know about Crystal Reports and other related stuff to it. I do check the version of my .NET Framework which is version 4.6.2.

I have several extension files and distributable files downloaded and yet doesn't solve my problem.

I do not know if I solve the problem generally but I do become successful in installing the application

so I downloaded and installed the ff:

  • SAP Crystal Report for Visual Studio 2015(latest, just to make sure)
  • Microsoft System CLR Types for Microsoft SQL Server 2012
  • Microsoft Report Viewer 2012 Runtime.

the problem took me about 2 days to trouble shoot, Be careful on downloading and installing extension files and distributed files cause it will munch some space too.

查看更多
你好瞎i
3楼-- · 2019-01-23 20:09

In case of Windows 10 it won't work installing Microsoft Report Viewer 2010 SP1 as describe by user1236560. First you need to install Prerequisites for SQL Server Management Objects (SQLSysClrTypes.msi) need to choose between x86 and x64 depending on your hardware. You could find it on: http://origin.www.ms.akadns.net/downloads/en/details.aspx?FamilyID=16BC778C-357B-46E9-8356-D575903AC831

After that you need to install MICROSOFT® REPORT VIEWER 2012 RUNTIME that you could find on: https://www.microsoft.com/en-us/download/details.aspx?id=35747

Both of this package will have to be installed.

查看更多
家丑人穷心不美
4楼-- · 2019-01-23 20:12

We had the same issue, but the thing is, its automatically adding it to the references (microsoft.reportviewer.processingObjectModel), if u EXCLUDE it from the publishing properties(properties->publish->application files), It might fix it.

查看更多
在下西门庆
5楼-- · 2019-01-23 20:13

The Best answer is:

Here is (arguably) the best way to deal with this issue... without downloading or installing any extras. This worked with Visual Studio 2012 (Ultimate)

  1. Go to the main project within your solution(default/statup project)
  2. Right Click and Click Properties / Select "Your Project">> Project>> Properties
  3. Click on "Publish" Tab to see publishing options
  4. Go to "Install Mode and Settings">> Click "Application Files" and Dialog opens
  5. Go down and look for the items set with "Publish Status" > Prerequisite You will find ReportViewer and Several Other Files set to Prerequisite
  6. Change all the Publish Statuses to "Include" in the drop down.

I know you only need the ReportViewer Only but this will eliminate other potential problems I came across Now all the required files will be added to your installation setup good to go!

For interest, you can change include a desktop icon under "Install Mode and Settings">>Options>Mainfests>Create Desktop Short Cut

It reduced all of my head aches.

查看更多
女痞
6楼-- · 2019-01-23 20:20

A better option would be to install the Microsoft Report Viewer 2010 SP1 Redistributable Package at: http://www.microsoft.com/en-us/download/details.aspx?id=6610

Your users will need to have this package installed as well. If you just copy and paste a MS DLL, you'll have to redeploy it every time you upgrade your application.

查看更多
一纸荒年 Trace。
7楼-- · 2019-01-23 20:24

It depends on the setup type you are using but basically, it means the required library is missing from your server or computer. To enable the application to download from the server (In a client-server architecture), you need to include the file(s) in the project.

  1. Go to your application option and locate the "Publish" tab
  2. Click on "Application files"
  3. In the ensuing dialog, select to include all the libraries you want included (or that are required to run your application on the client machine and click "Ok")
  4. Build your application and then publish to the server.

I hope this works for you, it worked for me in Visual Studio 2010 Professional

查看更多
登录 后发表回答