Click to See Complete Forum and Search --> : I don't think I know how to compile properly


CdnRebel
09-11-2007, 02:05 PM
I've been working with Visual Studio 2005, ASP.Net and C# for just a few months and I thought I had only one problem left to resolve. I was told by someone who had a look at my code that the code compiles, but I open the solution file in my webfolder in Visual Studio 2005 and I click on build and the name of my webfolder and I get a message that says "The debugger option "Enable the exception assistant is turned on. This option may cause instability in Web Application projects and it is recommended that it be disabled. Would you like to disable this option now?" I click on no and I get a message:

------ Build started: Project: Furniture, Configuration: Debug Any CPU ------
Furniture -> C:\Furniture\bin\Furniture.dll
========== Build: 1 succeeded or up-to-date, 0 failed, 0 skipped ==========

So then I ftp all the files from my webfolder on my desktop to the website and I get an errror message that looks like one aspx.cs file didn't compile, but I look at another .aspx and it has compiled, but I try the other menu items and they haven't compiled.

Can someone please tell me what I am doing wrong? At one point someone had told me that I could right click on the .aspx.cs files in my solution explorer and individually compile them, but when I right click on the .aspx.cs files, there do not seem to be any options to do that.

I do not have an IIS Server on my computer (I do not have a registered version of Windows XP) and I do not expect to get it on my computer before my Visual Studio 2005 trial expires. I have had no income since January. I am working on my own. If I get this website completed, I'll get income.

Thanks!

Phil Weber
09-11-2007, 03:08 PM
This line:
========== Build: 1 succeeded or up-to-date, 0 failed, 0 skipped ==========

means that your code has compiled successfully. So you do, in fact, know how to compile properly. You may not know how to deploy your code to the Web server correctly, but you do not need to deploy your code in order to develop or debug it.

Also, you do not need to use a trial version of Visual Studio. You may use Visual Web Developer, which is free and has no expiration date. You may download VWD from here: http://msdn.microsoft.com/vstudio/express/vwd/ .

CdnRebel
09-14-2007, 03:35 PM
Hi Phil,

After I hit the play button, which I found from your other message, I got the same debugger option error message as in my first message in this post. When I tried the no button, I got the message: "Unable to start debugging on the webserver. Unable to connect to the webserver. Verify that the webserver is running and the incoming HTTP requests are not blocked by a firewall. Click help for more information."

I need to figure out how to properly search the help for help.

Thanks, I don't have anymore time today to look at it, but I'll be back at it on Monday.

Thanks again,
Mary

CdnRebel
09-17-2007, 04:10 PM
Hi,

I don't think that I have a good enough understanding of where Visual Studio is expecting the project file to be. When I get the message "Unable to start debugging on the webserver. Unable to connect to the webserver. Verify that the webserver is running and that incoming HTTP requests are not blocked by a firewall. Click help for information". The webserver is running and I have no idea if HTTP requests are being blocked by a firewall or how to check that. I think that I have already gotten the bugs out of the code and I would like to know how to properly move all the changed information to the actual live website; so that, I can test it in a separate folder. If I have completed the compiling properly, then I may be moving in the wrong things onto the website.

Someone from another site had gotten me as far as compiling, but has been too busy with a new job to continue helping me. What he had me do was click on the solution file in my web folder on my desktop and it opened in Visual Studio and the solution explorer displayed all the files that were in my webfolder as though the solution folder were the webfolder with everything occurring below it. Then I clicked on build and the project and it gave me the build succeeded message. When I went to move the project into the website with WS_FTP Professional, I opened the web folder on my desktop with WS_FTP Professional and tried to transfer the entire folder onto my webserver folder. It kept stopping the transfer on the aspx.cs files stating that there was already a file on the webserver by that name. The folder name that I used did not exist on the website previously so that error made no sense. Then I ended up stopping the transfer and moving all the files over, subfolder by subfolder and creating new subfolders that did not get created in the webfolder transfer.

If as you said, the compile on my desktop worked, then I must not be moving the correct information to the folder on the webserver. I was not able to open the desktop version of the solution file in WS_FTP Professional and find all the information that was in my webfolder the way I could with Visual Studio.

Any ideas on what I have done wrong, because when I look at the test folder on the webserver using IE browser, it appears as if only one .aspx.cs file has compiled?

Thanks