473,387 Members | 1,619 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,387 software developers and data experts.

Not able to debug aspx page when called from winform

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 parameter. this GUID is
only cached for about 10 seconds and must be still cached for the page to
load. otherwise, the page redirects to a error page. all of this forces the
page to only be called from winforms app.

I can debug from the winform to the web service and back, but the code wont
step into the aspx page. I used to do this in a vb1.1 app and it worked
great. now I'm using c#2.0 and need to step into the aspx page. can
someone please advise how I can do this. it seems that I just need to
adjust some configuration somewhere.

Thanks.

--
mo*******@noemail.noemail
May 17 '07 #1
5 2325
Not sure how you did this in VS2003 but: load the asp.net web app that hosts
the aspx page in a separate VS2005 instance and attach aspnet_wp.exe (if Win
XP or w3wp.exe for Win2003) process to the VS debugger (menu Deug | Attach to
Process... and make sure the type is 'Managed').

Now, run your win app and it should step in to the aspx page at the
breakpoint you set.

Hope this helps?

"moondaddy" wrote:
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 parameter. this GUID is
only cached for about 10 seconds and must be still cached for the page to
load. otherwise, the page redirects to a error page. all of this forces the
page to only be called from winforms app.

I can debug from the winform to the web service and back, but the code wont
step into the aspx page. I used to do this in a vb1.1 app and it worked
great. now I'm using c#2.0 and need to step into the aspx page. can
someone please advise how I can do this. it seems that I just need to
adjust some configuration somewhere.

Thanks.

--
mo*******@noemail.noemail
May 17 '07 #2
"moondaddy" <mo*******@noemail.noemailwrote in message
news:uI**************@TK2MSFTNGP04.phx.gbl...
>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 parameter. this GUID is
only cached for about 10 seconds and must be still cached for the page to
load. otherwise, the page redirects to a error page. all of this forces
the page to only be called from winforms app.

I can debug from the winform to the web service and back, but the code
wont step into the aspx page. I used to do this in a vb1.1 app and it
worked great. now I'm using c#2.0 and need to step into the aspx page.
can someone please advise how I can do this. it seems that I just need to
adjust some configuration somewhere.
Did you convert your web application into a web site when you upgraded to VS
2005?
--
John Saunders [MVP]
May 17 '07 #3
Thanks for the reply,

the answer to your question is No. this is the situation.

Originaly I built an app in vb1.1 (winforms app talking to an asp.net app
which contained both the aspx page and the asmx page).

Later I installed VS2005 while retaining the install of VS2003. the vb app
continues to work fine.

Now I'm building a new - sepperate app in c#2.0 and it too is a winforms app
that needs the same functionality - call web service, cache GUID, call aspx
page and pass GUID in as param, retrieve cached GUID on server, etc...

So right now today, I can still debug the vb1.1 app from the winforms app
into the WS and back, and into the aspx page and back. But I can not step
into the aspx page in the c# 2.0 app.

"John Saunders [MVP]" <john.saunders at trizetto.comwrote in message
news:Oy**************@TK2MSFTNGP05.phx.gbl...
"moondaddy" <mo*******@noemail.noemailwrote in message
news:uI**************@TK2MSFTNGP04.phx.gbl...
>>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 parameter. this GUID
is only cached for about 10 seconds and must be still cached for the page
to load. otherwise, the page redirects to a error page. all of this
forces the page to only be called from winforms app.

I can debug from the winform to the web service and back, but the code
wont step into the aspx page. I used to do this in a vb1.1 app and it
worked great. now I'm using c#2.0 and need to step into the aspx page.
can someone please advise how I can do this. it seems that I just need
to adjust some configuration somewhere.

Did you convert your web application into a web site when you upgraded to
VS 2005?
--
John Saunders [MVP]


May 17 '07 #4
Please disregard this thread. I figured out the problem as it was a classic
'Stupid User Error'.

When coding the URL to the aspx page I copied the url when I first ran and
tested the page on its own. this url looked something like this:

http://localhost:2100/bla bla bla...

Note the ":2100" which is how VS2005 or asp.net interpreted it.

Then I used the url for web service when it was originally created which was
something like this:

http://localhost/WebAppName/bla bla bla

it used the web app name instead of the 2100. So the web service and aspx
page really were running in different instances of the web app. I just
assumed that the urls created by VS would all work together. when converted
the 2100 to the web app name (the folder the web app lives in) all worked
fine.

Sorry to anyone who read through this thread.

