PC Review


Reply
Thread Tools Rate Thread

ASP.NET page compilation error

 
 
=?Utf-8?B?Sm9hY2hpbQ==?=
Guest
Posts: n/a
 
      22nd Mar 2005
I made some project changes (which seems it doesn't help if I undo) which
have created compilation error:

"
Server Error in '/PCSWebApp1' Application.
--------------------------------------------------------------------------------

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: CS1595: 'PCSWebApp1.Global' is defined in multiple
places; using definition from
'c:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET
Files\pcswebapp1\63c74586\45a51b27\assembly\dl2\62413afb\ccf3302b_2a2fc501\ASPdb.DLL'

Source Error:



Line 26:
Line 27: [System.Runtime.CompilerServices.CompilerGlobalScopeAttribute()]
Line 28: public class Global_asax : PCSWebApp1.Global {
Line 29:
Line 30: private static bool __initialized = false;


Source File: c:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET
Files\pcswebapp1\63c74586\45a51b27\evkipkjp.0.cs Line: 28



Show Detailed Compiler Output:


C:\WINDOWS\system32> "c:\windows\microsoft.net\framework\v1.1.4322\csc.exe"
/t:library /utf8output
/R:"c:\windows\microsoft.net\framework\v1.1.4322\mscorlib.dll"
/R:"c:\windows\assembly\gac\system.drawing\1.0.5000.0__b03f5f7f11d50a3a\system.drawing.dll"
/R:"c:\windows\microsoft.net\framework\v1.1.4322\temporary asp.net
files\pcswebapp1\63c74586\45a51b27\assembly\dl2\62413afb\ccf3302b_2a2fc501\aspdb.dll"
/R:"c:\windows\assembly\gac\system.web.mobile\1.0.5000.0__b03f5f7f11d50a3a\system.web.mobile.dll"
/R:"c:\windows\microsoft.net\framework\v1.1.4322\temporary asp.net
files\pcswebapp1\63c74586\45a51b27\assembly\dl2\eb91394c\1a9b1821_2f2fc501\aspdbapp.dll"
/R:"c:\windows\assembly\gac\system.data\1.0.5000.0__b77a5c561934e089\system.data.dll"
/R:"c:\windows\assembly\gac\system.enterpriseservices\1.0.5000.0__b03f5f7f11d50a3a\system.enterpriseservices.dll"
/R:"c:\windows\assembly\gac\system.web.services\1.0.5000.0__b03f5f7f11d50a3a\system.web.services.dll"
/R:"c:\windows\assembly\gac\system.xml\1.0.5000.0__b77a5c561934e089\system.xml.dll"
/R:"c:\windows\microsoft.net\framework\v1.1.4322\temporary asp.net
files\pcswebapp1\63c74586\45a51b27\assembly\dl2\2a56278c\2e93d48f_2f2fc501\pcswebapp1.dll"
/R:"c:\windows\assembly\gac\system\1.0.5000.0__b77a5c561934e089\system.dll"
/R:"c:\windows\assembly\gac\system.web\1.0.5000.0__b03f5f7f11d50a3a\system.web.dll"
/out:"C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET
Files\pcswebapp1\63c74586\45a51b27\evkipkjp.dll" /DEBUG /debug+ /optimize-
/warnaserror /w:1 "C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary
ASP.NET Files\pcswebapp1\63c74586\45a51b27\evkipkjp.0.cs"


Microsoft (R) Visual C# .NET Compiler version 7.10.3052.4
for Microsoft (R) .NET Framework version 1.1.4322
Copyright (C) Microsoft Corporation 2001-2002. All rights reserved.

c:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET
Files\pcswebapp1\63c74586\45a51b27\evkipkjp.0.cs(28,32): error CS1595:
'PCSWebApp1.Global' is defined in multiple places; using definition from
'c:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET
Files\pcswebapp1\63c74586\45a51b27\assembly\dl2\62413afb\ccf3302b_2a2fc501\ASPdb.DLL'





Show Complete Compilation Source:


Line 1:
//------------------------------------------------------------------------------
Line 2: // <autogenerated>
Line 3: // This code was generated by a tool.
Line 4: // Runtime Version: 1.1.4322.573
Line 5: //
Line 6: // Changes to this file may cause incorrect behavior and will
be lost if
Line 7: // the code is regenerated.
Line 8: // </autogenerated>
Line 9:
//------------------------------------------------------------------------------
Line 10:
Line 11: namespace ASP {
Line 12: using System;
Line 13: using System.Collections;
Line 14: using System.Collections.Specialized;
Line 15: using System.Configuration;
Line 16: using System.Text;
Line 17: using System.Text.RegularExpressions;
Line 18: using System.Web;
Line 19: using System.Web.Caching;
Line 20: using System.Web.SessionState;
Line 21: using System.Web.Security;
Line 22: using System.Web.UI;
Line 23: using System.Web.UI.WebControls;
Line 24: using System.Web.UI.HtmlControls;
Line 25:
Line 26:
Line 27:
[System.Runtime.CompilerServices.CompilerGlobalScopeAttribute()]
Line 28: public class Global_asax : PCSWebApp1.Global {
Line 29:
Line 30: private static bool __initialized = false;
Line 31:
Line 32: public Global_asax() {
Line 33: if ((ASP.Global_asax.__initialized == false)) {
Line 34: ASP.Global_asax.__initialized = true;
Line 35: }
Line 36: }
Line 37: }
Line 38: }
Line 39:

"


Whatever I do it seems I can't make this error go away. Any suggestions?
 
Reply With Quote
 
 
 
 
Dale Preston
Guest
Posts: n/a
 
      23rd Mar 2005
Try deleting the pcswebapp folder at:
c:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET Files\

and then delete everything at C:\Documents and
Settings\%YourLoginName%\VSWebCache including the VSWebCache folder.

And then restart.

Oh.... one more thing. Be sure that you don't have more than one
Global.asax or any other Global class.

I don't know of those things will fix your problem but one or the other of
the first two steps has been the cause whenever changes that I make in code
are not being reflected when I execute.

HTH

Dale Preston
MCAD, MCDBA, MCSE


"Joachim" <(E-Mail Removed)> wrote in message
news:C2D1814B-48F2-4E21-91D7-(E-Mail Removed)...
> I made some project changes (which seems it doesn't help if I undo) which
> have created compilation error:
>
> "
> Server Error in '/PCSWebApp1' Application.
> --------------------------------------------------------------------------

------
>
> 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: CS1595: 'PCSWebApp1.Global' is defined in multiple
> places; using definition from
> 'c:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET
>

Files\pcswebapp1\63c74586\45a51b27\assembly\dl2\62413afb\ccf3302b_2a2fc501\A
SPdb.DLL'
>
> Source Error:
>
>
>
> Line 26:
> Line 27:

[System.Runtime.CompilerServices.CompilerGlobalScopeAttribute()]
> Line 28: public class Global_asax : PCSWebApp1.Global {
> Line 29:
> Line 30: private static bool __initialized = false;
>
>
> Source File: c:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary

ASP.NET
> Files\pcswebapp1\63c74586\45a51b27\evkipkjp.0.cs Line: 28
>
>
>
> Show Detailed Compiler Output:
>
>
> C:\WINDOWS\system32>

"c:\windows\microsoft.net\framework\v1.1.4322\csc.exe"
> /t:library /utf8output
> /R:"c:\windows\microsoft.net\framework\v1.1.4322\mscorlib.dll"
>

/R:"c:\windows\assembly\gac\system.drawing\1.0.5000.0__b03f5f7f11d50a3a\syst
em.drawing.dll"
> /R:"c:\windows\microsoft.net\framework\v1.1.4322\temporary asp.net
>

files\pcswebapp1\63c74586\45a51b27\assembly\dl2\62413afb\ccf3302b_2a2fc501\a
spdb.dll"
>

/R:"c:\windows\assembly\gac\system.web.mobile\1.0.5000.0__b03f5f7f11d50a3a\s
ystem.web.mobile.dll"
> /R:"c:\windows\microsoft.net\framework\v1.1.4322\temporary asp.net
>

files\pcswebapp1\63c74586\45a51b27\assembly\dl2\eb91394c\1a9b1821_2f2fc501\a
spdbapp.dll"
>

/R:"c:\windows\assembly\gac\system.data\1.0.5000.0__b77a5c561934e089\system.
data.dll"
>

/R:"c:\windows\assembly\gac\system.enterpriseservices\1.0.5000.0__b03f5f7f11
d50a3a\system.enterpriseservices.dll"
>

/R:"c:\windows\assembly\gac\system.web.services\1.0.5000.0__b03f5f7f11d50a3a
\system.web.services.dll"
>

/R:"c:\windows\assembly\gac\system.xml\1.0.5000.0__b77a5c561934e089\system.x
ml.dll"
> /R:"c:\windows\microsoft.net\framework\v1.1.4322\temporary asp.net
>

files\pcswebapp1\63c74586\45a51b27\assembly\dl2\2a56278c\2e93d48f_2f2fc501\p
cswebapp1.dll"
>

/R:"c:\windows\assembly\gac\system\1.0.5000.0__b77a5c561934e089\system.dll"
>

/R:"c:\windows\assembly\gac\system.web\1.0.5000.0__b03f5f7f11d50a3a\system.w
eb.dll"
> /out:"C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET
> Files\pcswebapp1\63c74586\45a51b27\evkipkjp.dll" /DEBUG /debug+

/optimize-
> /warnaserror /w:1 "C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary
> ASP.NET Files\pcswebapp1\63c74586\45a51b27\evkipkjp.0.cs"
>
>
> Microsoft (R) Visual C# .NET Compiler version 7.10.3052.4
> for Microsoft (R) .NET Framework version 1.1.4322
> Copyright (C) Microsoft Corporation 2001-2002. All rights reserved.
>
> c:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET
> Files\pcswebapp1\63c74586\45a51b27\evkipkjp.0.cs(28,32): error CS1595:
> 'PCSWebApp1.Global' is defined in multiple places; using definition from
> 'c:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET
>

Files\pcswebapp1\63c74586\45a51b27\assembly\dl2\62413afb\ccf3302b_2a2fc501\A
SPdb.DLL'
>
>
>
>
>
> Show Complete Compilation Source:
>
>
> Line 1:
>

//--------------------------------------------------------------------------
----
> Line 2: // <autogenerated>
> Line 3: // This code was generated by a tool.
> Line 4: // Runtime Version: 1.1.4322.573
> Line 5: //
> Line 6: // Changes to this file may cause incorrect behavior and

will
> be lost if
> Line 7: // the code is regenerated.
> Line 8: // </autogenerated>
> Line 9:
>

//--------------------------------------------------------------------------
----
> Line 10:
> Line 11: namespace ASP {
> Line 12: using System;
> Line 13: using System.Collections;
> Line 14: using System.Collections.Specialized;
> Line 15: using System.Configuration;
> Line 16: using System.Text;
> Line 17: using System.Text.RegularExpressions;
> Line 18: using System.Web;
> Line 19: using System.Web.Caching;
> Line 20: using System.Web.SessionState;
> Line 21: using System.Web.Security;
> Line 22: using System.Web.UI;
> Line 23: using System.Web.UI.WebControls;
> Line 24: using System.Web.UI.HtmlControls;
> Line 25:
> Line 26:
> Line 27:
> [System.Runtime.CompilerServices.CompilerGlobalScopeAttribute()]
> Line 28: public class Global_asax : PCSWebApp1.Global {
> Line 29:
> Line 30: private static bool __initialized = false;
> Line 31:
> Line 32: public Global_asax() {
> Line 33: if ((ASP.Global_asax.__initialized == false)) {
> Line 34: ASP.Global_asax.__initialized = true;
> Line 35: }
> Line 36: }
> Line 37: }
> Line 38: }
> Line 39:
>
> "
>
>
> Whatever I do it seems I can't make this error go away. Any suggestions?



 
Reply With Quote
 
Alvin Bruney [ASP.NET MVP]
Guest
Posts: n/a
 
      23rd Mar 2005
typically, this means that you have two copies of the same dll on your
machine. The easiest way is to search your computer for the offending
assembly and make sure only one exists for that particular application

--
Regards,
Alvin Bruney
[Shameless Author Plug]
The Microsoft Office Web Components Black Book with .NET
available at www.lulu.com/owc
_________________________


"Joachim" <(E-Mail Removed)> wrote in message
news:C2D1814B-48F2-4E21-91D7-(E-Mail Removed)...
>I made some project changes (which seems it doesn't help if I undo) which
> have created compilation error:
>
> "
> Server Error in '/PCSWebApp1' Application.
> --------------------------------------------------------------------------------
>
> 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: CS1595: 'PCSWebApp1.Global' is defined in multiple
> places; using definition from
> 'c:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET
> Files\pcswebapp1\63c74586\45a51b27\assembly\dl2\62413afb\ccf3302b_2a2fc501\ASPdb.DLL'
>
> Source Error:
>
>
>
> Line 26:
> Line 27:
> [System.Runtime.CompilerServices.CompilerGlobalScopeAttribute()]
> Line 28: public class Global_asax : PCSWebApp1.Global {
> Line 29:
> Line 30: private static bool __initialized = false;
>
>
> Source File: c:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary
> ASP.NET
> Files\pcswebapp1\63c74586\45a51b27\evkipkjp.0.cs Line: 28
>
>
>
> Show Detailed Compiler Output:
>
>
> C:\WINDOWS\system32>
> "c:\windows\microsoft.net\framework\v1.1.4322\csc.exe"
> /t:library /utf8output
> /R:"c:\windows\microsoft.net\framework\v1.1.4322\mscorlib.dll"
> /R:"c:\windows\assembly\gac\system.drawing\1.0.5000.0__b03f5f7f11d50a3a\system.drawing.dll"
> /R:"c:\windows\microsoft.net\framework\v1.1.4322\temporary asp.net
> files\pcswebapp1\63c74586\45a51b27\assembly\dl2\62413afb\ccf3302b_2a2fc501\aspdb.dll"
> /R:"c:\windows\assembly\gac\system.web.mobile\1.0.5000.0__b03f5f7f11d50a3a\system.web.mobile.dll"
> /R:"c:\windows\microsoft.net\framework\v1.1.4322\temporary asp.net
> files\pcswebapp1\63c74586\45a51b27\assembly\dl2\eb91394c\1a9b1821_2f2fc501\aspdbapp.dll"
> /R:"c:\windows\assembly\gac\system.data\1.0.5000.0__b77a5c561934e089\system.data.dll"
> /R:"c:\windows\assembly\gac\system.enterpriseservices\1.0.5000.0__b03f5f7f11d50a3a\system.enterpriseservices.dll"
> /R:"c:\windows\assembly\gac\system.web.services\1.0.5000.0__b03f5f7f11d50a3a\system.web.services.dll"
> /R:"c:\windows\assembly\gac\system.xml\1.0.5000.0__b77a5c561934e089\system.xml.dll"
> /R:"c:\windows\microsoft.net\framework\v1.1.4322\temporary asp.net
> files\pcswebapp1\63c74586\45a51b27\assembly\dl2\2a56278c\2e93d48f_2f2fc501\pcswebapp1.dll"
> /R:"c:\windows\assembly\gac\system\1.0.5000.0__b77a5c561934e089\system.dll"
> /R:"c:\windows\assembly\gac\system.web\1.0.5000.0__b03f5f7f11d50a3a\system.web.dll"
> /out:"C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET
> Files\pcswebapp1\63c74586\45a51b27\evkipkjp.dll" /DEBUG /debug+
> /optimize-
> /warnaserror /w:1 "C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary
> ASP.NET Files\pcswebapp1\63c74586\45a51b27\evkipkjp.0.cs"
>
>
> Microsoft (R) Visual C# .NET Compiler version 7.10.3052.4
> for Microsoft (R) .NET Framework version 1.1.4322
> Copyright (C) Microsoft Corporation 2001-2002. All rights reserved.
>
> c:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET
> Files\pcswebapp1\63c74586\45a51b27\evkipkjp.0.cs(28,32): error CS1595:
> 'PCSWebApp1.Global' is defined in multiple places; using definition from
> 'c:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET
> Files\pcswebapp1\63c74586\45a51b27\assembly\dl2\62413afb\ccf3302b_2a2fc501\ASPdb.DLL'
>
>
>
>
>
> Show Complete Compilation Source:
>
>
> Line 1:
> //------------------------------------------------------------------------------
> Line 2: // <autogenerated>
> Line 3: // This code was generated by a tool.
> Line 4: // Runtime Version: 1.1.4322.573
> Line 5: //
> Line 6: // Changes to this file may cause incorrect behavior and
> will
> be lost if
> Line 7: // the code is regenerated.
> Line 8: // </autogenerated>
> Line 9:
> //------------------------------------------------------------------------------
> Line 10:
> Line 11: namespace ASP {
> Line 12: using System;
> Line 13: using System.Collections;
> Line 14: using System.Collections.Specialized;
> Line 15: using System.Configuration;
> Line 16: using System.Text;
> Line 17: using System.Text.RegularExpressions;
> Line 18: using System.Web;
> Line 19: using System.Web.Caching;
> Line 20: using System.Web.SessionState;
> Line 21: using System.Web.Security;
> Line 22: using System.Web.UI;
> Line 23: using System.Web.UI.WebControls;
> Line 24: using System.Web.UI.HtmlControls;
> Line 25:
> Line 26:
> Line 27:
> [System.Runtime.CompilerServices.CompilerGlobalScopeAttribute()]
> Line 28: public class Global_asax : PCSWebApp1.Global {
> Line 29:
> Line 30: private static bool __initialized = false;
> Line 31:
> Line 32: public Global_asax() {
> Line 33: if ((ASP.Global_asax.__initialized == false)) {
> Line 34: ASP.Global_asax.__initialized = true;
> Line 35: }
> Line 36: }
> Line 37: }
> Line 38: }
> Line 39:
>
> "
>
>
> Whatever I do it seems I can't make this error go away. Any suggestions?



 
Reply With Quote
 
=?Utf-8?B?Sm9hY2hpbQ==?=
Guest
Posts: n/a
 
      23rd Mar 2005
Thanks Mr. Prestion,

However, I can't delete the information in the WSWebCache folder and I don't
know how to be able to do it. The file seems to be in use but I have no idea
which program that is using it, since I have closed down Visual Studio.

Kind Regards,
Joachim

"Dale Preston" wrote:

> Try deleting the pcswebapp folder at:
> c:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET Files\
>
> and then delete everything at C:\Documents and
> Settings\%YourLoginName%\VSWebCache including the VSWebCache folder.
>
> And then restart.
>
> Oh.... one more thing. Be sure that you don't have more than one
> Global.asax or any other Global class.
>
> I don't know of those things will fix your problem but one or the other of
> the first two steps has been the cause whenever changes that I make in code
> are not being reflected when I execute.
>
> HTH
>
> Dale Preston
> MCAD, MCDBA, MCSE
>
>
> "Joachim" <(E-Mail Removed)> wrote in message
> news:C2D1814B-48F2-4E21-91D7-(E-Mail Removed)...
> > I made some project changes (which seems it doesn't help if I undo) which
> > have created compilation error:
> >
> > "
> > Server Error in '/PCSWebApp1' Application.
> > --------------------------------------------------------------------------

> ------
> >
> > 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: CS1595: 'PCSWebApp1.Global' is defined in multiple
> > places; using definition from
> > 'c:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET
> >

> Files\pcswebapp1\63c74586\45a51b27\assembly\dl2\62413afb\ccf3302b_2a2fc501\A
> SPdb.DLL'
> >
> > Source Error:
> >
> >
> >
> > Line 26:
> > Line 27:

> [System.Runtime.CompilerServices.CompilerGlobalScopeAttribute()]
> > Line 28: public class Global_asax : PCSWebApp1.Global {
> > Line 29:
> > Line 30: private static bool __initialized = false;
> >
> >
> > Source File: c:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary

> ASP.NET
> > Files\pcswebapp1\63c74586\45a51b27\evkipkjp.0.cs Line: 28
> >
> >
> >
> > Show Detailed Compiler Output:
> >
> >
> > C:\WINDOWS\system32>

> "c:\windows\microsoft.net\framework\v1.1.4322\csc.exe"
> > /t:library /utf8output
> > /R:"c:\windows\microsoft.net\framework\v1.1.4322\mscorlib.dll"
> >

> /R:"c:\windows\assembly\gac\system.drawing\1.0.5000.0__b03f5f7f11d50a3a\syst
> em.drawing.dll"
> > /R:"c:\windows\microsoft.net\framework\v1.1.4322\temporary asp.net
> >

> files\pcswebapp1\63c74586\45a51b27\assembly\dl2\62413afb\ccf3302b_2a2fc501\a
> spdb.dll"
> >

> /R:"c:\windows\assembly\gac\system.web.mobile\1.0.5000.0__b03f5f7f11d50a3a\s
> ystem.web.mobile.dll"
> > /R:"c:\windows\microsoft.net\framework\v1.1.4322\temporary asp.net
> >

> files\pcswebapp1\63c74586\45a51b27\assembly\dl2\eb91394c\1a9b1821_2f2fc501\a
> spdbapp.dll"
> >

> /R:"c:\windows\assembly\gac\system.data\1.0.5000.0__b77a5c561934e089\system.
> data.dll"
> >

> /R:"c:\windows\assembly\gac\system.enterpriseservices\1.0.5000.0__b03f5f7f11
> d50a3a\system.enterpriseservices.dll"
> >

> /R:"c:\windows\assembly\gac\system.web.services\1.0.5000.0__b03f5f7f11d50a3a
> \system.web.services.dll"
> >

> /R:"c:\windows\assembly\gac\system.xml\1.0.5000.0__b77a5c561934e089\system.x
> ml.dll"
> > /R:"c:\windows\microsoft.net\framework\v1.1.4322\temporary asp.net
> >

> files\pcswebapp1\63c74586\45a51b27\assembly\dl2\2a56278c\2e93d48f_2f2fc501\p
> cswebapp1.dll"
> >

> /R:"c:\windows\assembly\gac\system\1.0.5000.0__b77a5c561934e089\system.dll"
> >

> /R:"c:\windows\assembly\gac\system.web\1.0.5000.0__b03f5f7f11d50a3a\system.w
> eb.dll"
> > /out:"C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET
> > Files\pcswebapp1\63c74586\45a51b27\evkipkjp.dll" /DEBUG /debug+

> /optimize-
> > /warnaserror /w:1 "C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary
> > ASP.NET Files\pcswebapp1\63c74586\45a51b27\evkipkjp.0.cs"
> >
> >
> > Microsoft (R) Visual C# .NET Compiler version 7.10.3052.4
> > for Microsoft (R) .NET Framework version 1.1.4322
> > Copyright (C) Microsoft Corporation 2001-2002. All rights reserved.
> >
> > c:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET
> > Files\pcswebapp1\63c74586\45a51b27\evkipkjp.0.cs(28,32): error CS1595:
> > 'PCSWebApp1.Global' is defined in multiple places; using definition from
> > 'c:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET
> >

> Files\pcswebapp1\63c74586\45a51b27\assembly\dl2\62413afb\ccf3302b_2a2fc501\A
> SPdb.DLL'
> >
> >
> >
> >
> >
> > Show Complete Compilation Source:
> >
> >
> > Line 1:
> >

> //--------------------------------------------------------------------------
> ----
> > Line 2: // <autogenerated>
> > Line 3: // This code was generated by a tool.
> > Line 4: // Runtime Version: 1.1.4322.573
> > Line 5: //
> > Line 6: // Changes to this file may cause incorrect behavior and

> will
> > be lost if
> > Line 7: // the code is regenerated.
> > Line 8: // </autogenerated>
> > Line 9:
> >

> //--------------------------------------------------------------------------
> ----
> > Line 10:
> > Line 11: namespace ASP {
> > Line 12: using System;
> > Line 13: using System.Collections;
> > Line 14: using System.Collections.Specialized;
> > Line 15: using System.Configuration;
> > Line 16: using System.Text;
> > Line 17: using System.Text.RegularExpressions;
> > Line 18: using System.Web;
> > Line 19: using System.Web.Caching;
> > Line 20: using System.Web.SessionState;
> > Line 21: using System.Web.Security;
> > Line 22: using System.Web.UI;
> > Line 23: using System.Web.UI.WebControls;
> > Line 24: using System.Web.UI.HtmlControls;
> > Line 25:
> > Line 26:
> > Line 27:
> > [System.Runtime.CompilerServices.CompilerGlobalScopeAttribute()]
> > Line 28: public class Global_asax : PCSWebApp1.Global {
> > Line 29:
> > Line 30: private static bool __initialized = false;
> > Line 31:
> > Line 32: public Global_asax() {
> > Line 33: if ((ASP.Global_asax.__initialized == false)) {
> > Line 34: ASP.Global_asax.__initialized = true;
> > Line 35: }
> > Line 36: }
> > Line 37: }
> > Line 38: }
> > Line 39:
> >
> > "
> >
> >
> > Whatever I do it seems I can't make this error go away. Any suggestions?

>
>
>

 
Reply With Quote
 
=?Utf-8?B?Sm9hY2hpbQ==?=
Guest
Posts: n/a
 
      23rd Mar 2005
Mr. Preston,

I managed to delete the files at both locations, but I still had the same
problem.
Then I also found that I have to delete the files in the bin subdirectory of
the project folder to make it work.

Kind Regards,
Joachim

"Dale Preston" wrote:

> Try deleting the pcswebapp folder at:
> c:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET Files\
>
> and then delete everything at C:\Documents and
> Settings\%YourLoginName%\VSWebCache including the VSWebCache folder.
>
> And then restart.
>
> Oh.... one more thing. Be sure that you don't have more than one
> Global.asax or any other Global class.
>
> I don't know of those things will fix your problem but one or the other of
> the first two steps has been the cause whenever changes that I make in code
> are not being reflected when I execute.
>
> HTH
>
> Dale Preston
> MCAD, MCDBA, MCSE
>
>
> "Joachim" <(E-Mail Removed)> wrote in message
> news:C2D1814B-48F2-4E21-91D7-(E-Mail Removed)...
> > I made some project changes (which seems it doesn't help if I undo) which
> > have created compilation error:
> >
> > "
> > Server Error in '/PCSWebApp1' Application.
> > --------------------------------------------------------------------------

> ------
> >
> > 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: CS1595: 'PCSWebApp1.Global' is defined in multiple
> > places; using definition from
> > 'c:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET
> >

> Files\pcswebapp1\63c74586\45a51b27\assembly\dl2\62413afb\ccf3302b_2a2fc501\A
> SPdb.DLL'
> >
> > Source Error:
> >
> >
> >
> > Line 26:
> > Line 27:

> [System.Runtime.CompilerServices.CompilerGlobalScopeAttribute()]
> > Line 28: public class Global_asax : PCSWebApp1.Global {
> > Line 29:
> > Line 30: private static bool __initialized = false;
> >
> >
> > Source File: c:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary

> ASP.NET
> > Files\pcswebapp1\63c74586\45a51b27\evkipkjp.0.cs Line: 28
> >
> >
> >
> > Show Detailed Compiler Output:
> >
> >
> > C:\WINDOWS\system32>

> "c:\windows\microsoft.net\framework\v1.1.4322\csc.exe"
> > /t:library /utf8output
> > /R:"c:\windows\microsoft.net\framework\v1.1.4322\mscorlib.dll"
> >

> /R:"c:\windows\assembly\gac\system.drawing\1.0.5000.0__b03f5f7f11d50a3a\syst
> em.drawing.dll"
> > /R:"c:\windows\microsoft.net\framework\v1.1.4322\temporary asp.net
> >

> files\pcswebapp1\63c74586\45a51b27\assembly\dl2\62413afb\ccf3302b_2a2fc501\a
> spdb.dll"
> >

> /R:"c:\windows\assembly\gac\system.web.mobile\1.0.5000.0__b03f5f7f11d50a3a\s
> ystem.web.mobile.dll"
> > /R:"c:\windows\microsoft.net\framework\v1.1.4322\temporary asp.net
> >

> files\pcswebapp1\63c74586\45a51b27\assembly\dl2\eb91394c\1a9b1821_2f2fc501\a
> spdbapp.dll"
> >

> /R:"c:\windows\assembly\gac\system.data\1.0.5000.0__b77a5c561934e089\system.
> data.dll"
> >

> /R:"c:\windows\assembly\gac\system.enterpriseservices\1.0.5000.0__b03f5f7f11
> d50a3a\system.enterpriseservices.dll"
> >

> /R:"c:\windows\assembly\gac\system.web.services\1.0.5000.0__b03f5f7f11d50a3a
> \system.web.services.dll"
> >

> /R:"c:\windows\assembly\gac\system.xml\1.0.5000.0__b77a5c561934e089\system.x
> ml.dll"
> > /R:"c:\windows\microsoft.net\framework\v1.1.4322\temporary asp.net
> >

> files\pcswebapp1\63c74586\45a51b27\assembly\dl2\2a56278c\2e93d48f_2f2fc501\p
> cswebapp1.dll"
> >

> /R:"c:\windows\assembly\gac\system\1.0.5000.0__b77a5c561934e089\system.dll"
> >

> /R:"c:\windows\assembly\gac\system.web\1.0.5000.0__b03f5f7f11d50a3a\system.w
> eb.dll"
> > /out:"C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET
> > Files\pcswebapp1\63c74586\45a51b27\evkipkjp.dll" /DEBUG /debug+

> /optimize-
> > /warnaserror /w:1 "C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary
> > ASP.NET Files\pcswebapp1\63c74586\45a51b27\evkipkjp.0.cs"
> >
> >
> > Microsoft (R) Visual C# .NET Compiler version 7.10.3052.4
> > for Microsoft (R) .NET Framework version 1.1.4322
> > Copyright (C) Microsoft Corporation 2001-2002. All rights reserved.
> >
> > c:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET
> > Files\pcswebapp1\63c74586\45a51b27\evkipkjp.0.cs(28,32): error CS1595:
> > 'PCSWebApp1.Global' is defined in multiple places; using definition from
> > 'c:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET
> >

> Files\pcswebapp1\63c74586\45a51b27\assembly\dl2\62413afb\ccf3302b_2a2fc501\A
> SPdb.DLL'
> >
> >
> >
> >
> >
> > Show Complete Compilation Source:
> >
> >
> > Line 1:
> >

> //--------------------------------------------------------------------------
> ----
> > Line 2: // <autogenerated>
> > Line 3: // This code was generated by a tool.
> > Line 4: // Runtime Version: 1.1.4322.573
> > Line 5: //
> > Line 6: // Changes to this file may cause incorrect behavior and

> will
> > be lost if
> > Line 7: // the code is regenerated.
> > Line 8: // </autogenerated>
> > Line 9:
> >

> //--------------------------------------------------------------------------
> ----
> > Line 10:
> > Line 11: namespace ASP {
> > Line 12: using System;
> > Line 13: using System.Collections;
> > Line 14: using System.Collections.Specialized;
> > Line 15: using System.Configuration;
> > Line 16: using System.Text;
> > Line 17: using System.Text.RegularExpressions;
> > Line 18: using System.Web;
> > Line 19: using System.Web.Caching;
> > Line 20: using System.Web.SessionState;
> > Line 21: using System.Web.Security;
> > Line 22: using System.Web.UI;
> > Line 23: using System.Web.UI.WebControls;
> > Line 24: using System.Web.UI.HtmlControls;
> > Line 25:
> > Line 26:
> > Line 27:
> > [System.Runtime.CompilerServices.CompilerGlobalScopeAttribute()]
> > Line 28: public class Global_asax : PCSWebApp1.Global {
> > Line 29:
> > Line 30: private static bool __initialized = false;
> > Line 31:
> > Line 32: public Global_asax() {
> > Line 33: if ((ASP.Global_asax.__initialized == false)) {
> > Line 34: ASP.Global_asax.__initialized = true;
> > Line 35: }
> > Line 36: }
> > Line 37: }
> > Line 38: }
> > Line 39:
> >
> > "
> >
> >
> > Whatever I do it seems I can't make this error go away. Any suggestions?

>
>
>

 
Reply With Quote
 
xcode
Guest
Posts: n/a
 
      23rd Mar 2005
Have you created a Application with the folder in IIS?
 
Reply With Quote
 
Hans Kesting
Guest
Posts: n/a
 
      23rd Mar 2005
Joachim wrote:
> Thanks Mr. Prestion,
>
> However, I can't delete the information in the WSWebCache folder and I don't
> know how to be able to do it. The file seems to be in use but I have no idea
> which program that is using it, since I have closed down Visual Studio.
>
> Kind Regards,
> Joachim
>


IIS can still hold a lock on those files. Kill the aspnet_wp.exe process
(it restarts immediately) and the lock is gone.

> "Dale Preston" wrote:
>
>
>>Try deleting the pcswebapp folder at:
>> c:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET Files\
>>
>>and then delete everything at C:\Documents and
>>Settings\%YourLoginName%\VSWebCache including the VSWebCache folder.
>>
>>And then restart.
>>


--
Hans Kesting
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Odd 'Compilation Error' when viewing aspx page on server Stimp Microsoft ASP .NET 0 19th Sep 2006 03:05 PM
Compilation error when inheriting a partial class page dinesh Microsoft ASP .NET 0 12th Apr 2006 08:00 AM
looking for a Wait html page during application compilation sample... Jéjé Microsoft ASP .NET 0 19th Apr 2005 02:27 AM
Compilation of ASP.NET page classes and in-line .NET code =?Utf-8?B?SVNHQURNSU4=?= Microsoft Dot NET 3 23rd Oct 2004 10:01 AM
Q: Possible to change ASP.NET's page compilation behavior? Jiho Han Microsoft ASP .NET 2 10th Jun 2004 02:29 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:36 AM.