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 / ASP.NET / Web Services / December 2006

Tip: Looking for answers? Try searching our database.

Debugging reference.vb

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Eric - 07 Dec 2006 17:39 GMT
Hello,

We have VB.NET dll that calls a web service.  The webservice has a
public function DoSomething that has several parameters, in order to
specify the time out and url we added the following hacks to the
Reference.vb:

       Public Sub New(ByVal URL As String, ByVal Timeout As Integer)
           MyBase.New()

           If URL <> "" Then
               Me.Url = URL
           Else
               Me.Url = "http://myurl.asmx"
           End If

           If (Me.IsLocalFileSystemWebService(Me.Url) = True) Then
               Me.UseDefaultCredentials = True
               Me.useDefaultCredentialsSetExplicitly = False
           Else
               Me.useDefaultCredentialsSetExplicitly = True
           End If

           'set timeout
           Me.Timeout = Timeout * 1000

       End Sub

When we ported our app from VS 2003 to VS 2005, it generated a new
References.vb, so I had to go back into it to do our hacks.  The
previous code snippet is the VS.NET 2005 version of the New after I've
made the changes.  I know that you're not supposed to edit the
References.vb, but we're doing several things that I don't think would
be possible otherwise.

Modifying the New got the error to go away when we instantiate the web
service, but I'm getting some further errors so I'm trying to debug my
.NET dll.  I'm having problems stepping into the New method inside
References.vb.  Inside my .NET dll that calls the web service I have:

Dim AWebService As New com.somecopany.www.MyWebService(URL, Timeout)

I can't get into the New method.  I have a breakpoint there, but I see
the message:

The Breakpoint will not currently be hit.  Breakpoints cannot be set in
a method or class with the "DebuggerStepThrough" attribute when the
debugger option, "Just My Code" option is enabled.  Does anyone know
how to turn off the "Just My Code" debugger option?

-Eric
Eric - 07 Dec 2006 18:38 GMT
> Hello,
>
[quoted text clipped - 47 lines]
>
> -Eric

Tools | Options

Then, check "Show All Settings" then uncheck "Enable Just My Code"
allowed me to do it.

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.