473,387 Members | 1,859 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Web Services not seeing References anymore

I started getting errors in my Web Service today that said "The type or namespace 'MyClassLibrary' could not be found (are you missing a using directive or an assembly reference?)"

I've added the reference both ways (via Add Reference menu and the Project Property pages). I've deleted and re-added.

For troubleshooting, I created a brand new solution. Created a c# class library. Then I created a new Web Service project and added that fresh class library to the references. Once I put the "using ClassLibrary1" directive in, I get the same error I mentioned above.

Any idea of whats going on? This webservice was working a day ago. I'm not sure if I've messed a setting up thats affecting all of my webservices now or if something is corrupt. I've been googling this for a few hours now and I'm at a loss.

Thanks in advance
Jul 31 '07 #1
10 1436
TRScheel
638 Expert 512MB
Restarted VS or your computer and see if that fixes it? I know VS has some bugs where similiar things have happenned.
Jul 31 '07 #2
Thanks for the quick response. Yes, I've restarted VS and even my workstation a few times.
Jul 31 '07 #3
TRScheel
638 Expert 512MB
That is bizarre. Is it a custom library?

Edit: Err, is it your custom library or one you found?
Jul 31 '07 #4
I've written 100% of it. I'm really at a loss here because I've written several solutions using this exact architecture.

I figured something might have been hosed in the original project. But for the heck of it, I decided to rule that idea out by starting a new project and having an empty class library and reference it in a brand new webservice project.

Here is a screen shot of that barebones project and the error:

Jul 31 '07 #5
TRScheel
638 Expert 512MB
Right-click the website project and add reference for the library... that should do it... although I have a feeling you have already tried this.
Jul 31 '07 #6
Yeah I've tried that. The strange thing is, intellisense picked up the "ClassLibrary1" in the "using ClassLibrary1" line.
Jul 31 '07 #7
Well, I asked my friend over messenger to follow the same steps as me and his worked fine. He sent me his project, and I cannot build - I get the same error.

I sent him my project that wouldn't build, and he can build it ok.

So it has to be something specific to my workstation - but I'm not really sure what to look for.
Jul 31 '07 #8
TRScheel
638 Expert 512MB
Ya, this is really bizarre. Sounds like something got corrupted (?) or maybe you have a setting that is not allowing it to compile.... Although, I havent a clue what it could be.
Aug 1 '07 #9
The problem is gone finally. I tried running the .net 2.0 framework repair process with no luck. What finally worked was removing .net 2.0 framework, restarting, and installing .net 2.0 framework.

Still not sure what caused this to happen, though.
Aug 1 '07 #10
TRScheel
638 Expert 512MB
The problem is gone finally. I tried running the .net 2.0 framework repair process with no luck. What finally worked was removing .net 2.0 framework, restarting, and installing .net 2.0 framework.

Still not sure what caused this to happen, though.
Hmmm, bizarre indeed
Aug 1 '07 #11

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Chris Dunaway | last post by:
A quick scan of the group did not immediately reveal an answer to my questions so here goes. First let me describe my app and then I'll ask the questions. I am writing a Windows Forms App (not...
8
by: Bill Sonia | last post by:
I've written a Windows Service to send e-mails on events like OnStart, OnStop, OnShutDown using System.Web.Mail. It works for everything but OnShutdown. My guess is that for OnShutDown, once my...
0
by: Saumendra | last post by:
Hi guys, When I am adding a Web Reference in Visual Studio.net, I provide the url to the .vsdisco file, so that Visual Studio.net can dynamically discover all the available Web Services. Now when...
3
by: Matt D | last post by:
I've got two web services that use the same data types and that clients will have to consume. I read the msdn article on sharing types...
4
by: Ryan Wade | last post by:
I am very new to web services and I am creating a thin-client windows app that will access it's data via web services whether on a remote web site of on an intranet server. What are the best...
3
by: Olivier BESSON | last post by:
Hello, I have a web service of my own on a server (vb.net). I must declare it with SoapRpcMethod to be used with JAVA. This is a simple exemple method of my vb source : ...
1
by: fatica | last post by:
Hi everyone, I've recently converted a solution to VS 2005 and .NET 2.0. from '03 and .NET 1.x. The solution has two Web sites in it, both of which need to share each other's code. Previously,...
3
by: =?Utf-8?B?QS4gUm9iaW5zb24=?= | last post by:
I have been looking high and low and can't seem to find anything a little more detailed on the whole RS utility. What I'm looking for specifically is some type of programming reference. Also, I...
10
by: marss | last post by:
<hr style="height:1px"/does not fit because although a line looks like it has 1 pixel with but there are empty spaces above and below line. It can be seen if place two HR elements beside. <hr...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.