Deployment with Servicestack.Text 4.0.18 in WCF - asp.net

![enter image description here][1]I've build a WCF Class library project in which I've used ServiceStack.Text assembly version 4.0.18 .
My whole soultions is build against .NET 4.0.
The project works fine when debugging, using ASP.NET self-hosting. But I've made another WCF Service Application which includes this class library and I want to deploy the WCF application on IIS, I've deployed on IIS but I get the following error :
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
Parser Error Message: Could not load file or assembly 'AdCarWebService' or one of its dependencies. This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded.
Source Error:
Line 57: <add assembly="System.EnterpriseServices, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
Line 58: <add assembly="System.Web.Mobile, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
Line 59: <add assembly="*"/>
Line 60: <add assembly="System.Runtime.Serialization, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, processorArchitecture=MSIL"/>
Line 61: <add assembly="System.IdentityModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, processorArchitecture=MSIL"/>

Related

ASP.NET IIS error while deploying Excel libraries

I am getting error while deployed the asp.net Application in IIS 7.5 on Windows Server 2008. I have referenced Excel 2007 which is also present in Windows Server 2008.
Here is my web.config code
<system.web>
<compilation debug="true" targetFramework="4.0">
<assemblies>
<add assembly="Microsoft.VisualC, Version=10.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
<add assembly="Microsoft.Office.Interop.Excel, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71E9BCE111E9429C"/>
<add assembly="Microsoft.Office.Tools.Excel.v9.0, Version=9.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
</assemblies>
</compilation>
Getting following error message
Server Error in '/dev' Application.
Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
Parser Error Message: Could not load file or assembly 'Microsoft.Office.Tools.Excel.v9.0, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
Source Error:
An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.
Source File: C:\inetpub\wwwroot\dev\web.config Line: 32
Assembly Load Trace: The following information can be helpful to determine why the assembly 'Microsoft.Office.Tools.Excel.v9.0, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' could not be loaded.
try this solution.
1.Open Visual studio -> visual Studio tools -> Visual studio command prompt
2.Run following command
C:\Windows\system32>gacutil /i c:\Microsoft.VisualStudio.Tools.Office.Runtime.v9.0 (Location of dll)
3. Restart your computer and try.

Error in ASP.NET In web configuration file

I am a java developer so don't know anything about ASP.NET. Please explain in a layman's terms.
Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
Parser Error Message: Could not load file or assembly 'Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
Source Error:
Line 30: <add assembly="System.Web.Extensions.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
Line 31: <add assembly="System.Web.DataVisualization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
Line 32: <add assembly="Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
Line 33: <add assembly="Microsoft.ReportViewer.Common, Version=10.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
Line 34: <add assembly="Microsoft.Build.Framework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
You can install the Microsoft Report Viewer 2010 Redistributable Package and change your references so they point to the ones installed by the package.
Microsoft Report Viewer 2010 Redistributable Package
Search the missing dll in your system
Microsoft.ReportViewer.WebForms.dll
You find them in "C:\Windows\assembly\GAC_MSIL" and put them in the references of your project.
You should add the missing assembly (DLL) references into your project "References" section and then perform the build again to check if is corrected.

Configuration Error in asp mvc 2 project. MvcContrib, Version=2.0.96.0

Could not load file or assembly 'MvcContrib, Version=2.0.96.0' or one of its dependencies.
I am getting this error on my project which is created by some else and I am debugging this on my computer.
I think I know what the problem is, I need to get MvcContrib, Version=2.0.96.0 but I am working on visual studio 2008 and there is no package library installer on it.
How to do this ??
This is how the message comes up.
Parser Error Message: Could not load file or assembly 'MvcContrib, Version=2.0.96.0' or one of its dependencies. The system cannot find the file specified.
Line 46: <add assembly="System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
Line 47: <add assembly="System.Data.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
Line 48: <add assembly="MvcContrib, Version=2.0.96.0"/>
Line 49: </assemblies>
Line 50: </compilation>
Download form here: MVC 2 - 2.0.96.0 & refer the dll in your application.

Error while deploying ASP.net website

Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
Parser Error Message: Could not load file or assembly 'Office, Version=11.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' or one of its dependencies. The system cannot find the file specified.
Source Error:
Line 43: <add assembly="System.Web.Extensions.Design, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
Line 44: <add assembly="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
Line 45: <add assembly="Office, Version=11.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c"/>
Line 46: <add assembly="Microsoft.Office.Interop.Word, Version=11.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c"/></assemblies>
Line 47: </compilation>
Source File: C:\inetpub\wwwroot\toolbar\web.config Line: 45
Assembly Load Trace: The following information can be helpful to determine why the assembly 'Office, Version=11.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' could not be loaded.
WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
Can Anyone help me to solve this problem??I am using windows server 2008 to deploy my website.
Set to Office assembly at your references CopyLocal property to true or put it to hosting manually.
Have you installed the Microsoft Office Primary Interop Assemblies? If not, they are available here:
http://msdn.microsoft.com/en-us/library/aa159923(office.11).aspx

Where to get and how to install (or migrate) missing assemblies for ASP.NET server?

I am migrating web apps to new hosting servers, but when I try to access them to test on the new server, I get all these assemblies not found errors like:
Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
Parser Error Message: Could not load file or assembly 'System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.
Source Error:
Line 28: <compilation debug="false">
Line 29: <assemblies>
Line 30: <add assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
Line 31: <add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
Line 32: <add assembly="System.Web.Extensions.Design, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
Does anyone know where you find these to install or how to migrate them over?
That's part of the ASP.Net AJAX kit.
You will have to either install the ASP.AJAX kit on the server, or include the assemblies in your project. This question and this question say you how you can include the libraries as DLL or JS.

Resources