473,320 Members | 1,861 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

How do degub aspx page when loaded from winforms app.

I have a .net 1.1 winforms app that calls an aspx page which I need to
debug. I also need to start the debugging process from the winform because
the winform first calls a web service which passed secure data to the web
server and is cached for 10 seconds and returns a guid. when the winform
loads, it passes in this guid as a param to find the data being cached. It
then uses this data for various processing. Therefore, I can't simply set
this aspx page as the default start page or call it from another aspx page.
I think my problem is that the web service runs on one process and the aspx
page runs on a different process or port. the web service and aspx page are
part of the same .net 2.0 app. When I was doing this on a .net 1.1 web app,
debugging was easy and seamless from the winform code to the aspx code.

Please advise.

Thanks.

--
mo*******@newsgroup.nospam
Sep 1 '07 #1
4 1704
A simple way to handle this is to put a Debugger.Break() method call just
above the place in the ASP.NET page's codebehind where you want to start.
This should be ignored in release build mode with debug="false" in web.config
, or you can comment it out to be sure.

-- Peter
Recursion: see Recursion
site: http://www.eggheadcafe.com
unBlog: http://petesbloggerama.blogspot.com
BlogMetaFinder: http://www.blogmetafinder.com

"moondaddy" wrote:
I have a .net 1.1 winforms app that calls an aspx page which I need to
debug. I also need to start the debugging process from the winform because
the winform first calls a web service which passed secure data to the web
server and is cached for 10 seconds and returns a guid. when the winform
loads, it passes in this guid as a param to find the data being cached. It
then uses this data for various processing. Therefore, I can't simply set
this aspx page as the default start page or call it from another aspx page.
I think my problem is that the web service runs on one process and the aspx
page runs on a different process or port. the web service and aspx page are
part of the same .net 2.0 app. When I was doing this on a .net 1.1 web app,
debugging was easy and seamless from the winform code to the aspx code.

Please advise.

Thanks.

--
mo*******@newsgroup.nospam
Sep 1 '07 #2
Thanks for Peter's input.

Hi Moondaddy,

For VS 2005, it does support you to step through into webservice from
client proxy project, however it is specific to ASP.NET webservice rather
than standard asp.net aspx web pages.

For your scenario, if you also have aspx pages that need to debug at the
same time, I would recommend you start another new Visual Studio IDE and
attach to the ASP.NET application process to debug it. You can debug both
the client application and the server-side application in two IDEs at the
same time. This will also make it easy to perform. How do you think?
Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
>From: =?Utf-8?B?UGV0ZXIgQnJvbWJlcmcgW0MjIE1WUF0=?=
<pb*******@yahoo.yohohhoandabottleofrum.com>
>References: <Ot**************@TK2MSFTNGP06.phx.gbl>
Subject: RE: How do degub aspx page when loaded from winforms app.
>NG: microsoft.public.dotnet.framework.aspnet

A simple way to handle this is to put a Debugger.Break() method call just
above the place in the ASP.NET page's codebehind where you want to start.
This should be ignored in release build mode with debug="false" in
web.config
>, or you can comment it out to be sure.

-- Peter
Recursion: see Recursion
site: http://www.eggheadcafe.com
unBlog: http://petesbloggerama.blogspot.com
BlogMetaFinder: http://www.blogmetafinder.com

"moondaddy" wrote:
>I have a .net 1.1 winforms app that calls an aspx page which I need to
debug. I also need to start the debugging process from the winform
because
>the winform first calls a web service which passed secure data to the
web
>server and is cached for 10 seconds and returns a guid. when the
winform
>loads, it passes in this guid as a param to find the data being cached.
It
>then uses this data for various processing. Therefore, I can't simply
set
>this aspx page as the default start page or call it from another aspx
page.
>I think my problem is that the web service runs on one process and the
aspx
>page runs on a different process or port. the web service and aspx page
are
>part of the same .net 2.0 app. When I was doing this on a .net 1.1 web
app,
>debugging was easy and seamless from the winform code to the aspx code.

Please advise.

Thanks.

--
mo*******@newsgroup.nospam
Sep 3 '07 #3
Hi Moondaddy,

Any further question on this? If so, please feel free to post here.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
>
Thanks for Peter's input.

Hi Moondaddy,

For VS 2005, it does support you to step through into webservice from
client proxy project, however it is specific to ASP.NET webservice rather
than standard asp.net aspx web pages.

For your scenario, if you also have aspx pages that need to debug at the
same time, I would recommend you start another new Visual Studio IDE and
attach to the ASP.NET application process to debug it. You can debug both
the client application and the server-side application in two IDEs at the
same time. This will also make it easy to perform. How do you think?
Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
>>From: =?Utf-8?B?UGV0ZXIgQnJvbWJlcmcgW0MjIE1WUF0=?=
<pb*******@yahoo.yohohhoandabottleofrum.com>
>>References: <Ot**************@TK2MSFTNGP06.phx.gbl>
Subject: RE: How do degub aspx page when loaded from winforms app.
>>NG: microsoft.public.dotnet.framework.aspnet

A simple way to handle this is to put a Debugger.Break() method call just
above the place in the ASP.NET page's codebehind where you want to start.
This should be ignored in release build mode with debug="false" in
web.config
>>, or you can comment it out to be sure.

