Results 1 to 13 of 13

Thread: PLEASE HELP. A pop-up error message after compiling the code in Visual Studio.NET??

  1. #1

    Thread Starter
    New Member
    Join Date
    Feb 2004
    Posts
    15

    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.
    Attached Images Attached Images  

  2. #2
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    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.

  3. #3

    Thread Starter
    New Member
    Join Date
    Feb 2004
    Posts
    15
    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?

  4. #4
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    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.

  5. #5

    Thread Starter
    New Member
    Join Date
    Feb 2004
    Posts
    15
    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

  6. #6
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    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.

  7. #7

    Thread Starter
    New Member
    Join Date
    Feb 2004
    Posts
    15
    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.

  8. #8
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913
    open the visual studio .net command prompt and use

    aspnet_regiis.exe -i
    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

  9. #9

    Thread Starter
    New Member
    Join Date
    Feb 2004
    Posts
    15
    Thank Cander. When I enter your command in the Command Windows and hit enter, it said that "Cammand aspnet_regiis.exe -i is not valid".

  10. #10
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913
    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.
    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

  11. #11

    Thread Starter
    New Member
    Join Date
    Feb 2004
    Posts
    15
    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.

    Thank you so much

  12. #12
    Hyperactive Member ZeroCool's Avatar
    Join Date
    Feb 2002
    Location
    In front of my computer
    Posts
    423
    Just goto
    Start > Run...

    type C:\Windows\Microsoft.NET\Framework\v1.0.3705\aspnet_regiis.exe -i
    Visual Baisc 6 (SP5)
    Windows Xp

  13. #13

    Thread Starter
    New Member
    Join Date
    Feb 2004
    Posts
    15
    Thank you so much folks. I have uninstalled Visual Studio .NET and installed the new version of Visual Studio .NET, and many problems are solved.

Posting Permissions

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



Click Here to Expand Forum to Full Width