The type or namespace name 'ServiceModel' does not exist in the namespace 'System'
Posted on
16th Feb 2014 07:03 pm by
admin
When I locally run the website, it works just fine, but when I uploaded it to the hosting environment, I receive the following error, can you help?
---------------------------------------------------------
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 'ServiceModel' does not exist in the namespace 'System' (are you missing an assembly reference?)
Source Error:
Line 7: using System.Web;
Line 8: using System.Web.Configuration;
Line 9: using System.ServiceModel.Syndication;
Line 10:
Line 11: ///
Source File: c:hostingspaceslubumbasxxxxx.comwwwrootApp_CodeEntitiesBlog.cs Line: 9
------
A compilation error has occurred.
10/21/2009 12:41:46 AM
10/21/2009 6:41:46 AM
5b8c8a7bdc004b6c98dec8bddfba92bd
3
1
0
/LM/W3SVC/28/ROOT-22-129005809056781079
Full
/
C:HostingSpaceslubumbasxxxxx.comwwwroot
SOFTSERV7
5824
w3wp.exe
NT AUTHORITYNETWORK SERVICE
HttpCompileException
c:hostingspaceslubumbasxxxxx.comwwwrootApp_CodeEntitiesBlog.cs(9): error CS0234: The type or namespace name 'ServiceModel' does not exist in the namespace 'System' (are you missing an assembly reference?)
http://xxxxx.com/default.aspx
/default.aspx
False
NT AUTHORITYNETWORK SERVICE
12
NT AUTHORITYNETWORK SERVICE
False
at System.Web.Compilation.AssemblyBuilder.Compile() at System.Web.Compilation.BuildProvidersCompiler.PerformBuild() at System.Web.Compilation.CodeDirectoryCompiler.GetCodeDirectoryAssembly(VirtualPath virtualDir, CodeDirectoryType dirType, String assemblyName, StringSet excludedSubdirectories, Boolean isDirectoryAllowed) at System.Web.Compilation.BuildManager.CompileCodeDirectory(VirtualPath virtualDir, CodeDirectoryType dirType, String assemblyName, StringSet excludedSubdirectories) at System.Web.Compilation.BuildManager.CompileCodeDirectories() at System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled() at System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters)
No comments posted yet
Your Answer:
Login to answer
295
26
Other forums
Procedural to OOP
John Kleijn said that to avoid writing "crappy code", we should learn OOP and common OO pr
What's wrong with my code
sobbing for many days, still don't know why please Help. Why my page isn't posted correctly. In a
Troubles with a spider class
I am building a spider that will crawl through random whitepages (eg. anywho.com, switchboard.com, w
JQuery, Masterpage, and Control issue
Hey everyone, I am using JQuery in several sites so I thought it would be best to place the library
Extract specific information from a PHP Multidimensional Array
Howdy! I've racked my brain over this for 24 hours now. I think it's time I asked for help. I'm lear
Pro-rata Billing in Periodic Billing for Rental
Hi guys,
We have a situation, where a rental contract starts at the mid of the month say
Best way to read this text file.
Hi.I am planning to make a small application in C# to convert the players from Football manager 2010
Displaying image from database
Hi,
I've got a site where that's got a database behind it. Currently it has loads of items in
Display thumbnails as square while retaining aspect ratio
I am trying to figure out a way to make an image display as a square, for example 80x80 pixels, when
Buggy registration system
Hey, I just started scripting in PHP, and I ran into a few problems.
Code: <?php
includ