"moondaddy" <mo*******@noemail.noemailwrote in message
news:uI**************@TK2MSFTNGP04.phx.gbl...
>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 parameter. this GUID is
only cached for about 10 seconds and must be still cached for the page to
load. otherwise, the page redirects to a error page. all of this forces
the page to only be called from winforms app.

I can debug from the winform to the web service and back, but the code
wont step into the aspx page. I used to do this in a vb1.1 app and it
worked great. now I'm using c#2.0 and need to step into the aspx page.
can someone please advise how I can do this. it seems that I just need to
adjust some configuration somewhere.

Thanks.

--
mo*******@noemail.noemail

May 18 '07 #5
Please disregard this thread. I figured out the problem as it was a classic
'Stupid User Error'.

When coding the URL to the aspx page I copied the url when I first ran and
tested the page on its own. this url looked something like this:

http://localhost:2100/bla bla bla...

Note the ":2100" which is how VS2005 or asp.net interpreted it.

Then I used the url for web service when it was originally created which was
something like this:

http://localhost/WebAppName/bla bla bla

it used the web app name instead of the 2100. So the web service and aspx
page really were running in different instances of the web app. I just
assumed that the urls created by VS would all work together. when converted
the 2100 to the web app name (the folder the web app lives in) all worked
fine.

Sorry to anyone who read through this thread.

"moondaddy" <mo*******@newsgroup.nospamwrote in message
news:Ou**************@TK2MSFTNGP05.phx.gbl...
Thanks for the reply,

the answer to your question is No. this is the situation.

Originaly I built an app in vb1.1 (winforms app talking to an asp.net app
which contained both the aspx page and the asmx page).

Later I installed VS2005 while retaining the install of VS2003. the vb
app continues to work fine.

Now I'm building a new - sepperate app in c#2.0 and it too is a winforms
app that needs the same functionality - call web service, cache GUID, call
aspx page and pass GUID in as param, retrieve cached GUID on server,
etc...

So right now today, I can still debug the vb1.1 app from the winforms app
into the WS and back, and into the aspx page and back. But I can not step
into the aspx page in the c# 2.0 app.

"John Saunders [MVP]" <john.saunders at trizetto.comwrote in message
news:Oy**************@TK2MSFTNGP05.phx.gbl...
>"moondaddy" <mo*******@noemail.noemailwrote in message
news:uI**************@TK2MSFTNGP04.phx.gbl...
>>>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 parameter. this GUID
is only cached for about 10 seconds and must be still cached for the page
to load. otherwise, the page redirects to a error page. all of this
forces the page to only be called from winforms app.

I can debug from the winform to the web service and back, but the code
wont step into the aspx page. I used to do this in a vb1.1 app and it
worked great. now I'm using c#2.0 and need to step into the aspx page.
can someone please advise how I can do this. it seems that I just need
to adjust some configuration somewhere.

Did you convert your web application into a web site when you upgraded to
VS 2005?
--
John Saunders [MVP]



May 18 '07 #6

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

Similar topics

0
by: Lei Jiang | last post by:
I have a WinForm control embeded in a ASP.NET Web page. When the page started, the place to hold the control only displays a frame with a "X" at left-top corner. I don't know if there are some...
12
by: nospam | last post by:
All the documentation says that leaving an ASP.NET application in debug mode has a big performance hit. I can't detect any difference between debug and non-debug modes. Am I missing something or is...
8
by: | last post by:
I'm starting up the development server myself and using the "Startup Url" property of the web project. The problem is i cannot debug. The debug symbols are never loaded. I realize they are under...
3
by: DQ | last post by:
Hi All, Is there a way to debug a web service program when I test a method via the DefaultWsdlHelpGenerator.aspx file. For example, I have a web service with a given name of "WSTest" that...
0
by: rob | last post by:
I am trying to debug a webservice by steping into a web method called from a windows form project. The strange thing is that sometimes it works but often it does not. When it does not work I get...
3
by: André | last post by:
Hi, I put that question already, but it's still not very clear to me, so ... Assume following option in web.config= debug="false" but in one aspx page (test.aspx) <%@ debug="true" ..%>
6
by: Andrew Rowley | last post by:
I am having trouble getting debug and release builds to work properly with project references using C++ .NET and Visual Studio 2003. I created a test solution, with a basic Windows form C++...
1
by: moondaddy | last post by:
I had to repost this becuase I renewed-changed my msdn alias. Also, the asnwer in the other past did not understand what I'm trying to do, so I'll attempt to clarify. I have a .net 2.0 winforms...
3
by: Chris | last post by:
When I go into debug mode and the web page I am working on opens in the browser via the local Cassini Web Server I get a path appended onto the full path e.g. ...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

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.