Problem with Web Reference

  • Thread starter Thread starter JezB
  • Start date Start date
J

JezB

Could someone help ?

I'm creating a new project and trying to create a web reference to a web
library assembly I've referenced quite happily from other web projects.
Trouble is : in my new project it refuses to recognise the reference I've
made and gives me the standard error whenever i try to use the reference:

The type or namespace 'PresentationFacade' could not be found (are you
missing a using directive or an assembly reference?)

I've checked and double-checked (and triple-checked) and the web reference
is exactly the same as in projects that uses the web reference without any
problem. When I create the reference I'm renaming it from "localhost" to
"PresentationFacade", but any attempt to refer to this name in code results
in the compile/link error - what am I doing wrong ? It's driving me insane
!!
 
More Info :

My new project is created by re-using some old code (I dragged the .cs files
into the project) which already had code to use the web reference. I simply
made sure that when I created the web reference, it had the same name as
that already used in my code.

This seems to be the problem, since if I create a new (dummy) class file in
the same project I can reference PresentationFacade quite happily.

Is there a restriction that you can only use a web reference in a class file
that you create AFTER the web reference was created ??
 
I guess the Renaming is creating a problem
r u renaming the the referneced dll it self or u r giving it a new name
while u r adding a reference to ur project
if u r doing the first option it will create probs
Atul
 
Back
Top