debugging ControlLibrary (dll) called from ASPX page
-
Hello everyone! I have a question that I have been trying to solve and I can find a solution, if you know please share you wisdom! I'm making a DLL that will be used by a ASPX page, this is not an ASP.NET application, just a DLL loaded by the page. very simple, ControlLibrary code: Namespace hello_world Public Class cHello Public ReadOnly Property sayhello() As String Get Return "hello" End Get End Property End Class End Namespace page code: <%@ Page Language="VB" Explicit="False" %> <%@ import Namespace="hello_world" %> Dim aHello As cHello Sub Page_Load(Sender As Object, E As EventArgs) aHello = New cHello() End Sub !!!!!<%=aHello.sayhello()%>!!!!!!!!! Not much and it works, the only problem I can't debug it. when I put the break point on Public ReadOnly Property sayhello() As String nothing happens, I get my hello on the page but it does not stop... as far as I could find it there use to be an option in studio 2003 called "Enable ASP.NET debugging" but I can't find in 2005. Does anyone knows what I need to do? please help! Thank you ipokrov
-
Hello everyone! I have a question that I have been trying to solve and I can find a solution, if you know please share you wisdom! I'm making a DLL that will be used by a ASPX page, this is not an ASP.NET application, just a DLL loaded by the page. very simple, ControlLibrary code: Namespace hello_world Public Class cHello Public ReadOnly Property sayhello() As String Get Return "hello" End Get End Property End Class End Namespace page code: <%@ Page Language="VB" Explicit="False" %> <%@ import Namespace="hello_world" %> Dim aHello As cHello Sub Page_Load(Sender As Object, E As EventArgs) aHello = New cHello() End Sub !!!!!<%=aHello.sayhello()%>!!!!!!!!! Not much and it works, the only problem I can't debug it. when I put the break point on Public ReadOnly Property sayhello() As String nothing happens, I get my hello on the page but it does not stop... as far as I could find it there use to be an option in studio 2003 called "Enable ASP.NET debugging" but I can't find in 2005. Does anyone knows what I need to do? please help! Thank you ipokrov
I'm not expert in ASP.NET coding or debugging, but it would seem that you have to attach the Debugger to the ASPNET_WP process in order to make this work. You'll find the "Attach to Process..." menu item under the Debug menu.
Dave Kreskowiak Microsoft MVP - Visual Basic