Reputation: 13
I had added a wsdl as service reference in my project and I got the following error when my code is moved on hosting server it executes fine on local server..
Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: CS0234: The type or namespace name 'IExtensibleDataObject' does not exist in the namespace 'System.Runtime.Serialization' (are you missing an assembly reference?)
Source Error:
[No relevant source lines]
Source File: App_WebReferences.fcpcl-q0.0.cs Line: 20
Show Detailed Compiler Output:
Show Complete Compilation Source:
Version Information: Microsoft .NET Framework Version:2.0.50727.4241; ASP.NET Version:2.0.50727.4223
So if anyone knows the answer please help to sort out the problem.
Upvotes: 1
Views: 1929
Reputation: 36
I run VS 2013 and had the same problem. My code contained "using System.Runtime.Serialization", but when I added System.Runtime.Serialization as a project reference, the message disappeared.
Upvotes: 2
Reputation: 7192
IExtensibleDataObject was added in .NET 3.0. Does the hosting server have .NET 3.0 or later? From the version in your questions, it looks like it might not.
Upvotes: 2