Connecting Tech Pros Worldwide Forums | Help | Site Map

WS needs reference to custom component

Mike Lewis
Guest
 
Posts: n/a
#1: Apr 3 '06
I need to add a reference to a custom component in a web service. I created
a new web service using VS2005 but there was no place to add a reference in
the Solution Explorer. I could use Notepad to create the web service but
I'd prefer to create it in VS. What do I need to do? Thanks!



Ken Cox - Microsoft MVP
Guest
 
Posts: n/a
#2: Apr 3 '06

re: WS needs reference to custom component


Hi Mike,

I'm confused that you say you can't add a reference in VS2005. Make sure
you're creating a web project.

In Visual Web Developer, I just select the project in Solution Explorer,
right-click and from the context menu, click Add Reference and browse to the
component. The reference is inserted in the web.config file.

Is there something like that in your project?

Ken
Microsoft MVP [ASP.NET]


"Mike Lewis" <mike.lewis@lgeenergy.no_spam.com> wrote in message
news:eCwNk4rVGHA.1236@TK2MSFTNGP11.phx.gbl...[color=blue]
>I need to add a reference to a custom component in a web service. I
>created a new web service using VS2005 but there was no place to add a
>reference in the Solution Explorer. I could use Notepad to create the web
>service but I'd prefer to create it in VS. What do I need to do? Thanks!
>
>[/color]


Mike Lewis
Guest
 
Posts: n/a
#3: Apr 3 '06

re: WS needs reference to custom component


Ken,

When I created the Web Service application, VS generated a file named
Service.cs containing a WebMethod attribute. The solution explorer only
showed this as a cs file - there was no "References" option available.
However, I did go back and look in the menu and found "Add Reference" under
the Website menu option. I haven't yet tried it but this does make the
object appear in Intellisense. Thanks for prompting me along! Now if it
will just work as hoped..

Thanks!
Mike

P.S. From what I've seen, in order to call the web service, I have to
create a proxy. Is this true? If so, can I have the same web service
defined on multiple machines (with a front end load balancer) and use the
virtual IP of the load balancer in the proxy rather than specifying a
specific server?


"Ken Cox - Microsoft MVP" <BANSPAMkjopc@hotmail.com> wrote in message
news:O42WTEuVGHA.1304@tk2msftngp13.phx.gbl...[color=blue]
> Hi Mike,
>
> I'm confused that you say you can't add a reference in VS2005. Make sure
> you're creating a web project.
>
> In Visual Web Developer, I just select the project in Solution Explorer,
> right-click and from the context menu, click Add Reference and browse to
> the component. The reference is inserted in the web.config file.
>
> Is there something like that in your project?
>
> Ken
> Microsoft MVP [ASP.NET]
>
>
> "Mike Lewis" <mike.lewis@lgeenergy.no_spam.com> wrote in message
> news:eCwNk4rVGHA.1236@TK2MSFTNGP11.phx.gbl...[color=green]
>>I need to add a reference to a custom component in a web service. I
>>created a new web service using VS2005 but there was no place to add a
>>reference in the Solution Explorer. I could use Notepad to create the web
>>service but I'd prefer to create it in VS. What do I need to do? Thanks!
>>
>>[/color]
>
>[/color]


Ken Cox - Microsoft MVP
Guest
 
Posts: n/a
#4: Apr 4 '06

re: WS needs reference to custom component


Hi Mike,

You may need to create a proxy, depending on your network setup. The IDE
should help you with that too.

Ken

"Mike Lewis" <mike.lewis@lgeenergy.no_spam.com> wrote in message
news:%23FPN132VGHA.3644@TK2MSFTNGP15.phx.gbl...[color=blue]
> Ken,
>
> When I created the Web Service application, VS generated a file named
> Service.cs containing a WebMethod attribute. The solution explorer only
> showed this as a cs file - there was no "References" option available.
> However, I did go back and look in the menu and found "Add Reference"
> under the Website menu option. I haven't yet tried it but this does make
> the object appear in Intellisense. Thanks for prompting me along! Now if
> it will just work as hoped..
>
> Thanks!
> Mike
>
> P.S. From what I've seen, in order to call the web service, I have to
> create a proxy. Is this true? If so, can I have the same web service
> defined on multiple machines (with a front end load balancer) and use the
> virtual IP of the load balancer in the proxy rather than specifying a
> specific server?
>
>
> "Ken Cox - Microsoft MVP" <BANSPAMkjopc@hotmail.com> wrote in message
> news:O42WTEuVGHA.1304@tk2msftngp13.phx.gbl...[color=green]
>> Hi Mike,
>>
>> I'm confused that you say you can't add a reference in VS2005. Make sure
>> you're creating a web project.
>>
>> In Visual Web Developer, I just select the project in Solution Explorer,
>> right-click and from the context menu, click Add Reference and browse to
>> the component. The reference is inserted in the web.config file.
>>
>> Is there something like that in your project?
>>
>> Ken
>> Microsoft MVP [ASP.NET]
>>
>>
>> "Mike Lewis" <mike.lewis@lgeenergy.no_spam.com> wrote in message
>> news:eCwNk4rVGHA.1236@TK2MSFTNGP11.phx.gbl...[color=darkred]
>>>I need to add a reference to a custom component in a web service. I
>>>created a new web service using VS2005 but there was no place to add a
>>>reference in the Solution Explorer. I could use Notepad to create the
>>>web service but I'd prefer to create it in VS. What do I need to do?
>>>Thanks!
>>>
>>>[/color]
>>
>>[/color]
>
>[/color]


Closed Thread


Similar .NET Framework bytes