PC Review


Reply
Thread Tools Rate Thread

"Add Webreference" in VS2008 .NET 2.0 project won't generate dynamiccode...

 
 
Jesse Houwing
Guest
Posts: n/a
 
      15th Jan 2010
Today we tried adding a "Web Reference" to an existing project and while
Visual studio usually generates a dynamic url (e.g. read from the
Properties.Settings), today it wouldn't generate that statement in the
constructor of the service class.

Instead, whatever setting we tried, it generated the code for the static
behavior. It does generate the setting in Properties.Settings. It does
add the information to the app.config, it just won't ever generate the
code to actually use that config data.

Tried removing the service, tried updating the reference, tried removing
a completely new project. No dice.

I ended up adding a class that inherits from the generated service class
and in the constructor I just override the Url with the data from the
Settings file.

Has anyone else seen this? Is it maybe a known bug?

Using Visual Studio 2008 Team Architect Edition with SP1.

--
Jesse Houwing
jesse.houwing at sogeti.nl
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
In VS2008 need to to change some statements that contain " class=" to " cssclass=" AAaron123 Microsoft VB .NET 2 4th Apr 2009 12:24 AM
Defining "Project Task" views within a "Business Project" window Jeff Microsoft Outlook BCM 0 11th Nov 2008 12:50 AM
How to generate the .Net project file ".*proj" dynamically in .Net 2.0 ??? Anubhav Jain Microsoft Dot NET 9 25th Aug 2006 05:29 PM
How to generate the .Net project file ".*proj" dynamically in .Net 2.0 ??? Anubhav Jain Microsoft Dot NET Framework 8 20th Mar 2006 11:45 PM
How to generate the .Net project file ".*proj" dynamically in .Net 2.0 ??? Anubhav Jain Microsoft C# .NET 8 20th Mar 2006 11:45 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:45 AM.