-- Peter
Recursion: see Recursion
site: http://www.eggheadcafe.com
unBlog: http://petesbloggerama.blogspot.com
BlogMetaFinder: http://www.blogmetafinder.com

"moondaddy" wrote:
>>I have a .net 1.1 winforms app that calls an aspx page which I need to
debug. I also need to start the debugging process from the winform
because
>>the winform first calls a web service which passed secure data to the
web
>>server and is cached for 10 seconds and returns a guid. when the
winform
>>loads, it passes in this guid as a param to find the data being cached.
>It
>>then uses this data for various processing. Therefore, I can't simply
set
>>this aspx page as the default start page or call it from another aspx
page.
>>I think my problem is that the web service runs on one process and the
aspx
>>page runs on a different process or port. the web service and aspx
page
>are
>>part of the same .net 2.0 app. When I was doing this on a .net 1.1 web
app,
>>debugging was easy and seamless from the winform code to the aspx code.

Please advise.

Thanks.

--
mo*******@newsgroup.nospam

Sep 5 '07 #4
OK thanks!

"Steven Cheng[MSFT]" <st*****@online.microsoft.comwrote in message
news:p3*************@TK2MSFTNGHUB02.phx.gbl...
Hi Moondaddy,

Any further question on this? If so, please feel free to post here.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead
This posting is provided "AS IS" with no warranties, and confers no
rights.
--------------------
>>
Thanks for Peter's input.

Hi Moondaddy,

For VS 2005, it does support you to step through into webservice from
client proxy project, however it is specific to ASP.NET webservice rather
than standard asp.net aspx web pages.

For your scenario, if you also have aspx pages that need to debug at the
same time, I would recommend you start another new Visual Studio IDE and
attach to the ASP.NET application process to debug it. You can debug both
the client application and the server-side application in two IDEs at the
same time. This will also make it easy to perform. How do you think?
Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead
This posting is provided "AS IS" with no warranties, and confers no
rights.
--------------------
>>>From: =?Utf-8?B?UGV0ZXIgQnJvbWJlcmcgW0MjIE1WUF0=?=
<pb*******@yahoo.yohohhoandabottleofrum.com>
>>>References: <Ot**************@TK2MSFTNGP06.phx.gbl>
Subject: RE: How do degub aspx page when loaded from winforms app.
>>>NG: microsoft.public.dotnet.framework.aspnet

A simple way to handle this is to put a Debugger.Break() method call just
above the place in the ASP.NET page's codebehind where you want to start.
This should be ignored in release build mode with debug="false" in
web.config
>>>, or you can comment it out to be sure.

-- Peter
Recursion: see Recursion
site: http://www.eggheadcafe.com
unBlog: http://petesbloggerama.blogspot.com
BlogMetaFinder: http://www.blogmetafinder.com

"moondaddy" wrote:

I have a .net 1.1 winforms app that calls an aspx page which I need to
debug. I also need to start the debugging process from the winform
because
>>>the winform first calls a web service which passed secure data to the
web
>>>server and is cached for 10 seconds and returns a guid. when the
winform
>>>loads, it passes in this guid as a param to find the data being cached.
>>It
>>>then uses this data for various processing. Therefore, I can't simply
set
>>>this aspx page as the default start page or call it from another aspx
page.
>>>I think my problem is that the web service runs on one process and the
aspx
>>>page runs on a different process or port. the web service and aspx
page
>>are
>>>part of the same .net 2.0 app. When I was doing this on a .net 1.1 web
app,
>>>debugging was easy and seamless from the winform code to the aspx code.

Please advise.

Thanks.

--
mo*******@newsgroup.nospam



Sep 7 '07 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: rachel | last post by:
Hi all, I am new in ASP.Net. I have a question on link multiple web forms together. Here is the scenario: I create an Index.aspx WebForm which consists of a banner and three navigator...
0
by: Bruce E. Pullum | last post by:
Ok, I really need some help here.... I have an ASPX page, that contains a save button. It also has an IFRAME that has a tabstrip and multipage control. What I am trying to do is to allow the...
4
by: Jim Mitchell | last post by:
I tried the following to return an XML string, but it did not seem to return XML Any ideas? Thanks in advance. Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
3
by: Stevie_mac | last post by:
It might be me but... I dont seem to get a Page_Load event when a opening an ASPX in an iFrame. I do geta Page_Load event when an item on the ASPX (inside the iFrame) is clicked but then...
3
by: Tom | last post by:
Hi, I have an index.aspx page which includes top.aspx, left.aspx, main.aspx and bottom.aspx. In the left.aspx, there is a login web control - login.ascx. It keeps session of username and role...
5
by: Earl Teigrob | last post by:
I am creating an application where I would like to give web designers the ablity to create a static html page and dyanamically load it into my application(exactly like loading a user control into a...
1
by: prabhupr | last post by:
Hi Folks I have created a web-site which has ASPX pages and HTM pages. When I load the HTM page the site gets loaded, but fails to load ASPX page with error as follows The page cannot be...
13
by: Bob Jones | last post by:
Here is my situation: I have an aspx file stored in a resource file. All of the C# code is written inline via <script runat="server"tags. Let's call this page B. I also have page A that contains...
5
by: moondaddy | last post by:
I have a .net 2.0 winforms app that calls a web service which creates creates a GUID and caches it, then passes the GUID back to the winform. then it opens a aspx page and passes the GUID as a...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.