Publishing Web site without installing Microsoft Report Viewer - iis

I have a web server with ftp access only, and I can't install Microsoft Report Viewer on it.
How do I publish my asp.net app to the IIS without installing ReportViewer?
I have copied following dlls to my site bin folder:
Microsoft.ReportViewer.WebForms.dll
Microsoft.ReportViewer.Common.dll
Now I am getting error saying:
An error occurred during local report processing.
The definition of the report 'Reports\QuotationViewReport.rdlc' is invalid.
An unexpected error occurred in Report Processing.
Could not load file or assembly 'Microsoft.ReportViewer.ProcessingObjectModel, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
I can't even find a dll named Microsoft.ReportViewer.ProcessingObjectModel.dll in my local machine.
Is it possible to publish my application without installing ReportViewer ?

Pre-requisite : having Microsoft ReportViewer assemblies installed on your development machine (as answered by webkite).
In Visual Studio, from the Add Reference action of your project, choose browse tab and browse to the GAC.
(C:\Windows\assembly\GAC_MSIL).
There, find the Microsoft.ReportViewer.ProcessingObjectModel assembly folder, choose the version sub folder suitable for your needs, and add the assembly as a local reference.
Then locate the assembly in your references list, and switch its Local Copy property to true.
For other report viewer assemblies, you should be able to add them directly from the .Net tab in Add Reference dialog box. Do not forget to switch the Local Copy property to true for them too.
With this setup, the ReportViewer assemblies will be copied to your build directory at each build, and you should be able to copy them easily to your target deployment environment.
You may instead try some of the ReportViewer packages than can be found on NuGet. But none of them seem officialy provided by Microsoft.

Download & Install
Microsoft Report Viewer 2010 Redistributable Package
http://www.microsoft.com/download/en/details.aspx?id=6442

Add these files to your website's bin folder:
Microsoft.ReportViewer.Common.dll
Microsoft.ReportViewer.WebForms.dll
Microsoft.ReportViewer.WebForms.xml

This is now available as a NuGet package:
http://www.nuget.org/packages/Microsoft.ReportViewer.WebForms/
Install-Package Microsoft.ReportViewer.WebForms

try C:\Windows\assembly and search for Microsoft.ReportViewer.ProcessingObjectModel
Or
You can find ReportViewer.exe at the following location: C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\BootStrapper\Packages\ReportViewer\ReportViewer.exe
after you run ReportViewer.exe, the file will copied to the Global Assembly Cache folder on the deployment computer

hello you can find the dll file open your project
and add refrences and choose browse and select c:/windowse /assemple/GAc_msil
here you find microsoft report viewer folders and select what you want

Related

How to install Microsoft Reportviewer exe in web apps service hosted in azure?

In my application we have referred below two dlls:
Microsoft.ReportViewer.Common.dll
Microsoft.ReportViewer.WebForms.dll
with the ReportViewer version 2010
But after deploying to azure web apps I am getting exception that the .rdlc file is invalid where as it works in local dev environment. In local environment I have installed the reportviewer installer.
Below is the exception:
An error occurred during local report processing.
The definition of the report 'Reports\Report1.rdlc' is invalid.
Is it possible to access the system drives and install reportviewer.exe in web apps?
Or please suggest me a way so that the rdlc files can be generated
Here is the resolution:
Add Microsoft.ReportViewer.ProcessingObjectModel.dll in project reference along with Microsoft.ReportViewer.Common.dll and Microsoft.ReportViewer.WebForms.dll
Make sure Microsoft.ReportViewer.ProcessingObjectModel.dll, Microsoft.ReportViewer.Common.dll and Microsoft.ReportViewer.WebForms.dll are present in bin folder in deployed environment.
Note: Make sure all the dlls are of same version.

ajaxcontroltoolkit missed when trying to republish published files on another machine or my local IIS

