Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Visual Studio.NET / Extensibility / May 2007

Tip: Looking for answers? Try searching our database.

Debugging Web Services: DiscoCodeGenerator

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Sandy Macdonald - 18 May 2007 22:17 GMT
Hi there,

I'm just getting into C# and Visual Studio C#  Express Edition.  I'm looking
to consume a SOAP web service, but have run up against an issue.  After
adding a new web reference, and then trying to instantiate it, I'm getting an
error about the DiscoCodeGenerator:

Warning    3    Custom tool warning: DiscoCodeGenerator unable to initialize
code generator.  No code generated.    C:\Documents and
Settings\mcaplan\Local Settings\Application Data\Temporary
Projects\ConsoleApplication1\Properties\Settings.settings    1    1    
ConsoleApplication1

My best guess is that the DiscoCodeGenerator is chocking on building out the
proxy class code from the imported WSDL.

Is there a way that I can debug this issue to figure out why
DiscoCodeGenerator is failing?

Thanks,

Mike
Bryan Phillips - 20 May 2007 03:00 GMT
Use windbg or another instance of Visual Studio and attach to the web
server process serving the web service.  Configure the debugger to break
on exceptions when thrown and try to consume the web service again and
it should break when the exception occurs.  Use the stack trace and
locals windows to see if anything is amiss.

--
Bryan Phillips
MCT, MCSD, MCDBA, MCSE
Blog:  http://bphillips76.spaces.live.com
Web Site:  http://www.composablesystems.net

> Hi there,
>
[quoted text clipped - 18 lines]
>
> Mike
Sandy Macdonald - 20 May 2007 14:14 GMT
Hi Bryan,

Thanks for the reply.  I wasn't clear about this in my posting, but the
DiscoCodeGenerator error I am getting is on compile.  To my best
knowledge I cannot use the VS debugger to step through the build process
as it relates to the thrown DiscoCodeGenerator error.  Is that correct?

Thanks!

> Use windbg or another instance of Visual Studio and attach to the web
> server process serving the web service.  Configure the debugger to break
[quoted text clipped - 28 lines]
>>
>> Mike
Bryan Phillips - 20 May 2007 14:34 GMT
You can open a 2nd instance of Visual Studio to debug the 1st instance
of Visual Studio.  This is how VS add-ins and packages are debugged.

Since the error is during compile, you may have to also attach to the c#
compiler exe.

--
Bryan Phillips
MCT, MCSD, MCDBA, MCSE
Blog:  http://bphillips76.spaces.live.com
Web Site:  http://www.composablesystems.net

> Hi Bryan,
>
[quoted text clipped - 43 lines]
> >>
> >> Mike

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.