How do you debug a single ASPX file?
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: How do you debug a single ASPX file?

Hybrid View

  1. #1
    Join Date
    Dec 2005
    Posts
    180

    How do you debug a single ASPX file?

    How do you debug a single ASPX file?

    I am somewhat new to ASPX files, but I am not new to C#.

    I figured that all asp.net c# projects were run on the server as compiled code. And so there was some sort of binary file somewhere somehow or maybe a XAP file like they have with silverlight.

    But it seems that this is not the case. it seems that, sometimes, you can have an ASPX file along with the code-behing C Sharp file and it runs just like a PHP file. For starters, is that right? Am I right so far?

    Now, if I was the owner of both the ASPX file and the CSHARP code-behind file, how would I go about debugging it in Visual Studio?

    How do I run the code?

    My point is that there is no project to load. There is only a file.

    After setting a break point, there is nothing to run.

    http://i67.photobucket.com/albums/h2...ps92477be0.png

    I have tried attaching to the browser that has the aspx code loaded but then the breakpoints become inactive.

    the file is https://www.seattleu.edu/admission/nonMatricLander.aspx

    and out on the server there is just the aspx file and the accompanying .cs file

    That is all there is. There is no solution file, there is no default.aspx file there is nothing else in the that directory apart from other .aspx files and aspx.cs files.

    If it was a web form, there would be a project file and and or a solution file. There would be something compiled, right? There is nothing like that. there are no dll files

    I think I need to do the following. I need to run the code locally through "localhost" and attach the process through the debugger. How do I run the localhost?

  2. #2
    Join Date
    Jun 2005
    Location
    JHB South Africa
    Posts
    3,770

    Re: How do you debug a single ASPX file?

    VS has a built in IIS Server that can run the ASP projects.. Thing is however i think you have not setup your project correctly..

    What is your project type???

    Also what Ver of VS are you using ???
    Articles VB6 : Break the 2G limit - Animation 1, 2 VB.NET : 2005/8 : Moving Images , Animation 1 , 2 , 3 , User Controls
    WPF Articles : 3D Animation 1 , 2 , 3
    Code snips: VB6 Hex Edit, IP Chat, Copy Prot., Crop, Zoom : .NET IP Chat (V4), Adv. ContextMenus, click Hotspot, Scroll Controls
    Find me in ASP.NET., VB6., VB.NET , Writing Articles, My Genealogy, Forum
    All VS.NET: posts refer to VS.NET 2008 (Pro) unless otherwise stated.

  3. #3
    Join Date
    Apr 2013
    Posts
    1

    Re: How do you debug a single ASPX file?

    Are you trying to debug your ASPx page on your development machine or on production site?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center