locked
Testing asp.net Website RRS feed

  • Question

  • User-305496339 posted

    Hi Friends,

    How would you recommend testing an asp.net website thats using webforms on my local machine.  Thanks !

    Wednesday, June 12, 2019 9:41 AM

Answers

  • User61956409 posted

    Hi rkrex,

    How would you recommend testing an asp.net website thats using webforms on my local machine. 

    Can you clarify more about your requirement? So that we can understand it better.

    With Regards,

    Fei Han

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, June 12, 2019 9:57 AM
  • User1120430333 posted

    Hi Friends,

    How would you recommend testing an asp.net website thats using webforms on my local machine.  Thanks !

    You can deploy it to local IIS Web server on your development machine and test it. If it works when tested after you deployed it to the  local IIS Web server on your development machine, then it will be a 99.9% chance, the solution will work when you deploy it to IIS on another machine such as a server machine  hosting the  IIS Web server.

    If have a LAN and you have your development machine on a LAN hosting local IIS and your Web site, then you can use another machine on the LAN and test the Website on the Local Area Network (LAN)/Intranet. You should test locally and get all the kinks out before you deploy the Web application to a Web server that is on the WAN (Wide Area Network)/Internet.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, June 12, 2019 10:19 AM
  • User753101303 posted

    Hi,

    It's been a while but I don't remember any particular issue when trying to run and debug a web site project (rather than  a web application project). Or could it be that this is just a raw site that doesn't include any source code ?

    Which version of VS do you use ? What happens when you try ?

    Edit: I created a web site (not a web application project) using VS 2017 and using a breakpoint just works...

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, June 12, 2019 12:23 PM
  • User475983607 posted

    Thanks for your help. But when i said test maybe I should have said i want to set breakpoints and  step through the code and be able to see the values being returned in my visual studio environment. I usually will create a web application but this is a website, so again I was wondering will testing it on my local host web server and setting breakpoints be possible and what things might I need to consider in regards to how are websites and web applications different when testing or debugging. Thanks !!!

    There is no difference.  Just set a break point.  Did you try setting a break point and are having a problem?

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, June 12, 2019 12:24 PM
  • User1120430333 posted

    rkrex

    I can't test it in the visual studio local host environment? Because i need to be able to step through the code and click on controls that have code behind them to see what values are being returned. Thanks !

    Sure you can do it... You can deploy the ASP.NET project right to local IIS using Visual Stuido and debug it, instead of using IIS Express.

    https://docs.microsoft.com/en-us/visualstudio/debugger/how-to-enable-debugging-for-aspnet-applications?view=vs-2017

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, June 12, 2019 1:41 PM

All replies

  • User61956409 posted

    Hi rkrex,

    How would you recommend testing an asp.net website thats using webforms on my local machine. 

    Can you clarify more about your requirement? So that we can understand it better.

    With Regards,

    Fei Han

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, June 12, 2019 9:57 AM
  • User1120430333 posted

    Hi Friends,

    How would you recommend testing an asp.net website thats using webforms on my local machine.  Thanks !

    You can deploy it to local IIS Web server on your development machine and test it. If it works when tested after you deployed it to the  local IIS Web server on your development machine, then it will be a 99.9% chance, the solution will work when you deploy it to IIS on another machine such as a server machine  hosting the  IIS Web server.

    If have a LAN and you have your development machine on a LAN hosting local IIS and your Web site, then you can use another machine on the LAN and test the Website on the Local Area Network (LAN)/Intranet. You should test locally and get all the kinks out before you deploy the Web application to a Web server that is on the WAN (Wide Area Network)/Internet.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, June 12, 2019 10:19 AM
  • User-305496339 posted

    I can't test it in the visual studio local host environment? Because i need to be able to step through the code and click on controls that have code behind them to see what values are being returned. Thanks !

    Wednesday, June 12, 2019 10:28 AM
  • User-305496339 posted

    Thanks for your help. But when i said test maybe I should have said i want to set breakpoints and  step through the code and be able to see the values being returned in my visual studio environment. I usually will create a web application but this is a website, so again I was wondering will testing it on my local host web server and setting breakpoints be possible and what things might I need to consider in regards to how are websites and web applications different when testing or debugging. Thanks !!!

    Wednesday, June 12, 2019 10:58 AM
  • User753101303 posted

    Hi,

    It's been a while but I don't remember any particular issue when trying to run and debug a web site project (rather than  a web application project). Or could it be that this is just a raw site that doesn't include any source code ?

    Which version of VS do you use ? What happens when you try ?

    Edit: I created a web site (not a web application project) using VS 2017 and using a breakpoint just works...

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, June 12, 2019 12:23 PM
  • User475983607 posted

    Thanks for your help. But when i said test maybe I should have said i want to set breakpoints and  step through the code and be able to see the values being returned in my visual studio environment. I usually will create a web application but this is a website, so again I was wondering will testing it on my local host web server and setting breakpoints be possible and what things might I need to consider in regards to how are websites and web applications different when testing or debugging. Thanks !!!

    There is no difference.  Just set a break point.  Did you try setting a break point and are having a problem?

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, June 12, 2019 12:24 PM
  • User1120430333 posted

    rkrex

    I can't test it in the visual studio local host environment? Because i need to be able to step through the code and click on controls that have code behind them to see what values are being returned. Thanks !

    Sure you can do it... You can deploy the ASP.NET project right to local IIS using Visual Stuido and debug it, instead of using IIS Express.

    https://docs.microsoft.com/en-us/visualstudio/debugger/how-to-enable-debugging-for-aspnet-applications?view=vs-2017

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, June 12, 2019 1:41 PM