IIS problem regarding missing assembly - iis

I am getting the following error while trying to load an ASP.net website on IIS.
I created a virtual directory for the website, and though my website contains no reference to any assembly ( I even tried a blank ASP.net website with 1 button) but still with no use.
I am using Windows server 2003 64-bit edition.
Could not load file or assembly 'Microsoft.ReportViewer.WebForms, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.

This could be available in your web.config file under <assemblies> and hence IIS is trying to load it.
In addition you can download report viewer installer from HERE and then try to run your website, it should work once this assembly is available in GAC.

Related

BizTalk 2016 Could not load file or assembly Microsoft.SharePoint.Client

I'm running BizTalk 2016 Developer edition with Feature Pack 2 and CU3. I've configured a Receive location to pull from a SharePoint 2013 library but I'm seeing the following in the event log:
The adapter "Windows SharePoint Services" raised an error message. Details "Could not load file or assembly 'Microsoft.SharePoint.Client, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' or one of its dependencies. The system cannot find the file specified.".
The following suggests this should have been installed to the GAC as part of the BizTalk installation: https://learn.microsoft.com/en-us/biztalk/core/csom-sharepoint-services-adapter . I can't find the assembly on the BizTalk VM.
I've read that Windows Identity Foundation must be installed on the BizTalk Server if using SharePoint CSOM. Server manager was showing that it was installed, although the tick is in a grey box that can't be un-ticked. I ran the PS Remove-WindowsFeature Windows-Identity-Foundation and then added it again using Server Manager - it's now showing with a "full tick". Didn't fix the problem though :(
Anyone else hit this problem?
I was able to solve this by installing the SharePoint Client Components SDK from the following site: https://www.microsoft.com/en-us/download/confirmation.aspx?id=35585
Be sure to restart the host instance of the receive location after installing.

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.

Bad dll file exception when using the Service Fabric template

We are having an issue with Microsoft.ServiceFabric.Actors.dll file in client.
When we created the project using the Service Fabric template, the dll file exists in Service, but not in client, then we tried to reference that dll file from the client project, when we run the client, we got:
An unhandled exception of type 'System.BadImageFormatException'
occurred in mscorlib.dll
Additional information: Could not load file
or assembly 'Microsoft.ServiceFabric.Actors, Version=4.0.0.0,
Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its
dependencies. An attempt was made to load a program with an incorrect
format.
Has anyone had the same issue with dll file, and if so, how should we fix it?
I received the same error when using a client outside of the Service Fabric Application. Make sure your client project is built for the x64 platform.
Follow these steps:
1. Right click on your client project and go to 'Properties'.
2. On the 'Build' tab, set your 'Platform target' to x64.
3. Build your project and use the client.
Service Fabric is x64 only, so make sure you're not using 32-bit.

Custom Application page Ajaxtoolkit error in Sharepoint 2010

I recently migrated MOSS 2007 site to sharepoint 2010. The MOSS 2007 site included a custom application page. With IP address this page is working fine. I have deployed the dll in gac and placed the necessary forms in layouts folder. But using Internat or intranet dns I am getting below error:
An error occurred during the compilation of the requested file, or one of its dependencies. The type 'AjaxControlToolkit.SliderExtender' exists in both 'c:\Windows\assembly\GAC_MSIL\AjaxControlToolkit\3.0.30930.28736__28f01b0e84b6d53e\AjaxControlToolkit.dll' and 'c:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\root\e2b85a3a\aefa6379\assembly\dl3\6cf6a9f3\d0ee2c06_53facd01\AjaxControlToolkit.DLL'
If I delete the dll placed in Temporary ASp.net folder it says not able to find the dll in the temporary folder url. N if i delete gac dll it looks for the dll in gac n throws the same error of unable to find.
I have provided below ajax entry in web.config but its still showing me the same error.
<add namespace="AjaxControlToolkit" assembly="AjaxControlToolkit, Version=3.0.30930.28736, Culture=neutral, PublicKeyToken=28f01b0e84b6d53e" tagPrefix="ajaxToolkit"/>
</controls>
and in tag i added the assembly entry
Try replacing your Ajax Control Toolkit which is compatible with .Net Framework 3.5.
As you have migrated from MOSS 2007, your existing Ajax Control Toolkit might be compatible with .Net Framework 2.0 only.

Publishing Web site without installing Microsoft Report Viewer

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

Resources