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 6 2794
Yes I did get an error message saying that the source
files of the obsolete pages cannot be found. -----Original Message----- Hi Tom,
Do you get an error when you compile? What's the error?
Jim Cheshire Developer Support ASP.NET ja******@online.microsoft.com
This post is provided as-is with no warranties and
confers no rights. --------------------Content-Class: urn:content-classes:message From: "Thomas Connolly"
<th*************@us.ssiworldwide.com>Sender: "Thomas Connolly"
<th*************@us.ssiworldwide.com>Subject: Compile error when 2 pages use same codebehind
fileDate: Fri, 25 Jul 2003 15:16:22 -0700 Lines: 10 Message-ID: <02****************************@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+SZStmdnoMjjLKCPA== Newsgroups: microsoft.public.dotnet.framework.aspnet Path: cpmsftngxa06.phx.gbl Xref: cpmsftngxa06.phx.gbl
microsoft.public.dotnet.framework.aspnet:162250NNTP-Posting-Host: TK2MSFTNGXA13 10.40.1.165 X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
I have 2 pages referencing the same codebehind file in
myproject. 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
longercompile. Can someone please help with this issue?
Thank in advance, Tom
.
To be more specific, here is the error:
Source file 'C:\Inetpub\wwwroot\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 Developer Support ASP.NET ja******@online.microsoft.com
This post is provided as-is with no warranties and
confers no rights. --------------------Content-Class: urn:content-classes:message From: "Thomas Connolly"
<th*************@us.ssiworldwide.com>Sender: "Thomas Connolly"
<th*************@us.ssiworldwide.com>Subject: Compile error when 2 pages use same codebehind
fileDate: Fri, 25 Jul 2003 15:16:22 -0700 Lines: 10 Message-ID: <02****************************@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+SZStmdnoMjjLKCPA== Newsgroups: microsoft.public.dotnet.framework.aspnet Path: cpmsftngxa06.phx.gbl Xref: cpmsftngxa06.phx.gbl
microsoft.public.dotnet.framework.aspnet:162250NNTP-Posting-Host: TK2MSFTNGXA13 10.40.1.165 X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
I have 2 pages referencing the same codebehind file in
myproject. 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
longercompile. Can someone please help with this issue?
Thank in advance, Tom
.
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" <th*************@us.ssiworldwide.com> wrote in message
news:02****************************@phx.gbl... 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
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 ja******@online.microsoft.com
This post is provided as-is with no warranties and confers no rights.
-------------------- Content-Class: urn:content-classes:message From: "Thomas Connolly" <th*************@us.ssiworldwide.com> Sender: "Thomas Connolly" <th*************@us.ssiworldwide.com> References: <02****************************@phx.gbl>
<x4**************@cpmsftngxa06.phx.gbl>Subject: RE: Compile error when 2 pages use same codebehind file Date: Fri, 25 Jul 2003 15:53:48 -0700 Lines: 59 Message-ID: <1f****************************@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/5vEu2SNKBrPRLWzprJFDjfryQ== Newsgroups: microsoft.public.dotnet.framework.aspnet Path: cpmsftngxa06.phx.gbl Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.framework.aspnet:162261 NNTP-Posting-Host: TK2MSFTNGXA08 10.40.1.160 X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
To be more specific, here is the error: Source file 'C:\Inetpub\wwwroot\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 Developer Support ASP.NET ja******@online.microsoft.com
This post is provided as-is with no warranties and confers no rights. --------------------Content-Class: urn:content-classes:message From: "Thomas Connolly"<th*************@us.ssiworldwide.com>Sender: "Thomas Connolly"<th*************@us.ssiworldwide.com>Subject: Compile error when 2 pages use same codebehindfileDate: Fri, 25 Jul 2003 15:16:22 -0700 Lines: 10 Message-ID: <02****************************@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+SZStmdnoMjjLKCPA== Newsgroups: microsoft.public.dotnet.framework.aspnet Path: cpmsftngxa06.phx.gbl Xref: cpmsftngxa06.phx.gblmicrosoft.public.dotnet.framework.aspnet:162250NNTP-Posting-Host: TK2MSFTNGXA13 10.40.1.165 X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
I have 2 pages referencing the same codebehind file inmyproject. 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 nolongercompile. Can someone please help with this issue?
Thank in advance, Tom
.
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. -----Original Message----- Tom,
Did you remove the reference from the Page directive?
I'm asking because Iwant to try and reproduce your problem and I haven't been
able to do so. Ihave two Webforms. I changed the second's Page directive
to indicate thatthe codebehind file is the first's codebehind file and I
also changed theclass that it inherits. (Did you do that?) When I
compile after deletingthe original codebehind, it works fine.
The only thing I can think of is that you did not change
the class thatyour Webform inherits from.
Jim Cheshire Developer Support ASP.NET ja******@online.microsoft.com
This post is provided as-is with no warranties and
confers no rights.
--------------------Content-Class: urn:content-classes:message From: "Thomas Connolly"
<th*************@us.ssiworldwide.com>Sender: "Thomas Connolly"
<th*************@us.ssiworldwide.com>References: <02****************************@phx.gbl> <x4**************@cpmsftngxa06.phx.gbl>Subject: RE: Compile error when 2 pages use same
codebehind fileDate: Fri, 25 Jul 2003 15:53:48 -0700 Lines: 59 Message-ID: <1f****************************@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/5vEu2SNKBrPRLWzprJFDjfryQ== Newsgroups: microsoft.public.dotnet.framework.aspnet Path: cpmsftngxa06.phx.gbl Xref: cpmsftngxa06.phx.gbl
microsoft.public.dotnet.framework.aspnet:162261NNTP-Posting-Host: TK2MSFTNGXA08 10.40.1.160 X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
To be more specific, here is the error: Source file 'C:\Inetpub\wwwroot\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 Developer Support ASP.NET ja******@online.microsoft.com
This post is provided as-is with no warranties and confers no rights. -------------------- Content-Class: urn:content-classes:message From: "Thomas Connolly"
<th*************@us.ssiworldwide.com>Sender: "Thomas Connolly" <th*************@us.ssiworldwide.com>Subject: Compile error when 2 pages use same
codebehindfileDate: Fri, 25 Jul 2003 15:16:22 -0700 Lines: 10 Message-ID: <02****************************@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.0300Thread-Index: AcNS+mGCgbv5w+SZStmdnoMjjLKCPA== Newsgroups: microsoft.public.dotnet.framework.aspnet Path: cpmsftngxa06.phx.gbl Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.framework.aspnet:16225 0NNTP-Posting-Host: TK2MSFTNGXA13 10.40.1.165 X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
I have 2 pages referencing the same codebehind file in myproject. Originally the pages referenced separate
codebehind files. Once I changed the reference to the
samefile, 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 longercompile. Can someone please help with this issue?
Thank in advance, Tom
.
.
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 ja******@online.microsoft.com
This post is provided as-is with no warranties and confers no rights.
-------------------- X-Tomcat-ID: 459707228 References: <02****************************@phx.gbl>
<x4**************@cpmsftngxa06.phx.gbl>
<1f****************************@phx.gbl>
<#T**************@cpmsftngxa06.phx.gbl>
<0a****************************@phx.gbl>MIME-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit From: ja******@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.public.dotnet.framework.aspnet Message-ID: <fS**************@cpmsftngxa06.phx.gbl> Newsgroups: microsoft.public.dotnet.framework.aspnet Lines: 144 Path: cpmsftngxa06.phx.gbl Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.framework.aspnet:162716 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 ja******@online.microsoft.com
This post is provided as-is with no warranties and confers no rights.
--------------------Content-Class: urn:content-classes:message From: "Thomas Connolly" <th*************@us.ssiworldwide.com> Sender: "Thomas Connolly" <th*************@us.ssiworldwide.com> References: <02****************************@phx.gbl> <x4**************@cpmsftngxa06.phx.gbl> <1f****************************@phx.gbl> <#T**************@cpmsftngxa06.phx.gbl>Subject: RE: Compile error when 2 pages use same codebehind file Date: Mon, 28 Jul 2003 10:14:58 -0700 Lines: 129 Message-ID: <0a****************************@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: AcNVK8XFx7uTIkNmSl2Zm7EXh6SFiQ== Newsgroups: microsoft.public.dotnet.framework.aspnet Path: cpmsftngxa06.phx.gbl Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.framework.aspnet:162694 NNTP-Posting-Host: TK2MSFTNGXA14 10.40.1.166 X-Tomcat-NG: microsoft.public.dotnet.framework.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.-----Original Message----- Tom,
Did you remove the reference from the Page directive? I'm asking because Iwant to try and reproduce your problem and I haven't been able to do so. Ihave two Webforms. I changed the second's Page directive to indicate thatthe codebehind file is the first's codebehind file and I also changed theclass that it inherits. (Did you do that?) When I compile after deletingthe original codebehind, it works fine.
The only thing I can think of is that you did not change the class thatyour Webform inherits from.
Jim Cheshire Developer Support ASP.NET ja******@online.microsoft.com
This post is provided as-is with no warranties and confers no rights.
-------------------- Content-Class: urn:content-classes:message From: "Thomas Connolly"
<th*************@us.ssiworldwide.com>Sender: "Thomas Connolly" <th*************@us.ssiworldwide.com>References: <02****************************@phx.gbl> <x4**************@cpmsftngxa06.phx.gbl> Subject: RE: Compile error when 2 pages use same codebehind fileDate: Fri, 25 Jul 2003 15:53:48 -0700 Lines: 59 Message-ID: <1f****************************@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/5vEu2SNKBrPRLWzprJFDjfryQ== Newsgroups: microsoft.public.dotnet.framework.aspnet Path: cpmsftngxa06.phx.gbl Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.framework.aspnet:16226 1NNTP-Posting-Host: TK2MSFTNGXA08 10.40.1.160 X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
To be more specific, here is the error: Source file 'C:\Inetpub\wwwroot\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 >Developer Support >ASP.NET >ja******@online.microsoft.com > >This post is provided as-is with no warranties and confers no rights. > >-------------------- >>Content-Class: urn:content-classes:message >>From: "Thomas Connolly" <th*************@us.ssiworldwide.com> >>Sender: "Thomas Connolly" <th*************@us.ssiworldwide.com> >>Subject: Compile error when 2 pages use same codebehindfile >>Date: Fri, 25 Jul 2003 15:16:22 -0700 >>Lines: 10 >>Message-ID: <02****************************@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+SZStmdnoMjjLKCPA== >>Newsgroups: microsoft.public.dotnet.framework.aspnet >>Path: cpmsftngxa06.phx.gbl >>Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.framework.aspnet:16225 0 >>NNTP-Posting-Host: TK2MSFTNGXA13 10.40.1.165 >>X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet >> >>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 >> > >. >
.
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Jarod_24 |
last post by:
I've been working with a ASP.Net Web application project and it' ASP-NEt
pages and the classes that you create seems to work without compiling the
project. so my question is: why compile it? The...
|
by: D A H |
last post by:
I have gotten the same exception in multiple projects.
I have solved the underlying problem.
My question is if anyone knew of a setting that would cause this
exception to be thrown.
A...
|
by: Paul Smith |
last post by:
I am hoping this is a simple problem for someone. We have two development
servers, DEVNET (a web server) and DEVSQL (a DB / File Server). We have
recently moved all of our .NET source code from...
|
by: Chris Kennedy |
last post by:
I have a ASPX page with a code behind. Is there a way of changing the
codebehind and compiling it on the server without affecting other pages. I
don't want to recopy the project from my local...
|
by: Don Wash |
last post by:
Hi All!
I'm getting the following Error:
No DLLs has been compiled yet and nothing in the \bin directory. So it is
not the versioning problem or anything like that.
And here are the...
|
by: Holger (David) Wagner |
last post by:
Hi Group,
I've searched the Web for precompilers that compile ASPX/ASCX pages just
like it can be done with JSPs, but so far, I've only found approaches
targetted at increasing the performance....
|
by: ST |
last post by:
Hi,
I keep getting the parser error, and I have no idea why. I've tried a
number of things including:
1)building/rebuilding about 100x
2)making sure all dll's are in the bin folder in the root...
|
by: Siegfried Heintze |
last post by:
It appears that the automatic compilation feature of ASP.NET causes
problems with a security package called Black Ice that my hosting service is
using.
I'm hoping that if I manually compile my...
|
by: Moojjoo |
last post by:
I am working on a Web application and when I try to add a Web Form with zero
code on it and just type hello world I get the following:
1. The Virtual Web is setup as an application
2. All other...
|
by: lllomh |
last post by:
Define the method first
this.state = {
buttonBackgroundColor: 'green',
isBlinking: false, // A new status is added to identify whether the button is blinking or not
}
autoStart=()=>{
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM)
The start time is equivalent to 19:00 (7PM) in Central...
|
by: tracyyun |
last post by:
Hello everyone,
I have a question and would like some advice on network connectivity. I have one computer connected to my router via WiFi, but I have two other computers that I want to be able to...
|
by: giovanniandrean |
last post by:
The energy model is structured as follows and uses excel sheets to give input data:
1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions...
|
by: Teri B |
last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course.
0ne-to-many. One course many roles.
Then I created a report based on the Course form and...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM)
Please note that the UK and Europe revert to winter time on...
|
by: nia12 |
last post by:
Hi there,
I am very new to Access so apologies if any of this is obvious/not clear.
I am creating a data collection tool for health care employees to complete. It consists of a number of...
|
by: NeoPa |
last post by:
Introduction
For this article I'll be focusing on the Report (clsReport) class. This simply handles making the calling Form invisible until all of the Reports opened by it have been closed, when it...
|
by: GKJR |
last post by:
Does anyone have a recommendation to build a standalone application to replace an Access database? I have my bookkeeping software I developed in Access that I would like to make available to other...
| |