First time: Open and update the Rainbow solutions file
In this sample scenario, we are going to directly edit the source code on the web server. This simple scenario is only appropriate in a testing environment, of course, and you would never actually edit the source code running on a production server, right?
- Open Vstudio
- File -> Open -> Project from Web...
- Enter the url of your web site in the dialog that appears, e.g.
o http://localhost/rainbow, or
o http://d1eaemam84708.enp.abc.com.sa/rainbow
Need to reconfirm: Note: The choice of how you represent the path is very important and relates to how you set up your PortalAlias string earlier. These two must match or you will not be able to debug your application in Visual Studio.
- On the open dialog that will appear navigate to the real physical directory of web site (e.g. if your web path is C:\inetpub\wwwroot navigate to C:\inetpub\wwwroot\rainbow)
- Select Rainbow.duemetri.net.sln and click open to open the project. The Rainbow project should now be loaded into VisualStudio.NET
- Go ahead and rebuild the entire solution
- Take a peek at the rainbow/bin installation directory on the web server and make sure the newly built Rainbow.dll is there (check the time/date stamp).
- Now try to start up Rainbow using the VS.NET debugger.
Hopefully you got this far successfully!
- When you save this new project, VisualStudio will prompt you to select a name to save the project. You may save this file where ever you like, you do not need to save it on the web server.
NOTE: If you install Rainbow at a different URL than http://localhost/rainbow/ you will need to update Rainbow.duemetri.net.csproj.webinfo to reflect the correct web url.
Opening the solution file for all subsequent use
After you run the process above one time to reconnect the solutions to file to your web server, for all future sessions you can simply open the Rainbow.Dumetri.net.sln file to load Rainbow into Visual Studio.