Compile error when 2 pages use same codebehind file

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Thomas Connolly

    #1

    Compile error when 2 pages use same codebehind file

    I have 2 pages referencing the same codebehind file in my
    project. Originally the pages referenced separate code
    behind files. Once I changed the reference to the same
    file, everything worked fine while the file was in the
    project directory. When the obsolete file was removed
    from the project directory, my application will no longer
    compile. Can someone please help with this issue?

    Thank in advance,
    Tom
  • Thomas Connolly

    #2
    RE: Compile Error

    Yes I did get an error message saying that the source
    files of the obsolete pages cannot be found.

    [color=blue]
    >-----Original Message-----
    >Hi Tom,
    >
    >Do you get an error when you compile? What's the error?
    >
    >Jim Cheshire
    >Developer Support
    >ASP.NET
    >jamesche@onlin e.microsoft.com
    >
    >This post is provided as-is with no warranties and[/color]
    confers no rights.[color=blue]
    >
    >--------------------[color=green]
    >>Content-Class: urn:content-classes:message
    >>From: "Thomas Connolly"[/color][/color]
    <thomas.connoll y@us.ssiworldwi de.com>[color=blue][color=green]
    >>Sender: "Thomas Connolly"[/color][/color]
    <thomas.connoll y@us.ssiworldwi de.com>[color=blue][color=green]
    >>Subject: Compile error when 2 pages use same codebehind[/color][/color]
    file[color=blue][color=green]
    >>Date: Fri, 25 Jul 2003 15:16:22 -0700
    >>Lines: 10
    >>Message-ID: <02ec01c352fa$6 1828070$a501280 a@phx.gbl>
    >>MIME-Version: 1.0
    >>Content-Type: text/plain;
    >> charset="iso-8859-1"
    >>Content-Transfer-Encoding: 7bit
    >>X-Newsreader: Microsoft CDO for Windows 2000
    >>X-MIMEOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
    >>Thread-Index: AcNS+mGCgbv5w+S ZStmdnoMjjLKCPA ==
    >>Newsgroups: microsoft.publi c.dotnet.framew ork.aspnet
    >>Path: cpmsftngxa06.ph x.gbl
    >>Xref: cpmsftngxa06.ph x.gbl[/color][/color]
    microsoft.publi c.dotnet.framew ork.aspnet:1622 50[color=blue][color=green]
    >>NNTP-Posting-Host: TK2MSFTNGXA13 10.40.1.165
    >>X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.aspnet
    >>
    >>I have 2 pages referencing the same codebehind file in[/color][/color]
    my[color=blue][color=green]
    >>project. Originally the pages referenced separate code
    >>behind files. Once I changed the reference to the same
    >>file, everything worked fine while the file was in the
    >>project directory. When the obsolete file was removed
    >>from the project directory, my application will no[/color][/color]
    longer[color=blue][color=green]
    >>compile. Can someone please help with this issue?
    >>
    >>Thank in advance,
    >>Tom
    >>[/color]
    >
    >.
    >[/color]

    Comment

    • Thomas Connolly

      #3
      RE: Compile error when 2 pages use same codebehind file

      To be more specific, here is the error:
      Source file 'C:\Inetpub\www root\WYIRIS\FAQ _Txt.aspx.cs'
      could not be opened ('The system cannot find the file
      specified. ')
      [color=blue]
      >-----Original Message-----
      >Hi Tom,
      >
      >Do you get an error when you compile? What's the error?
      >
      >Jim Cheshire
      >Developer Support
      >ASP.NET
      >jamesche@onlin e.microsoft.com
      >
      >This post is provided as-is with no warranties and[/color]
      confers no rights.[color=blue]
      >
      >--------------------[color=green]
      >>Content-Class: urn:content-classes:message
      >>From: "Thomas Connolly"[/color][/color]
      <thomas.connoll y@us.ssiworldwi de.com>[color=blue][color=green]
      >>Sender: "Thomas Connolly"[/color][/color]
      <thomas.connoll y@us.ssiworldwi de.com>[color=blue][color=green]
      >>Subject: Compile error when 2 pages use same codebehind[/color][/color]
      file[color=blue][color=green]
      >>Date: Fri, 25 Jul 2003 15:16:22 -0700
      >>Lines: 10
      >>Message-ID: <02ec01c352fa$6 1828070$a501280 a@phx.gbl>
      >>MIME-Version: 1.0
      >>Content-Type: text/plain;
      >> charset="iso-8859-1"
      >>Content-Transfer-Encoding: 7bit
      >>X-Newsreader: Microsoft CDO for Windows 2000
      >>X-MIMEOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
      >>Thread-Index: AcNS+mGCgbv5w+S ZStmdnoMjjLKCPA ==
      >>Newsgroups: microsoft.publi c.dotnet.framew ork.aspnet
      >>Path: cpmsftngxa06.ph x.gbl
      >>Xref: cpmsftngxa06.ph x.gbl[/color][/color]
      microsoft.publi c.dotnet.framew ork.aspnet:1622 50[color=blue][color=green]
      >>NNTP-Posting-Host: TK2MSFTNGXA13 10.40.1.165
      >>X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.aspnet
      >>
      >>I have 2 pages referencing the same codebehind file in[/color][/color]
      my[color=blue][color=green]
      >>project. Originally the pages referenced separate code
      >>behind files. Once I changed the reference to the same
      >>file, everything worked fine while the file was in the
      >>project directory. When the obsolete file was removed
      >>from the project directory, my application will no[/color][/color]
      longer[color=blue][color=green]
      >>compile. Can someone please help with this issue?
      >>
      >>Thank in advance,
      >>Tom
      >>[/color]
      >
      >.
      >[/color]

      Comment

      • Ron McNulty

        #4
        Re: Compile error when 2 pages use same codebehind file

        Open the .csproj and .sln files with a text editor, and search for
        references to the obsolete file. I have had similar problems when deleting
        unwanted code behind files.

        Regards

        Ron

        "Thomas Connolly" <thomas.connoll y@us.ssiworldwi de.com> wrote in message
        news:02ec01c352 fa$61828070$a50 1280a@phx.gbl.. .[color=blue]
        > I have 2 pages referencing the same codebehind file in my
        > project. Originally the pages referenced separate code
        > behind files. Once I changed the reference to the same
        > file, everything worked fine while the file was in the
        > project directory. When the obsolete file was removed
        > from the project directory, my application will no longer
        > compile. Can someone please help with this issue?
        >
        > Thank in advance,
        > Tom[/color]


        Comment

        • Jim Cheshire

          #5
          RE: Compile error when 2 pages use same codebehind file

          Tom,

          Did you remove the reference from the Page directive? I'm asking because I
          want to try and reproduce your problem and I haven't been able to do so. I
          have two Webforms. I changed the second's Page directive to indicate that
          the codebehind file is the first's codebehind file and I also changed the
          class that it inherits. (Did you do that?) When I compile after deleting
          the original codebehind, it works fine.

          The only thing I can think of is that you did not change the class that
          your Webform inherits from.

          Jim Cheshire
          Developer Support
          ASP.NET
          jamesche@online .microsoft.com

          This post is provided as-is with no warranties and confers no rights.


          --------------------[color=blue]
          >Content-Class: urn:content-classes:message
          >From: "Thomas Connolly" <thomas.connoll y@us.ssiworldwi de.com>
          >Sender: "Thomas Connolly" <thomas.connoll y@us.ssiworldwi de.com>
          >References: <02ec01c352fa$6 1828070$a501280 a@phx.gbl>[/color]
          <x4CzZwvUDHA.22 40@cpmsftngxa06 .phx.gbl>[color=blue]
          >Subject: RE: Compile error when 2 pages use same codebehind file
          >Date: Fri, 25 Jul 2003 15:53:48 -0700
          >Lines: 59
          >Message-ID: <1fe801c352ff$9 bc4cd10$a001280 a@phx.gbl>
          >MIME-Version: 1.0
          >Content-Type: text/plain;
          > charset="iso-8859-1"
          >Content-Transfer-Encoding: 7bit
          >X-Newsreader: Microsoft CDO for Windows 2000
          >X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
          >Thread-Index: AcNS/5vEu2SNKBrPRLWz prJFDjfryQ==
          >Newsgroups: microsoft.publi c.dotnet.framew ork.aspnet
          >Path: cpmsftngxa06.ph x.gbl
          >Xref: cpmsftngxa06.ph x.gbl microsoft.publi c.dotnet.framew ork.aspnet:1622 61
          >NNTP-Posting-Host: TK2MSFTNGXA08 10.40.1.160
          >X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.aspnet
          >
          >To be more specific, here is the error:
          >Source file 'C:\Inetpub\www root\WYIRIS\FAQ _Txt.aspx.cs'
          >could not be opened ('The system cannot find the file
          >specified. ')
          >[color=green]
          >>-----Original Message-----
          >>Hi Tom,
          >>
          >>Do you get an error when you compile? What's the error?
          >>
          >>Jim Cheshire
          >>Developer Support
          >>ASP.NET
          >>jamesche@onli ne.microsoft.co m
          >>
          >>This post is provided as-is with no warranties and[/color]
          >confers no rights.[color=green]
          >>
          >>--------------------[color=darkred]
          >>>Content-Class: urn:content-classes:message
          >>>From: "Thomas Connolly"[/color][/color]
          ><thomas.connol ly@us.ssiworldw ide.com>[color=green][color=darkred]
          >>>Sender: "Thomas Connolly"[/color][/color]
          ><thomas.connol ly@us.ssiworldw ide.com>[color=green][color=darkred]
          >>>Subject: Compile error when 2 pages use same codebehind[/color][/color]
          >file[color=green][color=darkred]
          >>>Date: Fri, 25 Jul 2003 15:16:22 -0700
          >>>Lines: 10
          >>>Message-ID: <02ec01c352fa$6 1828070$a501280 a@phx.gbl>
          >>>MIME-Version: 1.0
          >>>Content-Type: text/plain;
          >>> charset="iso-8859-1"
          >>>Content-Transfer-Encoding: 7bit
          >>>X-Newsreader: Microsoft CDO for Windows 2000
          >>>X-MIMEOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
          >>>Thread-Index: AcNS+mGCgbv5w+S ZStmdnoMjjLKCPA ==
          >>>Newsgroups : microsoft.publi c.dotnet.framew ork.aspnet
          >>>Path: cpmsftngxa06.ph x.gbl
          >>>Xref: cpmsftngxa06.ph x.gbl[/color][/color]
          >microsoft.publ ic.dotnet.frame work.aspnet:162 250[color=green][color=darkred]
          >>>NNTP-Posting-Host: TK2MSFTNGXA13 10.40.1.165
          >>>X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.aspnet
          >>>
          >>>I have 2 pages referencing the same codebehind file in[/color][/color]
          >my[color=green][color=darkred]
          >>>project. Originally the pages referenced separate code
          >>>behind files. Once I changed the reference to the same
          >>>file, everything worked fine while the file was in the
          >>>project directory. When the obsolete file was removed
          >>>from the project directory, my application will no[/color][/color]
          >longer[color=green][color=darkred]
          >>>compile. Can someone please help with this issue?
          >>>
          >>>Thank in advance,
          >>>Tom
          >>>[/color]
          >>
          >>.
          >>[/color]
          >[/color]

          Comment

          • Thomas Connolly

            #6
            RE: Compile error when 2 pages use same codebehind file

            Yes I did change both the class and the code behind file
            in the page directive. Keep in mind that in the IDE,
            everything runs fine. Try this, keep aspx page 2
            referencing the code behind file in aspx page 1. Delete
            the obsolete code behind file from the original aspx page
            2. save everything. Compile. Close the IDE and manually
            navigate to the page using your browser. Does it load.[color=blue]
            >-----Original Message-----
            >Tom,
            >
            >Did you remove the reference from the Page directive?[/color]
            I'm asking because I[color=blue]
            >want to try and reproduce your problem and I haven't been[/color]
            able to do so. I[color=blue]
            >have two Webforms. I changed the second's Page directive[/color]
            to indicate that[color=blue]
            >the codebehind file is the first's codebehind file and I[/color]
            also changed the[color=blue]
            >class that it inherits. (Did you do that?) When I[/color]
            compile after deleting[color=blue]
            >the original codebehind, it works fine.
            >
            >The only thing I can think of is that you did not change[/color]
            the class that[color=blue]
            >your Webform inherits from.
            >
            >Jim Cheshire
            >Developer Support
            >ASP.NET
            >jamesche@onlin e.microsoft.com
            >
            >This post is provided as-is with no warranties and[/color]
            confers no rights.[color=blue]
            >
            >
            >--------------------[color=green]
            >>Content-Class: urn:content-classes:message
            >>From: "Thomas Connolly"[/color][/color]
            <thomas.connoll y@us.ssiworldwi de.com>[color=blue][color=green]
            >>Sender: "Thomas Connolly"[/color][/color]
            <thomas.connoll y@us.ssiworldwi de.com>[color=blue][color=green]
            >>References: <02ec01c352fa$6 1828070$a501280 a@phx.gbl>[/color]
            ><x4CzZwvUDHA.2 240@cpmsftngxa0 6.phx.gbl>[color=green]
            >>Subject: RE: Compile error when 2 pages use same[/color][/color]
            codebehind file[color=blue][color=green]
            >>Date: Fri, 25 Jul 2003 15:53:48 -0700
            >>Lines: 59
            >>Message-ID: <1fe801c352ff$9 bc4cd10$a001280 a@phx.gbl>
            >>MIME-Version: 1.0
            >>Content-Type: text/plain;
            >> charset="iso-8859-1"
            >>Content-Transfer-Encoding: 7bit
            >>X-Newsreader: Microsoft CDO for Windows 2000
            >>X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
            >>Thread-Index: AcNS/5vEu2SNKBrPRLWz prJFDjfryQ==
            >>Newsgroups: microsoft.publi c.dotnet.framew ork.aspnet
            >>Path: cpmsftngxa06.ph x.gbl
            >>Xref: cpmsftngxa06.ph x.gbl[/color][/color]
            microsoft.publi c.dotnet.framew ork.aspnet:1622 61[color=blue][color=green]
            >>NNTP-Posting-Host: TK2MSFTNGXA08 10.40.1.160
            >>X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.aspnet
            >>
            >>To be more specific, here is the error:
            >>Source file 'C:\Inetpub\www root\WYIRIS\FAQ _Txt.aspx.cs'
            >>could not be opened ('The system cannot find the file
            >>specified. ')
            >>[color=darkred]
            >>>-----Original Message-----
            >>>Hi Tom,
            >>>
            >>>Do you get an error when you compile? What's the error?
            >>>
            >>>Jim Cheshire
            >>>Developer Support
            >>>ASP.NET
            >>>jamesche@onl ine.microsoft.c om
            >>>
            >>>This post is provided as-is with no warranties and[/color]
            >>confers no rights.[color=darkred]
            >>>
            >>>--------------------
            >>>>Content-Class: urn:content-classes:message
            >>>>From: "Thomas Connolly"[/color]
            >><thomas.conno lly@us.ssiworld wide.com>[color=darkred]
            >>>>Sender: "Thomas Connolly"[/color]
            >><thomas.conno lly@us.ssiworld wide.com>[color=darkred]
            >>>>Subject: Compile error when 2 pages use same[/color][/color][/color]
            codebehind[color=blue][color=green]
            >>file[color=darkred]
            >>>>Date: Fri, 25 Jul 2003 15:16:22 -0700
            >>>>Lines: 10
            >>>>Message-ID: <02ec01c352fa$6 1828070$a501280 a@phx.gbl>
            >>>>MIME-Version: 1.0
            >>>>Content-Type: text/plain;
            >>>> charset="iso-8859-1"
            >>>>Content-Transfer-Encoding: 7bit
            >>>>X-Newsreader: Microsoft CDO for Windows 2000
            >>>>X-MIMEOLE: Produced By Microsoft MimeOLE[/color][/color][/color]
            V5.50.4910.0300[color=blue][color=green][color=darkred]
            >>>>Thread-Index: AcNS+mGCgbv5w+S ZStmdnoMjjLKCPA ==
            >>>>Newsgroup s: microsoft.publi c.dotnet.framew ork.aspnet
            >>>>Path: cpmsftngxa06.ph x.gbl
            >>>>Xref: cpmsftngxa06.ph x.gbl[/color]
            >>microsoft.pub lic.dotnet.fram ework.aspnet:16 2250[color=darkred]
            >>>>NNTP-Posting-Host: TK2MSFTNGXA13 10.40.1.165
            >>>>X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.aspnet
            >>>>
            >>>>I have 2 pages referencing the same codebehind file in[/color]
            >>my[color=darkred]
            >>>>project. Originally the pages referenced separate[/color][/color][/color]
            code[color=blue][color=green][color=darkred]
            >>>>behind files. Once I changed the reference to the[/color][/color][/color]
            same[color=blue][color=green][color=darkred]
            >>>>file, everything worked fine while the file was in the
            >>>>project directory. When the obsolete file was removed
            >>>>from the project directory, my application will no[/color]
            >>longer[color=darkred]
            >>>>compile. Can someone please help with this issue?
            >>>>
            >>>>Thank in advance,
            >>>>Tom
            >>>>
            >>>
            >>>.
            >>>[/color]
            >>[/color]
            >
            >.
            >[/color]

            Comment

            • Jim Cheshire

              #7
              RE: Compile error when 2 pages use same codebehind file

              Tom,

              I am replying here so that others can see the response.

              What you need to do is open each one of these pages in VS.NET after you
              move the old code behind. When you do, VS.NET will update project view
              with the new code behind and will put a warning icon over the old code
              behind. Right-click the old code behind with the warning icon and choose
              delete. After you do this for each of your files, it will work fine.

              Hope that helps.

              Jim Cheshire
              Developer Support
              ASP.NET
              jamesche@online .microsoft.com

              This post is provided as-is with no warranties and confers no rights.

              --------------------[color=blue]
              >X-Tomcat-ID: 459707228
              >References: <02ec01c352fa$6 1828070$a501280 a@phx.gbl>[/color]
              <x4CzZwvUDHA.22 40@cpmsftngxa06 .phx.gbl>
              <1fe801c352ff$9 bc4cd10$a001280 a@phx.gbl>
              <#THesiSVDHA.21 12@cpmsftngxa06 .phx.gbl>
              <0a9a01c3552b$c 5c7dbb0$a601280 a@phx.gbl>[color=blue]
              >MIME-Version: 1.0
              >Content-Type: text/plain
              >Content-Transfer-Encoding: 7bit
              >From: jamesche@online .microsoft.com (Jim Cheshire (MS))
              >Organization : Microsoft
              >Date: Mon, 28 Jul 2003 17:55:06 GMT
              >Subject: RE: Compile error when 2 pages use same codebehind file
              >X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.aspnet
              >Message-ID: <fSmEjFTVDHA.21 12@cpmsftngxa06 .phx.gbl>
              >Newsgroups: microsoft.publi c.dotnet.framew ork.aspnet
              >Lines: 144
              >Path: cpmsftngxa06.ph x.gbl
              >Xref: cpmsftngxa06.ph x.gbl microsoft.publi c.dotnet.framew ork.aspnet:1627 16
              >NNTP-Posting-Host: TOMCATIMPORT1 10.201.218.122
              >
              >Tom,
              >
              >Yes, both do load fine. If you have a project that you can zip up and
              >e-mail to me that exhibits this problem, I'll be glad to look into it for
              >you. You can e-mail me by leaving off the "online" in my e-mail address.
              >
              >Jim Cheshire
              >Developer Support
              >ASP.NET
              >jamesche@onlin e.microsoft.com
              >
              >This post is provided as-is with no warranties and confers no rights.
              >
              >--------------------[color=green]
              >>Content-Class: urn:content-classes:message
              >>From: "Thomas Connolly" <thomas.connoll y@us.ssiworldwi de.com>
              >>Sender: "Thomas Connolly" <thomas.connoll y@us.ssiworldwi de.com>
              >>References: <02ec01c352fa$6 1828070$a501280 a@phx.gbl>[/color]
              ><x4CzZwvUDHA.2 240@cpmsftngxa0 6.phx.gbl>
              ><1fe801c352ff$ 9bc4cd10$a00128 0a@phx.gbl>
              ><#THesiSVDHA.2 112@cpmsftngxa0 6.phx.gbl>[color=green]
              >>Subject: RE: Compile error when 2 pages use same codebehind file
              >>Date: Mon, 28 Jul 2003 10:14:58 -0700
              >>Lines: 129
              >>Message-ID: <0a9a01c3552b$c 5c7dbb0$a601280 a@phx.gbl>
              >>MIME-Version: 1.0
              >>Content-Type: text/plain;
              >> charset="iso-8859-1"
              >>Content-Transfer-Encoding: 7bit
              >>X-Newsreader: Microsoft CDO for Windows 2000
              >>X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
              >>Thread-Index: AcNVK8XFx7uTIkN mSl2Zm7EXh6SFiQ ==
              >>Newsgroups: microsoft.publi c.dotnet.framew ork.aspnet
              >>Path: cpmsftngxa06.ph x.gbl
              >>Xref: cpmsftngxa06.ph x.gbl microsoft.publi c.dotnet.framew ork.aspnet:1626 94
              >>NNTP-Posting-Host: TK2MSFTNGXA14 10.40.1.166
              >>X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.aspnet
              >>
              >>Yes I did change both the class and the code behind file
              >>in the page directive. Keep in mind that in the IDE,
              >>everything runs fine. Try this, keep aspx page 2
              >>referencing the code behind file in aspx page 1. Delete
              >>the obsolete code behind file from the original aspx page
              >>2. save everything. Compile. Close the IDE and manually
              >>navigate to the page using your browser. Does it load.[color=darkred]
              >>>-----Original Message-----
              >>>Tom,
              >>>
              >>>Did you remove the reference from the Page directive?[/color]
              >>I'm asking because I[color=darkred]
              >>>want to try and reproduce your problem and I haven't been[/color]
              >>able to do so. I[color=darkred]
              >>>have two Webforms. I changed the second's Page directive[/color]
              >>to indicate that[color=darkred]
              >>>the codebehind file is the first's codebehind file and I[/color]
              >>also changed the[color=darkred]
              >>>class that it inherits. (Did you do that?) When I[/color]
              >>compile after deleting[color=darkred]
              >>>the original codebehind, it works fine.
              >>>
              >>>The only thing I can think of is that you did not change[/color]
              >>the class that[color=darkred]
              >>>your Webform inherits from.
              >>>
              >>>Jim Cheshire
              >>>Developer Support
              >>>ASP.NET
              >>>jamesche@onl ine.microsoft.c om
              >>>
              >>>This post is provided as-is with no warranties and[/color]
              >>confers no rights.[color=darkred]
              >>>
              >>>
              >>>--------------------
              >>>>Content-Class: urn:content-classes:message
              >>>>From: "Thomas Connolly"[/color]
              >><thomas.conno lly@us.ssiworld wide.com>[color=darkred]
              >>>>Sender: "Thomas Connolly"[/color]
              >><thomas.conno lly@us.ssiworld wide.com>[color=darkred]
              >>>>Reference s: <02ec01c352fa$6 1828070$a501280 a@phx.gbl>
              >>><x4CzZwvUDHA .2240@cpmsftngx a06.phx.gbl>
              >>>>Subject: RE: Compile error when 2 pages use same[/color]
              >>codebehind file[color=darkred]
              >>>>Date: Fri, 25 Jul 2003 15:53:48 -0700
              >>>>Lines: 59
              >>>>Message-ID: <1fe801c352ff$9 bc4cd10$a001280 a@phx.gbl>
              >>>>MIME-Version: 1.0
              >>>>Content-Type: text/plain;
              >>>> charset="iso-8859-1"
              >>>>Content-Transfer-Encoding: 7bit
              >>>>X-Newsreader: Microsoft CDO for Windows 2000
              >>>>X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
              >>>>Thread-Index: AcNS/5vEu2SNKBrPRLWz prJFDjfryQ==
              >>>>Newsgroup s: microsoft.publi c.dotnet.framew ork.aspnet
              >>>>Path: cpmsftngxa06.ph x.gbl
              >>>>Xref: cpmsftngxa06.ph x.gbl[/color]
              >>microsoft.pub lic.dotnet.fram ework.aspnet:16 2261[color=darkred]
              >>>>NNTP-Posting-Host: TK2MSFTNGXA08 10.40.1.160
              >>>>X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.aspnet
              >>>>
              >>>>To be more specific, here is the error:
              >>>>Source file 'C:\Inetpub\www root\WYIRIS\FAQ _Txt.aspx.cs'
              >>>>could not be opened ('The system cannot find the file
              >>>>specified . ')
              >>>>
              >>>>>-----Original Message-----
              >>>>>Hi Tom,
              >>>>>
              >>>>>Do you get an error when you compile? What's the error?
              >>>>>
              >>>>>Jim Cheshire
              >>>>>Develope r Support
              >>>>>ASP.NET
              >>>>>jamesche@o nline.microsoft .com
              >>>>>
              >>>>>This post is provided as-is with no warranties and
              >>>>confers no rights.
              >>>>>
              >>>>>--------------------
              >>>>>>Content-Class: urn:content-classes:message
              >>>>>>From: "Thomas Connolly"
              >>>><thomas.con nolly@us.ssiwor ldwide.com>
              >>>>>>Sender: "Thomas Connolly"
              >>>><thomas.con nolly@us.ssiwor ldwide.com>
              >>>>>>Subject : Compile error when 2 pages use same[/color]
              >>codebehind[color=darkred]
              >>>>file
              >>>>>>Date: Fri, 25 Jul 2003 15:16:22 -0700
              >>>>>>Lines: 10
              >>>>>>Message-ID: <02ec01c352fa$6 1828070$a501280 a@phx.gbl>
              >>>>>>MIME-Version: 1.0
              >>>>>>Content-Type: text/plain;
              >>>>>> charset="iso-8859-1"
              >>>>>>Content-Transfer-Encoding: 7bit
              >>>>>>X-Newsreader: Microsoft CDO for Windows 2000
              >>>>>>X-MIMEOLE: Produced By Microsoft MimeOLE[/color]
              >>V5.50.4910.03 00[color=darkred]
              >>>>>>Thread-Index: AcNS+mGCgbv5w+S ZStmdnoMjjLKCPA ==
              >>>>>>Newsgroup s: microsoft.publi c.dotnet.framew ork.aspnet
              >>>>>>Path: cpmsftngxa06.ph x.gbl
              >>>>>>Xref: cpmsftngxa06.ph x.gbl
              >>>>microsoft.p ublic.dotnet.fr amework.aspnet: 162250
              >>>>>>NNTP-Posting-Host: TK2MSFTNGXA13 10.40.1.165
              >>>>>>X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.aspnet
              >>>>>>
              >>>>>>I have 2 pages referencing the same codebehind file in
              >>>>my
              >>>>>>project . Originally the pages referenced separate[/color]
              >>code[color=darkred]
              >>>>>>behind files. Once I changed the reference to the[/color]
              >>same[color=darkred]
              >>>>>>file, everything worked fine while the file was in the
              >>>>>>project directory. When the obsolete file was removed
              >>>>>>from the project directory, my application will no
              >>>>longer
              >>>>>>compile . Can someone please help with this issue?
              >>>>>>
              >>>>>>Thank in advance,
              >>>>>>Tom
              >>>>>>
              >>>>>
              >>>>>.
              >>>>>
              >>>>
              >>>
              >>>.
              >>>[/color]
              >>[/color]
              >
              >[/color]

              Comment

              Working...