PLEASE HELP. A pop-up error message after compiling the code in Visual Studio.NET??
Hi everyone,
I use Visual Studio .NET environment to write a simple ASP.NET web page that allows a user to enter the "Username", "Password", and then click the "Submit" button. I follows the instruction from one of the textbook that I am reading. My question is after I clicked Debug-->Start, the code is compiled without any error, but a pop-up error message said as the below picture.
I have spent many days, but could not understand what wrong with that. Could someone PLEASE help me to solve this problem? I am very appreciative for any help.
I can't tell you what is wrong but you can get around this by attaching to the process manually. There are instructions on how to do that in the help files. Basically you go to the Debug->Processes in the top menu. Then enter the computer name of the server in the Name textbox and press enter. This will load the processes from that computer. Then find the one with the .NET type probably asp_net or w3wp and double click it. Make sure the .NET CLR (Framework) is checked in the dialog that pops up then press ok or close. The press close on the dialog that is left and you are in debug mode for that site.
Thank you Edneeis. However, I couldn't find any similar process that you mentioned "find the one with the .NET type probably asp_net or w3wp". Do you know any website that gives step-by-step instructions for beginner on how to create a simple web application in VB.NET with the Visual Studio .NET environment?
The help files has an example. Is the web server and the development machine the same? If there is no .NET type then there probably isn't anything to debug.
The web server is the same machine as the development machine. This is weird. One of my friend told me that I have to write something in the "Global.asax" file, but he didn't remember exactly what has to write in there. Thank you for your response
You have to make sure that the debug flag is set but it should be set to true by default. Do you have IIS running? You may want to google the error you get for a resolution. I know sometimes its easier to set the asp.net account to be an admin but that may only be on a server os and then there are some security concerns.
Thank you Edneeis. I do have IIS running on Windows XP Professional. I have spent a lot of time to find a working example on how to connect to Access database from the ASP.NET, but unfortunately I did not get one. I don't know whether there are something wrong with my computer or not.
sorry. Youneed to alos navigate to the directory that has that file. Cant rmember which one, but do a Find for aspnet_regiis.exe on your computer. Then get to that directory in the command prompt and try again.
I found the file "aspnet_regiis.exe " in the directory, C:\Windows\Microsoft.NET\Framework\v1.0.3705\, how can I change to the above directory in the Windows Command? Since I don't know what its current directory is.