This is a discussion on ServiceModel does not Exist in namespace System within the .Net Development forums, part of the Programming & Scripting category; I'm doing some work on WCF web services etc. and this requires using System.ServiceModel namespace. When I add a using ...
| |||||||
|
#1
| ||||
| ||||
| I'm doing some work on WCF web services etc. and this requires using System.ServiceModel namespace. When I add a using statement for this namespace though, VS underlines it saying it doesn't exist in the Namespace System. When I upload the app to the server and run it, it works fine. I've read the stuff on google and have uninstalled MS .NET Framework 3.5 completely. I've also uninstalled MS .NET CF 3.5 and then reinstalled that, but it still gives the same error. Any ideas what I can do to get it to recognise this namespace? If I open Object Browser, the namespace is in their, so I don't understand why it won't find it when I try using it in code. Any ideas?
__________________ Join the folding team |
|
#2
| ||||
| ||||
| OK. I think I sorted it by Adding a Reference to the project. Right click on the root of the project in Solution Explorer and select Add Reference. Then scroll to the reference needed and click add. Not quite sure why you need to add some references and not others, but that seems to have sorted the problem. Just having to reinstall all the .NET Frameworks now... |
|
#3
| ||||
| ||||
| OK. I tried the same with System.ServiceModel.Web and that didn't work... ![]() I just have the .NET 3.5 SP1 Framework installed. Should I reinstall the Compact version as well. Any ideas? Perhaps a reboot will fix it... |
|
#5
| ||||
| ||||
| I've had to do that where the dll was missing from the web server. It's not a big deal, though.
__________________ jmurrayhead If you agree with me... click the icon! If my post solved your problem, click the button in the lower right-hand corner of the post.If you like it here...throw us a few bones to help support us. Join our Folding team: DeveloperBarn Folding |
|
#6
| ||||
| ||||
| Quote:
No biggie though I guess... |
![]() |
|
| Bookmarks |
| Tags |
| servicemodel, system, wcf |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| New Blog System | jmurrayhead | Announcements | 1 | December 1st, 2008 07:55 PM |
| ambiguous in the namespace 'ASP' | richyrich | .Net Development | 10 | May 30th, 2008 04:11 PM |