I got a new dev windows 10 machine and I'm fetching projects out of TFS and all but one project will build. I'm getting the following error message:
The command "xcopy c:\windows\assembly\gac_msil\microsoft.reportviewer.processingObjectModel\10.0.0.0__b03f5f7f11d50a3a ..\ExtraFilesToPublish /i /h /s /r /y" exited with code 4
I installed the NuGet package:
Install-Package Microsoft.ReportViewer.WebForms
and I'm still getting the error, I do not see the reportviewer folder under the GAC_MSIL folder either. Is there something else I need to install to get this web app built and running 100%?
According to your description, Xcopy exit code 4 means "Initialization error occurred. There is not enough memory or disk space, or you entered an invalid drive name or invalid syntax on the command line."
It looks like Visual Studio is supplying invalid arguments to xcopy. Check your post-build event command via Project Properties > Right Click > Build Events > Post Build Event.
You should modify your command code that if macro terms have spaces in the resulting paths when expanded, then they will need to be wrapped in double quotes.
Else you could try touse the /C option for xcopy. That will stop your work from failing.
We checked the path and this same project builds on other pc's with no issues, as for disk space, I have 1TB drive, so space is not an issue. This project also built fine on a Windows 7 machine, is there something different I should be looking for
on a Windows 10 pc? Also, when I go to the C:\Windows\assembly\GAC_MSIL directory, I don't see a reportviewer folder like I do for other assemblies. Is there a package, update, etc. I need to install for reportviewer?
I think you haven't installed the rdlc report in your computer. Rdlc file is the source of report view control. I suggest you to follow the steps to install report and download Microsoft RDLC Report.
1.Installing from "Extensions and Updates" in Visual Studio 2017. Go to Visual Studio’s Tools Menu > Extensions and Update > Select Microsoft RDLC Report Designer and Reporting Services Project for the Visual Studio.
2.Downloading and installing from Visual Studio MarketPlace. (Search for Microsoft RDLC Report in the search bar and you will easily find the link).Once the installation completes, you have to close/ restart all the instances of the Visual
Studio.
3.Create/Open a project in Visual Studio. You will see that Report and Report Wizard is now available in the Visual Studio 2017.
Firstly, Could you please tell me how did you reinstalled the reportview?There are two ways to install this , you could use nuget or just download install from Visual Studio MarketPlace.
Else,I suggest you to check the path xcopy c:\windows\assembly\gac_msil\ whether it has type message of reportview. I think the problem may be caused by the exception of different type about rdlc and reportview.
The folder it's looing for still doesn't exist on the laptop we're trying to build this one. As I mentioned, the project builds on windows 7 machine with no problem, it hasn't been able to build since updating to window 10
According to your description , I think you could you post this question to forums for report view. They have more experience to solve problems about report view .
after the NuGet said it was successful, it really wasn't, it didn't fully install everything needed. I had to download and install the package needed manually.
Member
15 Points
278 Posts
build error - microsoft.reportviewer
Mar 05, 2019 02:28 PM|uid829402|LINK
I got a new dev windows 10 machine and I'm fetching projects out of TFS and all but one project will build. I'm getting the following error message:
The command "xcopy c:\windows\assembly\gac_msil\microsoft.reportviewer.processingObjectModel\10.0.0.0__b03f5f7f11d50a3a ..\ExtraFilesToPublish /i /h /s /r /y" exited with code 4
I installed the NuGet package:
Install-Package Microsoft.ReportViewer.WebForms
and I'm still getting the error, I do not see the reportviewer folder under the GAC_MSIL folder either. Is there something else I need to install to get this web app built and running 100%?
Participant
1300 Points
522 Posts
Re: build error - microsoft.reportviewer
Mar 06, 2019 02:08 AM|Wei Zhang|LINK
Hi,IGotYourDotNet
According to your description, Xcopy exit code 4 means "Initialization error occurred. There is not enough memory or disk space, or you entered an invalid drive name or invalid syntax on the command line."
It looks like Visual Studio is supplying invalid arguments to xcopy. Check your post-build event command via Project Properties > Right Click > Build Events > Post Build Event.
You should modify your command code that if macro terms have spaces in the resulting paths when expanded, then they will need to be wrapped in double quotes.
Else you could try touse the /C option for xcopy. That will stop your work from failing.
Here is the link , I hope it could help you.
https://stackoverflow.com/questions/5626557/what-is-going-wrong-when-visual-studio-tells-me-xcopy-exited-with-code-4
https://stackoverflow.com/questions/3861474/command-copy-exited-with-code-4-when-building-visual-studio-restart-solves-it/3861640
Best Regards
Wei Zhang
Member
15 Points
278 Posts
Re: build error - microsoft.reportviewer
Mar 08, 2019 01:34 PM|uid829402|LINK
Hi Wei,
We checked the path and this same project builds on other pc's with no issues, as for disk space, I have 1TB drive, so space is not an issue. This project also built fine on a Windows 7 machine, is there something different I should be looking for on a Windows 10 pc? Also, when I go to the C:\Windows\assembly\GAC_MSIL directory, I don't see a reportviewer folder like I do for other assemblies. Is there a package, update, etc. I need to install for reportviewer?
Participant
1300 Points
522 Posts
Re: build error - microsoft.reportviewer
Mar 11, 2019 07:48 AM|Wei Zhang|LINK
Hi,
I think you haven't installed the rdlc report in your computer. Rdlc file is the source of report view control. I suggest you to follow the steps to install report and download Microsoft RDLC Report.
1.Installing from "Extensions and Updates" in Visual Studio 2017. Go to Visual Studio’s Tools Menu > Extensions and Update > Select Microsoft RDLC Report Designer and Reporting Services Project for the Visual Studio.
2.Downloading and installing from Visual Studio MarketPlace. (Search for Microsoft RDLC Report in the search bar and you will easily find the link).Once the installation completes, you have to close/ restart all the instances of the Visual Studio.
3.Create/Open a project in Visual Studio. You will see that Report and Report Wizard is now available in the Visual Studio 2017.
Here is the link , I hope it could help you.
https://www.c-sharpcorner.com/article/install-rdlc-extensions-in-visual-studio-2017/
Best Regards
Wei Zhang
Member
15 Points
278 Posts
Re: build error - microsoft.reportviewer
Mar 11, 2019 02:02 PM|uid829402|LINK
I reinstalled those Friday afternoon and still get the error while trying to build the web app
Participant
1300 Points
522 Posts
Re: build error - microsoft.reportviewer
Mar 12, 2019 03:29 AM|Wei Zhang|LINK
Hi ,
Firstly, Could you please tell me how did you reinstalled the reportview?There are two ways to install this , you could use nuget or just download install from Visual Studio MarketPlace.
Else,I suggest you to check the path xcopy c:\windows\assembly\gac_msil\ whether it has type message of reportview. I think the problem may be caused by the exception of different type about rdlc and reportview.
Best Regards
Wei Zhang
<div align="center"></div>
Member
15 Points
278 Posts
Re: build error - microsoft.reportviewer
Mar 12, 2019 11:16 AM|uid829402|LINK
Through tools --> extensions and updates.
The folder it's looing for still doesn't exist on the laptop we're trying to build this one. As I mentioned, the project builds on windows 7 machine with no problem, it hasn't been able to build since updating to window 10
Participant
1300 Points
522 Posts
Re: build error - microsoft.reportviewer
Mar 13, 2019 01:53 AM|Wei Zhang|LINK
Hi,
According to your description , I think you could you post this question to forums for report view. They have more experience to solve problems about report view .
Here is the link, I hope it could help you.
https://social.msdn.microsoft.com/Forums/en-us/home?forum=vsreportcontrols
Best Regards
Wei
Member
15 Points
278 Posts
Re: build error - microsoft.reportviewer
Mar 13, 2019 05:16 PM|uid829402|LINK
Resolved:
after the NuGet said it was successful, it really wasn't, it didn't fully install everything needed. I had to download and install the package needed manually.