I have a published web application on specific server. I want to run the same application on another IIS server, but i get this error
Could not load file or assembly 'AjaxControlToolkit' or one of its dependencies. Access is denied.
Exception is here
Installing Report Viewer fixed it.
The problem was that my web.config was targeting .NET 2.0 and has some configuration related to .NET 2.0. I've updated the solution projects to target .NET 4.0 which need the report viewer dll in GAC folder or something global and that's what report viewer installer will do.

Visual Studio Web Installer installing to local source control folder instead of inetpub?

I'm using the VS2013 Installer extension to build a web service installer.
The problem I'm having is that after installing this service, if I go to the inetpub folder, I find no reference to the service I just installed, and the service is evidently installed in the local source folder instead.
This behaviour is consistent regardless of where the installer is run from on the HDD.
If anyone has any insight on this, I'd appreciate it. I assumed that the installation directory would be determined based on the inetpub folder used by the Default Web Site, but it doesn't appear to be.

Not able to setup Umbraco in Visual Studio 2012

I am trying to setup Umbraco in Visual Studio 2012 with Nuget package. After package installation when I try to run it getting following exception.
Type is not resolved for member 'Umbraco.Core.Security.UmbracoBackOfficeIdentity,Umbraco.Core, Version=1.0.5261.28127, Culture=neutral, PublicKeyToken=null'.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Runtime.Serialization.SerializationException: Type is not resolved for member 'Umbraco.Core.Security.UmbracoBackOfficeIdentity,Umbraco.Core, Version=1.0.5261.28127, Culture=neutral, PublicKeyToken=null'.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
I don't recommend using nuget for Umbraco. Using a CMS like that, you won't want to update through nuget once you're in production. Best keep it manually. Here is a step by step to get setup in VS with Umbraco.
Open Visual Studio, create a new "ASP.NET Empty Web Application", with a folder for the solution. Here is how I set it up:
C:\_Websites\[MyProject] --> All this in source control
C:\_Websites\[MyProject]\Website --> .sln file is here
C:\_Websites\[MyProject]\Website\[MyProject] --> .csproj and /bin are here
Download the version of Umbraco you want from here: http://our.umbraco.org/download
Unzip that folder and place it in that [MyProject] folder
Once this is in place, setup your hosts file 127.0.0.1 myproject.local
Setup a new website in IIS, set the binding, make sure the app. pool is using framework 4
Back in Visual Studio, click Show All Files in the Solution explorer and refresh. Include everything in your project.
Build solution and run the website using myproject.local, should be good to go!
I like this setup because Umbraco is developer oriented and this way I control everything. I have to add the references I need manually and this makes me more familiar with the platform as I work with it.
I know I'm not helping you with you problem directly, but this is the setup I use and I never have issues with this. Hope this helps!
I had the same issue when using VS Development Server - try running the program as administrator after selecting "Local IIS Web Server" in the Web section your project properties as explained here.

HRESULT 0x8007006E on including a DLL into a project 'lib' folder

For a project I am working on, my team generates reports on the server with ActiveReports. We've generated a License DLL that allows report functionality to work.
In our VS2012 solution, we've included a /lib/ directory that holds certain external DLLs, such as the ActiveReports assemblies and this license DLL.
However, upon attempting to add the DLL to the project, we get two errors, back to back. I attempted to add the extant DLL using these steps:
In VS 2012, right click our /lib/ folder, and click 'Add Existing Item...'
Browse to the Windows directory where the License DLL Is and select it, click Open.
Upon doing this, though, I receive two errors back to back:
Could not open the file
The system cannot open the device or file specified. (Exception from HRESULT: 0x8007006E)
I have checked my local operating system permissions to ensure that the folder the DLL lives in is accessible, and that the path of the object that appears in VS 2012 points to the correct place. Question: What is causing this error? Surely, I'm missing something...
I received the same error trying to open a file with VS's binary editor. The file was already open in another app. After closing the other app and I was able to open the file in VS without error.

Resources