Hi,
I have an ASP.NET 2 web application (not web site) project and am using a
web deployment project to deploy to the testing, then the production server.
All has been working well for months now, but today after a recompilation,
the app is throwing the error below when accessing a certain page, although
there are no errors in the compilation process.
Compilation Error
Description: An error occurred during the compilation of a resource required
to service this request. Please review the following specific error details
and modify your source code appropriately.
Compiler Error Message: CS0433: The type 'iss_proposal' exists in both
'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Tem porary ASP.NET
Files\intranet\982f569e\da8b6663\assembly\dl3\37c9 bf8f\a2199b8c_7af3c601\intranet.DLL'
and 'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Tem porary ASP.NET
Files\intranet\982f569e\da8b6663\assembly\dl3\e4be e18e\a092dc96_7af3c601\intranet_deploy.DLL'
Source Error:
[No relevant source lines]
Source File: c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temp orary ASP.NET
Files\intranet\982f569e\da8b6663\App_Web_proposal. aspx.f71204e2.dwpdglvi
..0.cs Line: 110
Show Detailed Compiler Output:
c:\windows\system32\inetsrv>"C:\WINDOWS\Microsoft. NET\Framework\v2.0.50727\csc.exe"
/t:library /utf8output
/R:"C:\WINDOWS\assembly\GAC_MSIL\System.DirectorySe rvices\2.0.0.0__b03f5f7f11d50a3a\System.DirectoryS ervices.dll"
/R:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\T emporary
ASP.NETFiles\intranet\982f569e\da8b6663\assembly\d l3\37c9bf8f\a2199b8c_7af3c601\intranet.DLL"
/R:"C:\WINDOWS\assembly\GAC_MSIL\System.Configurati on\2.0.0.0__b03f5f7f11d50a3a\System.Configuration. dll"
/R:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\T emporary ASP.NET
Files\intranet\982f569e\da8b6663\App_Web_default.m aster.28963a75.kbekoadw.dll"
/R:"C:\WINDOWS\assembly\GAC_MSIL\System.Xml\2.0.0.0 __b77a5c561934e089\System.Xml.dll"
/R:"C:\WINDOWS\assembly\GAC_MSIL\System.Web.Service s\2.0.0.0__b03f5f7f11d50a3a\System.Web.Services.dl l"
/R:"C:\WINDOWS\assembly\GAC_32\System.Web\2.0.0.0__ b03f5f7f11d50a3a\System.Web.dll"
/R:"C:\WINDOWS\assembly\GAC_MSIL\System\2.0.0.0__b7 7a5c561934e089\System.dll"
/R:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\T emporary
ASP.NET
Files\intranet\982f569e\da8b6663\assembly\dl3\a891 d961\be9bd039_7ed9c601\FreeTextBox.DLL"
/R:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\T emporary ASP.NET
Files\intranet\982f569e\da8b6663\App_Web_note.ascx .cdcab7d2.0336jmcb.dll"
/R:"C:\WINDOWS\assembly\GAC_32\System.Data\2.0.0.0_ _b77a5c561934e089\System.Data.dll"
/R:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\m scorlib.dll"
/R:"C:\WINDOWS\assembly\GAC_MSIL\System.Drawing\2.0 .0.0__b03f5f7f11d50a3a\System.Drawing.dll"
/R:"C:\WINDOWS\assembly\GAC_MSIL\System.Web.Mobile\ 2.0.0.0__b03f5f7f11d50a3a\System.Web.Mobile.dll"
/R:"C:\WINDOWS\assembly\GAC_MSIL\System.Design\2.0. 0.0__b03f5f7f11d50a3a\System.Design.dll"
/R:"C:\WINDOWS\assembly\GAC_32\System.EnterpriseSer vices\2.0.0.0__b03f5f7f11d50a3a\System.EnterpriseS ervices.dll"
/R:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\T emporary ASP.NET
Files\intranet\982f569e\da8b6663\assembly\dl3\e4be e18e\a092dc96_7af3c601
\intranet_deploy.DLL"
/out:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727 \Temporary ASP.NET
Files\intranet\982f569e\da8b6663\App_Web_proposal. aspx.f71204e2.dwpdglvi
..dll" /debug-
/optimize+/win32res:"C:\WINDOWS\Microsoft.NET\Framework\v2.0. 50727\Temporary
ASP.NET Files\intranet\982f569e\da8b6663\7iemp9ws.res" /w:4
/nowarn:1659;1699
"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Tem porary ASP.NET
Files\intranet\982f569e\da8b6663\App_Web_proposal. aspx.f71204e2.dwpdglvi
..0.cs" "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Tem porary ASP.NET
Files\intranet\982f569e\da8b6663\App_Web_proposal. aspx.f71204e2.dwpdglvi
..1.cs"
c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temp orary ASP.NET
Files\intranet\982f569e\da8b6663\App_Web_proposal. aspx.f71204e2.dwpdglvi
..0.cs(110,46): error CS0433: The type 'iss_proposal' exists in both
'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Tem porary ASP.NET
Files\intranet\982f569e\da8b6663\assembly\dl3\37c9 bf8f\a2199b8c_7af3c601\intranet.DLL'
and
'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Tem porary ASP.NET
Files\intranet\982f569e\da8b6663\assembly\dl3\e4be e18e\a092dc96_7af3c601\intranet_deploy.DLL'
c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temp orary ASP.NET
Files\intranet\982f569e\da8b6663\assembly\dl3\37c9 bf8f\a2199b8c_7af3c601\intranet.DLL:
(Location of symbol related to previous error)
c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temp orary ASP.NET
Files\intranet\982f569e\da8b6663\assembly\dl3\e4be e18e\a092dc96_7af3c601\intranet_deploy.DLL:
(Location of symbol related to previous error)
Error in: /intranet/iss/proposal.aspx
Url: /intranet/iss/proposal.aspx
Error Message: c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temp orary
ASP.NET
Files\intranet\982f569e\da8b6663\App_Web_proposal. aspx.f71204e2.gyaz0bv3
..0.cs(110): error CS0433: The type 'iss_proposal' exists in both
'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Tem porary ASP.NET
Files\intranet\982f569e\da8b6663\assembly\dl3\37c9 bf8f\a2199b8c_7af3c601\intranet.DLL'
and
'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Tem porary
ASP.NETFiles\intranet\982f569e\da8b6663\assembly\d l3\e4bee18e\a092dc96_7af3c601\intranet_deploy.DLL'
Error Source: System.Web
Error Target Site: System.CodeDom.Compiler.CompilerResults Compile() Error
Description: System.Web.HttpCompileException:
c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temp orary ASP.NET
Files\intranet\982f569e\da8b6663\App_Web_proposal. aspx.f71204e2.gyaz0bv3
..0.cs(110): error CS0433: The type 'iss_proposal' exists in both
'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Tem porary ASP.NET
Files\intranet\982f569e\da8b6663\assembly\dl3\37c9 bf8f\a2199b8c_7af3c601\intranet.DLL'
and
'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Tem porary ASP.NET
Files\intranet\982f569e\da8b6663\assembly\dl3\e4be e18e\a092dc96_7af3c601\intranet_deploy.DLL'
at System.Web.Compilation.AssemblyBuilder.Compile()
at System.Web.Compilation.BuildProvidersCompiler.Perf ormBuild()
at System.Web.Compilation.BuildManager.CompileWebFile (VirtualPath
virtualPath)
at
System.Web.Compilation.BuildManager.GetVPathBuildR esultInternal(VirtualPath
virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean
allowBuildInPrecompile)
at
System.Web.Compilation.BuildManager.GetVPathBuildR esultWithNoAssert(HttpContext
context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp,
Boolean allowBuildInPrecompile)
at
System.Web.Compilation.BuildManager.GetVirtualPath ObjectFactory(VirtualPath
virtualPath, HttpContext context, Boolean allowCrossApp, Boolean noAssert)
at
System.Web.Compilation.BuildManager.CreateInstance FromVirtualPath(VirtualPath
virtualPath, Type requiredBaseType, HttpContext context, Boolean
allowCrossApp, Boolean noAssert)
at System.Web.UI.PageHandlerFactory.GetHandlerHelper( HttpContextcontext,
String requestType, VirtualPath virtualPath, String physicalPath)
at
System.Web.UI.PageHandlerFactory.System.Web.IHttpH andlerFactory2.GetHandler(HttpContext
context, String requestType, VirtualPath virtualPath, String physicalPath)
at System.Web.HttpApplication.MapHttpHandler(HttpCont ext context, String
requestType, VirtualPath path, String pathTranslated, Boolean useAppConfig)
at
System.Web.HttpApplication.MapHandlerExecutionStep .System.Web.HttpApplication.IExecutionStep.Execute ()
at System.Web.HttpApplication.ExecuteStep(IExecutionS tep step, Boolean&
completedSynchronously)
A quick Google search revealed quite a few possibilities for fixing this,
such as clearing out the temporary files folder, running iisreset, rebooting
the development machine, rebooting the server, adding batch="false" to
web.config, etc.
I tried all of the above and more, but to no avail.
Has anyone else had any experience of this and, if so, is there a solution?
Any assistance gratefully received.
Mark 21 8509
"Mark Rae" <ma**@markNOSPAMrae.comwrote in message
news:%2******************@TK2MSFTNGP04.phx.gbl...
Anybody got any ideas in this? It's driving me crazy...
Mark,
Have you checked that you don't actually have 'iss_proposal'
defined in more han one place in your code ?
That would be a reason for the attempt to compile it into two different DLLs:
intranet.DLL and intranet_deploy.DLL.
Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"Mark Rae" <ma**@markNOSPAMrae.comwrote in message news:%2****************@TK2MSFTNGP05.phx.gbl...
"Mark Rae" <ma**@markNOSPAMrae.comwrote in message
news:%2******************@TK2MSFTNGP04.phx.gbl...
Anybody got any ideas in this? It's driving me crazy...
"Juan T. Llibre" <no***********@nowhere.comwrote in message
news:%2****************@TK2MSFTNGP02.phx.gbl...
Have you checked that you don't actually have 'iss_proposal'
defined in more han one place in your code ?
That was the first thing I checked. :-)
iis_proposal was merely an example - there have been many other similar
errors all with different classes...
That would be a reason for the attempt to compile it into two different
DLLs:
intranet.DLL and intranet_deploy.DLL.
I fully agree, but that's not actually the case....
Additional suggestions :
1.
Could you possibly have two code-behind files with the same name ?
( in different directories, of course... )
2.
Is the server under heavy memory load ?
Maybe testing the app with very little load on the server could make a difference.
Check the commit charge on your server and makew sure the server's ram isn't cramped.
3.
Since you're using the web deployment project, review the MSbuild directives.
i.e., change the number of DLL's the application compiles to.
Maybe, even, reduce it to 1 DLL instead of the, at least, two you have now.
(YourAppDeployment Property Pages, Output Assemblies; Merge all output to a single assembly)
4.
Explore one of the other compilation options
Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"Mark Rae" <ma**@markNOSPAMrae.comwrote in message news:%2***************@TK2MSFTNGP05.phx.gbl...
"Juan T. Llibre" <no***********@nowhere.comwrote in message
news:%2****************@TK2MSFTNGP02.phx.gbl...
>Have you checked that you don't actually have 'iss_proposal' defined in more han one place in your code ?
That was the first thing I checked. :-)
iis_proposal was merely an example - there have been many other similar errors all with different
classes...
>That would be a reason for the attempt to compile it into two different DLLs: intranet.DLL and intranet_deploy.DLL.
I fully agree, but that's not actually the case....
"Juan T. Llibre" <no***********@nowhere.comwrote in message
news:eI**************@TK2MSFTNGP03.phx.gbl...
1.
Could you possibly have two code-behind files with the same name ?
( in different directories, of course... )
No.
2.
Is the server under heavy memory load ?
No.
Check the commit charge on your server and makew sure the server's ram
isn't cramped.
It's just a test server - nothing else is even installed on it...
3.
Since you're using the web deployment project, review the MSbuild
directives.
i.e., change the number of DLL's the application compiles to.
Maybe, even, reduce it to 1 DLL instead of the, at least, two you have
now.
(YourAppDeployment Property Pages, Output Assemblies; Merge all output to
a single assembly)
Tried that...
4.
Explore one of the other compilation options
Tried them too...
re:
It's just a test server - nothing else is even installed on it...
If it's "just a test server"...why don't you nuke it ?
Save all your data...and reinstall everything.
That sounds more painful than what it actually is.
:-)
Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"Mark Rae" <ma**@markNOSPAMrae.comwrote in message news:%2****************@TK2MSFTNGP02.phx.gbl...
"Juan T. Llibre" <no***********@nowhere.comwrote in message
news:eI**************@TK2MSFTNGP03.phx.gbl...
>1. Could you possibly have two code-behind files with the same name ? ( in different directories, of course... )
No.
>2. Is the server under heavy memory load ?
No.
>Check the commit charge on your server and makew sure the server's ram isn't cramped.
It's just a test server - nothing else is even installed on it...
>3. Since you're using the web deployment project, review the MSbuild directives.
i.e., change the number of DLL's the application compiles to. Maybe, even, reduce it to 1 DLL instead of the, at least, two you have now.
(YourAppDeployment Property Pages, Output Assemblies; Merge all output to a single assembly)
Tried that...
>4. Explore one of the other compilation options
Tried them too...
"Juan T. Llibre" <no***********@nowhere.comwrote in message
news:%2****************@TK2MSFTNGP03.phx.gbl...
If it's "just a test server"...why don't you nuke it ?
Already tried that too...
Save all your data...and reinstall everything.
That sounds more painful than what it actually is.
This *really* is a bug in WAP / WDP...
"Mark Rae" <ma**@markNOSPAMrae.comwrote in message
news:OD**************@TK2MSFTNGP05.phx.gbl...
This *really* is a bug in WAP / WDP...
And you're not going to believe what it is... :-)
As we all know, one of the changes in the initial release of ASP.NET 2 was
the deprecation of the CodeBehind Page attribute in favour of the CodeFile
Page attribute: http://msdn2.microsoft.com/en-us/library/wa20t577.aspx
Fair enough. I'm sure lots of us built brand new ASP.NET 2 websites and
created brand new pages from the Project menu and noticed that the aspx page
had the CodeFile attibute instead of the CodeBehind attribute. Whatever...
However, the ASP.NET development community (hello everyone!) threw its arms
up in horror and said "No, we don't like the new project / site model - we
liked the old project / solution model from v1.1 much better, and we'd like
it back please."
So Microsoft, in a rare moment of actually listening to the development
community, said "OK - here you go - Web Application Projects. And we've even
done Web Deployment Projects for you as well, you lucky people!"
So everyone downloaded and installed the new add-ons and smiled a lot for
they were good.
However, if you build a brand new Web Application Project and create a new
form from the Project menu, you'll see that the aspx Page attribute is
CodeBehind again, not CodeFile...
If you then drop a v2 aspx file from a Web Site Project into a Web
Application Project and FORGET to change its page directive from CodeFile
back to CodeBehind...
Seems the new Web Application Project compilation model doesn't support the
CodeFile page attribute properly, and gets its knickers in a right old
twist... Hence, the double class reference...
AAARRRGGGHHH!!!
Congratulations, Mark!
Was this answer a result of the bug filed ?
Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"Mark Rae" <ma**@markNOSPAMrae.comwrote in message news:eC****************@TK2MSFTNGP04.phx.gbl...
"Mark Rae" <ma**@markNOSPAMrae.comwrote in message news:OD**************@TK2MSFTNGP05.phx.gbl...
>This *really* is a bug in WAP / WDP...
And you're not going to believe what it is... :-)
As we all know, one of the changes in the initial release of ASP.NET 2 was the deprecation of the
CodeBehind Page attribute in favour of the CodeFile Page attribute: http://msdn2.microsoft.com/en-us/library/wa20t577.aspx
Fair enough. I'm sure lots of us built brand new ASP.NET 2 websites and created brand new pages
from the Project menu and noticed that the aspx page had the CodeFile attibute instead of the
CodeBehind attribute. Whatever...
However, the ASP.NET development community (hello everyone!) threw its arms up in horror and said
"No, we don't like the new project / site model - we liked the old project / solution model from
v1.1 much better, and we'd like it back please."
So Microsoft, in a rare moment of actually listening to the development community, said "OK - here
you go - Web Application Projects. And we've even done Web Deployment Projects for you as well,
you lucky people!"
So everyone downloaded and installed the new add-ons and smiled a lot for they were good.
However, if you build a brand new Web Application Project and create a new form from the Project
menu, you'll see that the aspx Page attribute is CodeBehind again, not CodeFile...
If you then drop a v2 aspx file from a Web Site Project into a Web Application Project and FORGET
to change its page directive from CodeFile back to CodeBehind...
Seems the new Web Application Project compilation model doesn't support the CodeFile page
attribute properly, and gets its knickers in a right old twist... Hence, the double class
reference...
AAARRRGGGHHH!!!
Hi Mark,
Mark Rae wrote:
And you're not going to believe what it is... :-)
<Snipped>
Happy you figured it out. That also explains why I didn't have that
issue, since I systematically remove the CodeBehind / CodeFile
attributes from the page directive in ASP.NET 1.1 and also in the WAP.
Greetings,
Laurent
--
Laurent Bugnion, GalaSoft
Software engineering: http://www.galasoft-LB.ch
PhotoAlbum: http://www.galasoft-LB.ch/pictures
Support children in Calcutta: http://www.calcutta-espoir.ch
"Juan T. Llibre" <no***********@nowhere.comwrote in message
news:OW****************@TK2MSFTNGP02.phx.gbl...
Was this answer a result of the bug filed ?
Nope - pure chance that I stumbled across it...
"Laurent Bugnion" <ga*********@bluewin.chwrote in message
news:e8****************@TK2MSFTNGP04.phx.gbl...
Happy you figured it out. That also explains why I didn't have that issue,
since I systematically remove the CodeBehind / CodeFile attributes from
the page directive in ASP.NET 1.1 and also in the WAP.
You do all your server-side code in-line...?
Wow!
I encountered this exact problem today. After reviewing this post, I
changed my CodeFile attributes to CodeBehind, and thereafter my
application worked without trouble.
Thanks,
Rod Early www.harristeeter.com
Laurent Bugnion wrote:
Hi Mark,
Mark Rae wrote:
And you're not going to believe what it is... :-)
<Snipped>
Happy you figured it out. That also explains why I didn't have that
issue, since I systematically remove the CodeBehind / CodeFile
attributes from the page directive in ASP.NET 1.1 and also in the WAP.
Greetings,
Laurent
--
Laurent Bugnion, GalaSoft
Software engineering: http://www.galasoft-LB.ch
PhotoAlbum: http://www.galasoft-LB.ch/pictures
Support children in Calcutta: http://www.calcutta-espoir.ch
"Rod" <Ro******@gmail.comwrote in message
news:11**********************@i3g2000cwc.googlegro ups.com...
>I encountered this exact problem today. After reviewing this post, I
changed my CodeFile attributes to CodeBehind, and thereafter my
application worked without trouble.
Yep - as "gotchas" go, this really is a good'un...
I think Scott Guthrie is fed up receiving emails from me (!), so maybe
someone else (maybe one of the MVPs?) might like to contact him about this
so that he can put something on the WAP / WDP site...?
Double congratulations, then!
Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"Mark Rae" <ma**@markNOSPAMrae.comwrote in message
news:%2******************@TK2MSFTNGP05.phx.gbl...
"Juan T. Llibre" <no***********@nowhere.comwrote in message
news:OW****************@TK2MSFTNGP02.phx.gbl...
>Was this answer a result of the bug filed ?
Nope - pure chance that I stumbled across it...
Hi,
Mark Rae wrote:
"Laurent Bugnion" <ga*********@bluewin.chwrote in message
news:e8****************@TK2MSFTNGP04.phx.gbl...
>Happy you figured it out. That also explains why I didn't have that issue, since I systematically remove the CodeBehind / CodeFile attributes from the page directive in ASP.NET 1.1 and also in the WAP.
You do all your server-side code in-line...?
Wow!
No, no. I use this:
<%@ Page language="c#" AutoEventWireup="false"
Inherits="GalaSoftLb.Web.CustomControls.Test.App.T reeviewPage" %>
The "CodeBehind" attribute is only needed by the designer. If you don't
use the designer, you can remove the CodeBehind attribute and use the
Inherits attribute only.
The "CodeFile" attribute is only needed if you don't precompile the
code, i.e. if you publish the CS files. If you precompile, same as
before, you only need the Inherits attribute.
HTH,
Laurent
--
Laurent Bugnion, GalaSoft
Software engineering: http://www.galasoft-LB.ch
PhotoAlbum: http://www.galasoft-LB.ch/pictures
Support children in Calcutta: http://www.calcutta-espoir.ch
"Laurent Bugnion" <ga*********@bluewin.chwrote in message
news:e3****************@TK2MSFTNGP04.phx.gbl...
The "CodeBehind" attribute is only needed by the designer.
Yes - that's what I thought you were referring to - apologies...
Hi,
Mark Rae wrote:
"Laurent Bugnion" <ga*********@bluewin.chwrote in message
news:e3****************@TK2MSFTNGP04.phx.gbl...
>The "CodeBehind" attribute is only needed by the designer.
Yes - that's what I thought you were referring to - apologies...
If you meant that I do my HTML coding by hand, yes it's the case. The
designer in VS2003 was so terrible anyway, and I code HTML since 1997 or
so, I am just used to it. Besides, the HTML editor is great in VS2005,
it's very fast to just type the HTML.
Funnily enough, this comes handy when I code XAML too ;-)
HTH,
Laurent
--
Laurent Bugnion, GalaSoft
Software engineering: http://www.galasoft-LB.ch
PhotoAlbum: http://www.galasoft-LB.ch/pictures
Support children in Calcutta: http://www.calcutta-espoir.ch
"Laurent Bugnion" <ga*********@bluewin.chwrote in message
news:eQ****************@TK2MSFTNGP03.phx.gbl...
I do my HTML coding by hand
Me too.
That was it. Thank you! Been banging my head against my desk for hours
about this.
I really dislike the direction that ASP.Net 2.0 has headed, so I went
back to the (to me) much more logical Web Application Project layout.
And have had to deal with all these weird little issues as a
consequence. Why did we need to change? Deploy the DLL, ASPX,
possibly web.config, and be done with it!
But, indeed, the small change from CodeFile to CodeBehind did the
trick.
Thanks again.
Mark Rae wrote:
"Mark Rae" <ma**@markNOSPAMrae.comwrote in message
news:OD**************@TK2MSFTNGP05.phx.gbl...
This *really* is a bug in WAP / WDP...
And you're not going to believe what it is... :-)
As we all know, one of the changes in the initial release of ASP.NET 2 was
the deprecation of the CodeBehind Page attribute in favour of the CodeFile
Page attribute: http://msdn2.microsoft.com/en-us/library/wa20t577.aspx
Fair enough. I'm sure lots of us built brand new ASP.NET 2 websites and
created brand new pages from the Project menu and noticed that the aspx page
had the CodeFile attibute instead of the CodeBehind attribute. Whatever...
However, the ASP.NET development community (hello everyone!) threw its arms
up in horror and said "No, we don't like the new project / site model - we
liked the old project / solution model from v1.1 much better, and we'd like
it back please."
So Microsoft, in a rare moment of actually listening to the development
community, said "OK - here you go - Web Application Projects. And we've even
done Web Deployment Projects for you as well, you lucky people!"
So everyone downloaded and installed the new add-ons and smiled a lot for
they were good.
However, if you build a brand new Web Application Project and create a new
form from the Project menu, you'll see that the aspx Page attribute is
CodeBehind again, not CodeFile...
If you then drop a v2 aspx file from a Web Site Project into a Web
Application Project and FORGET to change its page directive from CodeFile
back to CodeBehind...
Seems the new Web Application Project compilation model doesn't support the
CodeFile page attribute properly, and gets its knickers in a right old
twist... Hence, the double class reference...
AAARRRGGGHHH!!!
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Albert Pascual |
last post by:
I always see this error when accesing any page in website I compiled in ASP.NET
Compiler Error Message: CS0433: The type 'Customer_CreditWizard' exists in
both...
|
by: Matt |
last post by:
Get this wierd compiler error on my production machine after publishing the
site in VS 2005, have no idea what it is..removed the temp files and it just
remakes them.
Compiler Error Message:...
|
by: paps |
last post by:
I've published my website into IIS and i receive this error when i call the
default page
Compiler Error Message: CS0433: The type 'ProfileCommon' exists in both...
|
by: rsphere |
last post by:
my app is running just fine on my home dev box. no compilation errors
at all. when i move the whole file structure to my hosted site i get
the following error when opening the main page:
...
|
by: mlcy |
last post by:
hi there,
i got this Compiler Error Message when i tried to access my site. all
files were built in vs2005 without error.
Compiler Error Message: CS0433: The type 'FrontEnd.AppConfig' exists...
| |
by: clickon |
last post by:
I am working on a portal web application that is largely modular. I have
been working on it on a "development" website. Some sections have been
tested and are complete. I decided to set up a...
|
by: lodatokab |
last post by:
I'm have problem to run crystal report (VS 2005) on my computer with Windows
2000 Server.
I run the solution in my dev envroiment (Windows XP) and no problems. When I
try to run in on IIS 5.0 on...
|
by: Phil |
last post by:
I've started getting this message after doing a publish of an Asp.Net 2.0
(c#) web site. The site uses a custom profile provider - I'm sure there is a
relation here, but I can't find it. ...
|
by: ningjun.wang |
last post by:
I crate a new asp.net 2.0 web site using Visual Studio 2005. It run
fine in visual studio. I then click Build Publish Website to build
the dll and copy them to the IIS virtual directory along with...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The...
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...
| |