Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Problem with starting a new web site project (.NET 2.0)

Problem with starting a new web site project (.NET 2.0)

Scheduled Pinned Locked Moved ASP.NET
csharpasp-nethelpjsonquestion
9 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    Kasic Slobodan
    wrote on last edited by
    #1

    Hi. I have very irritating problem with running ASPNET 2.0 project. I've created a new web site and when I want to run it (F5) I get an error: 'ASP.NET runtime error: Unexpected end of file while parsing Comment has occurred. Line 417, position 1. (C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Config\web.config line 417) c:\inetpub\wwwroot\mrs\Default.aspx' pointing to <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %> .NET version is 2.0.50727.42. It worked before. I just started on ASPNET20 project and I get this f-ing error. WTF is going on? Am I doing something wrong?

    K J 2 Replies Last reply
    0
    • K Kasic Slobodan

      Hi. I have very irritating problem with running ASPNET 2.0 project. I've created a new web site and when I want to run it (F5) I get an error: 'ASP.NET runtime error: Unexpected end of file while parsing Comment has occurred. Line 417, position 1. (C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Config\web.config line 417) c:\inetpub\wwwroot\mrs\Default.aspx' pointing to <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %> .NET version is 2.0.50727.42. It worked before. I just started on ASPNET20 project and I get this f-ing error. WTF is going on? Am I doing something wrong?

      K Offline
      K Offline
      kubben
      wrote on last edited by
      #2

      You have a problem in your root web.config file. Have you been making manual changes to this file? Go to the web.config file from the error path and look at line 417. Most likely you are somebody else added something to the web.config that is not valid. You might be missing a closing tag or something. Hope that helps. Ben

      K 1 Reply Last reply
      0
      • K kubben

        You have a problem in your root web.config file. Have you been making manual changes to this file? Go to the web.config file from the error path and look at line 417. Most likely you are somebody else added something to the web.config that is not valid. You might be missing a closing tag or something. Hope that helps. Ben

        K Offline
        K Offline
        Kasic Slobodan
        wrote on last edited by
        #3

        I have been making changes to this file, but after that error occurred and I only comment all those inside web.config leaving only node, but then I get: "No http handler was found for request type 'GET'". The problem is that 417th line doesn't exist in this web.config file. 415 is the last line. When I was trying to workaround this problem, I noticed that VS.NET highlighed this in web.config in c:\windows...

        <add assembly="System.EnterpriseServices, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />

        This is inside node and everyone have version=2.0.0.0... I don't know if it helps if I change the version of all the nodes to 2.0.50727.42 which is the current version of installed .NET framework? I don't have any solution (.sln) or .csproj file in my ASPNET projects root. -- modified at 17:25 Sunday 6th May, 2007

        K 1 Reply Last reply
        0
        • K Kasic Slobodan

          I have been making changes to this file, but after that error occurred and I only comment all those inside web.config leaving only node, but then I get: "No http handler was found for request type 'GET'". The problem is that 417th line doesn't exist in this web.config file. 415 is the last line. When I was trying to workaround this problem, I noticed that VS.NET highlighed this in web.config in c:\windows...

          <add assembly="System.EnterpriseServices, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />

          This is inside node and everyone have version=2.0.0.0... I don't know if it helps if I change the version of all the nodes to 2.0.50727.42 which is the current version of installed .NET framework? I don't have any solution (.sln) or .csproj file in my ASPNET projects root. -- modified at 17:25 Sunday 6th May, 2007

          K Offline
          K Offline
          kubben
          wrote on last edited by
          #4

          I don't think changing that version will help. That is the dll version which is not the same as the framework version. If that line was getting highlighted then there is a good chance that the error in the config file is somewhere around there. It could be the line before or after. I think if you could put that config file back to its orginal state and then see if you still get the error. I would guess that you would not. Then if you start from that point and slowly add one new line at a time, you migth be able to figure out where the error is. The config file errors can often be a pain. It can sometimes be something simple like a missing < or >, but sometimes it is not having things in the correct sections, which can be harder to figure out. Ben

          K 1 Reply Last reply
          0
          • K kubben

            I don't think changing that version will help. That is the dll version which is not the same as the framework version. If that line was getting highlighted then there is a good chance that the error in the config file is somewhere around there. It could be the line before or after. I think if you could put that config file back to its orginal state and then see if you still get the error. I would guess that you would not. Then if you start from that point and slowly add one new line at a time, you migth be able to figure out where the error is. The config file errors can often be a pain. It can sometimes be something simple like a missing < or >, but sometimes it is not having things in the correct sections, which can be harder to figure out. Ben

            K Offline
            K Offline
            Kasic Slobodan
            wrote on last edited by
            #5

            Thanks for the reply. For now, it works. I didn't knew what else to do so I add reference to System.EnterpriseServices hoping that will work and it works :omg:. Compiling and running. Now I have System.EnterpriseServices.dll in my Bin folder. Maybe that helps a bit? I think that this is (definitely) problem something on my computer, so if I deploy ASPNET web site elsewhere, I think that this won't be an issue. Web.config is back how it was (or I think so :)), but I will take a look one more time.

            K 1 Reply Last reply
            0
            • K Kasic Slobodan

              Thanks for the reply. For now, it works. I didn't knew what else to do so I add reference to System.EnterpriseServices hoping that will work and it works :omg:. Compiling and running. Now I have System.EnterpriseServices.dll in my Bin folder. Maybe that helps a bit? I think that this is (definitely) problem something on my computer, so if I deploy ASPNET web site elsewhere, I think that this won't be an issue. Web.config is back how it was (or I think so :)), but I will take a look one more time.

              K Offline
              K Offline
              kubben
              wrote on last edited by
              #6

              I think adding the dll is what fixed it. I am glad you figured it out. Ben

              K 1 Reply Last reply
              0
              • K kubben

                I think adding the dll is what fixed it. I am glad you figured it out. Ben

                K Offline
                K Offline
                Kasic Slobodan
                wrote on last edited by
                #7

                I hope that I will figure out how to run ASPNET20 project without referencing that dll. I think that this dll should be reference automatically from GAC? Thanks for your time and help. I appreciate that.

                1 Reply Last reply
                0
                • K Kasic Slobodan

                  Hi. I have very irritating problem with running ASPNET 2.0 project. I've created a new web site and when I want to run it (F5) I get an error: 'ASP.NET runtime error: Unexpected end of file while parsing Comment has occurred. Line 417, position 1. (C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Config\web.config line 417) c:\inetpub\wwwroot\mrs\Default.aspx' pointing to <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %> .NET version is 2.0.50727.42. It worked before. I just started on ASPNET20 project and I get this f-ing error. WTF is going on? Am I doing something wrong?

                  J Offline
                  J Offline
                  Jaiprakash M Bankolli
                  wrote on last edited by
                  #8

                  My understanding is that recently you must have added the code behind class in some namespace so what you need to do is <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="Namespace.classname" %> Also just in case if there is still some problem then see the web.config all the sections are properly typed, even change in case could can emit some errors

                  Regards, Jaiprakash M Bankolli jaiprakash.bankolli@gmail.com My Blog Suggestions for me

                  K 1 Reply Last reply
                  0
                  • J Jaiprakash M Bankolli

                    My understanding is that recently you must have added the code behind class in some namespace so what you need to do is <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="Namespace.classname" %> Also just in case if there is still some problem then see the web.config all the sections are properly typed, even change in case could can emit some errors

                    Regards, Jaiprakash M Bankolli jaiprakash.bankolli@gmail.com My Blog Suggestions for me

                    K Offline
                    K Offline
                    Kasic Slobodan
                    wrote on last edited by
                    #9

                    I will try it, but I want aspnet20 to work without that reference or inheritance. Thanks for the reply.

                    1 Reply Last reply
                    0
                    Reply
                    • Reply as topic
                    Log in to reply
                    • Oldest to Newest
                    • Newest to Oldest
                    • Most Votes


                    • Login

                    • Don't have an account? Register

                    • Login or register to search.
                    • First post
                      Last post
                    0
                    • Categories
                    • Recent
                    • Tags
                    • Popular
                    • World
                    • Users
                    • Groups