p2p.wrox.com Forums

Need to download code?

View our list of code downloads.


  Return to Index  

aspdotnet_website_programming thread: CS0009 Problems


Message #1 by "Lawrence Fuller" <larry@l...> on Sun, 12 Jan 2003 02:42:15
Hello,

I have finally gotten to page 72 of the book where I can finally run 
something and have received the dreaded CS0009 fatal error.  The entire 
error and detailed compiler output is below this message.  I don't have 
an ealier version of Frameworks that needs to be removed and I can't 
figure out what I need to do to get out of this mess.  I have already ran 
the Frameworks install in "fix it" mode.  My service packs are also up to 
date.  Any suggestions?

Also, I have been changing the namespaces to jive with my own project.  
For example, instead of Wrox.Phile.Web.PhilePageBase you will see 
something called LawrenceFuller.ArtistHome.Web.ArtistHomePageBase.

Thank you much in advance.

Larry

Server Error in '/lawrencefuller/webhosts/ArtistHome' 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: CS0009: Metadata 
file 'C:\WINDOWS\Microsoft.NET\Framework\v1.0.3705\Temporary ASP.NET 
Files\lawrencefuller_webhosts_artisthome\a9bcfbf5\4ffd4ae0\assembly\dl2
\f4f4ac7b\c03ab6a5_cbb9c201
\LawrenceFuller.ArtistHome.Web.ArtistHomePageBase.DLL' could not be 
opened -- 'Access is denied. '

Source Error:

 

[No relevant source lines]
 

Source File:    Line: 0 



Show Detailed Compiler Output:


C:\WINDOWS\system32> "c:\windows\microsoft.net\framework\v1.0.3705
\csc.exe" /t:library /utf8output /R:"c:\windows\microsoft.net\framework\v1
.0.3705\temporary asp.net 
files\lawrencefuller_webhosts_artisthome\a9bcfbf5\4ffd4ae0\assembly\dl2
\493b02ad\00f31bb4_cbb9c201
\artisthome.dll" /R:"c:\windows\assembly\gac\system.web\1.0.3300.0__b03f5f
7f11d50a3a\system.web.dll" /R:"c:\windows\assembly\gac\system.data\1.0.330
0.0__b77a5c561934e089
\system.data.dll" /R:"c:\windows\assembly\gac\system.drawing\1.0.3300.0__b
03f5f7f11d50a3a\system.drawing.dll" /R:"c:\windows\assembly\gac\system.ent
erpriseservices\1.0.3300.0__b03f5f7f11d50a3a\system.enterpriseservices.dll
" /R:"c:\windows\microsoft.net\framework\v1.0.3705\temporary asp.net 
files\lawrencefuller_webhosts_artisthome\a9bcfbf5\4ffd4ae0\assembly\dl2
\f4f4ac7b\c03ab6a5_cbb9c201
\lawrencefuller.artisthome.web.artisthomepagebase.dll" /R:"c:\windows\micr
osoft.net\framework\v1.0.3705\temporary asp.net 
files\lawrencefuller_webhosts_artisthome\a9bcfbf5\4ffd4ae0\assembly\dl2
\24bd4e46\201f8ead_cbb9c201
\lawrencefuller.artisthome.web.controls.dll" /R:"c:\windows\assembly\gac\s
ystem.xml\1.0.3300.0__b77a5c561934e089
\system.xml.dll" /R:"c:\windows\microsoft.net\framework\v1.0.3705
\temporary asp.net files\lawrencefuller_webhosts_artisthome\a9bcfbf5
\4ffd4ae0\assembly\dl2\26947095\10cae797_cbb9c201
\lawrencefuller.webmodules.core.dll" /R:"c:\windows\assembly\gac\system.we
b.services\1.0.3300.0__b03f5f7f11d50a3a\system.web.services.dll" /R:"c:\wi
ndows\microsoft.net\framework\v1.0.3705
\mscorlib.dll" /R:"c:\windows\assembly\gac\system\1.0.3300.0__b77a5c561934
e089\system.dll" /out:"c:\windows\microsoft.net\framework\v1.0.3705
\Temporary ASP.NET Files\lawrencefuller_webhosts_artisthome\a9bcfbf5
\4ffd4ae0\54c5idjk.dll" /D:DEBUG /debug+ /optimize-
 /win32res:"c:\windows\microsoft.net\framework\v1.0.3705\Temporary 
ASP.NET Files\lawrencefuller_webhosts_artisthome\a9bcfbf5\4ffd4ae0
\54c5idjk.res" /warnaserror /w:1  "c:\windows\microsoft.net\framework\v1.0
.3705\Temporary ASP.NET Files\lawrencefuller_webhosts_artisthome\a9bcfbf5
\4ffd4ae0\54c5idjk.0.cs"


Microsoft (R) Visual C# .NET Compiler version 7.00.9466
for Microsoft (R) .NET Framework version 1.0.3705
Copyright (C) Microsoft Corporation 2001. All rights reserved.

fatal error CS0009: Metadata 
file 'C:\WINDOWS\Microsoft.NET\Framework\v1.0.3705\Temporary ASP.NET 
Files\lawrencefuller_webhosts_artisthome\a9bcfbf5\4ffd4ae0\assembly\dl2
\f4f4ac7b\c03ab6a5_cbb9c201
\LawrenceFuller.ArtistHome.Web.ArtistHomePageBase.DLL' could not be 
opened -- 'Access is denied. '

 



Show Complete Compilation Source:


Line 1:    //-------------------------------------------------------------
-----------------
Line 2:    // <autogenerated>
Line 3:    //     This code was generated by a tool.
Line 4:    //     Runtime Version: 1.0.3705.288
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 SiteHeader_ascx : 
LawrenceFuller.ArtistHome.Web.Controls.User.SiteHeader {
Line 29:           
Line 30:           private static bool __intialized = false;
Line 31:           
Line 32:           private static object __stringResource;
Line 33:           
Line 34:           public SiteHeader_ascx() {
Line 35:               if ((ASP.SiteHeader_ascx.__intialized == false)) {
Line 36:                   ASP.SiteHeader_ascx.__stringResource = 
System.Web.UI.TemplateControl.ReadStringResource(typeof
(ASP.SiteHeader_ascx));
Line 37:                   ASP.SiteHeader_ascx.__intialized = true;
Line 38:               }
Line 39:           }
Line 40:           
Line 41:           protected override bool SupportAutoEvents {
Line 42:               get {
Line 43:                   return false;
Line 44:               }
Line 45:           }
Line 46:           
Line 47:           protected System.Web.HttpApplication 
ApplicationInstance {
Line 48:               get {
Line 49:                   return ((System.Web.HttpApplication)
(this.Context.ApplicationInstance));
Line 50:               }
Line 51:           }
Line 52:           
Line 53:           public override string TemplateSourceDirectory {
Line 54:               get {
Line 55:                   
return "/lawrencefuller/webhosts/artisthome/Controls";
Line 56:               }
Line 57:           }
Line 58:           
Line 59:           private System.Web.UI.Control __BuildControlGreeting() 
{
Line 60:               System.Web.UI.WebControls.Label __ctrl;
Line 61:               
Line 62:               #line 
13 "d:\inetpub\wwwroot\lawrencefuller\webhosts\artisthome\Controls\SiteHea
der.ascx"
Line 63:               __ctrl = new System.Web.UI.WebControls.Label();
Line 64:               
Line 65:               #line default
Line 66:               this.Greeting = __ctrl;
Line 67:               
Line 68:               #line 
13 "d:\inetpub\wwwroot\lawrencefuller\webhosts\artisthome\Controls\SiteHea
der.ascx"
Line 69:               __ctrl.ID = "Greeting";
Line 70:               
Line 71:               #line default
Line 72:               return __ctrl;
Line 73:           }
Line 74:           
Line 75:           private void __BuildControlTree(System.Web.UI.Control 
__ctrl) {
Line 76:               System.Web.UI.IParserAccessor __parser = 
((System.Web.UI.IParserAccessor)(__ctrl));
Line 77:               
Line 78:               #line 
1 "d:\inetpub\wwwroot\lawrencefuller\webhosts\artisthome\Controls\SiteHead
er.ascx"
Line 79:               __parser.AddParsedSubObject
(this.CreateResourceBasedLiteralControl(0, 313, true));
Line 80:               
Line 81:               #line default
Line 82:               
Line 83:               #line 
1 "d:\inetpub\wwwroot\lawrencefuller\webhosts\artisthome\Controls\SiteHead
er.ascx"
Line 84:               this.__BuildControlGreeting();
Line 85:               
Line 86:               #line default
Line 87:               
Line 88:               #line 
1 "d:\inetpub\wwwroot\lawrencefuller\webhosts\artisthome\Controls\SiteHead
er.ascx"
Line 89:               __parser.AddParsedSubObject(this.Greeting);
Line 90:               
Line 91:               #line default
Line 92:               
Line 93:               #line 
1 "d:\inetpub\wwwroot\lawrencefuller\webhosts\artisthome\Controls\SiteHead
er.ascx"
Line 94:               __parser.AddParsedSubObject(new 
System.Web.UI.LiteralControl("\r\n\t\t</td>\r\n\t</tr>\r\n</table>\r\n"));
Line 95:               
Line 96:               #line default
Line 97:           }
Line 98:           
Line 99:           protected override void FrameworkInitialize() {
Line 100:              SetStringResourcePointer
(ASP.SiteHeader_ascx.__stringResource, 313);
Line 101:              this.__BuildControlTree(this);
Line 102:          }
Line 103:      }
Line 104:  }
Line 105:  
 




--------------------------------------------------------------------------
------
Version Information: Microsoft .NET Framework Version:1.0.3705.288; 
ASP.NET Version:1.0.3705.288 
Message #2 by "Lawrence Fuller" <larry@l...> on Mon, 13 Jan 2003 03:42:37
> Hello,

> I have finally gotten to page 72 of the book where I can finally run 
s> omething and have received the dreaded CS0009 fatal error.  The entire 
e> rror and detailed compiler output is below this message.  I don't have 
a> n ealier version of Frameworks that needs to be removed and I can't 
f> igure out what I need to do to get out of this mess.  I have already 
ran 
t> he Frameworks install in "fix it" mode.  My service packs are also up 
to 
d> ate.  Any suggestions?

> Also, I have been changing the namespaces to jive with my own project.  
F> or example, instead of Wrox.Phile.Web.PhilePageBase you will see 
s> omething called LawrenceFuller.ArtistHome.Web.ArtistHomePageBase.

> Thank you much in advance.

> Larry

> Server Error in '/lawrencefuller/webhosts/ArtistHome' Application.
-> -----------------------------------------------------------------------
--
-> -----

> Compilation Error 
D> escription: An error occurred during the compilation of a resource 
r> equired to service this request. Please review the following specific 
e> rror details and modify your source code appropriately. 

> Compiler Error Message: CS0009: Metadata 
f> ile 'C:\WINDOWS\Microsoft.NET\Framework\v1.0.3705\Temporary ASP.NET 
F> iles\lawrencefuller_webhosts_artisthome\a9bcfbf5\4ffd4ae0\assembly\dl2
\> f4f4ac7b\c03ab6a5_cbb9c201
\> LawrenceFuller.ArtistHome.Web.ArtistHomePageBase.DLL' could not be 
o> pened -- 'Access is denied. '

> Source Error:

>  

> [No relevant source lines]
 > 

> Source File:    Line: 0 

> 

> Show Detailed Compiler Output:

> 
C> :\WINDOWS\system32> "c:\windows\microsoft.net\framework\v1.0.3705
\> 
csc.exe" /t:library /utf8output /R:"c:\windows\microsoft.net\framework\v1
.> 0.3705\temporary asp.net 
f> iles\lawrencefuller_webhosts_artisthome\a9bcfbf5\4ffd4ae0\assembly\dl2
\> 493b02ad\00f31bb4_cbb9c201
\> 
artisthome.dll" /R:"c:\windows\assembly\gac\system.web\1.0.3300.0__b03f5f
7> 
f11d50a3a\system.web.dll" /R:"c:\windows\assembly\gac\system.data\1.0.330
0> .0__b77a5c561934e089
\> 
system.data.dll" /R:"c:\windows\assembly\gac\system.drawing\1.0.3300.0__b
0> 
3f5f7f11d50a3a\system.drawing.dll" /R:"c:\windows\assembly\gac\system.ent
e> 
rpriseservices\1.0.3300.0__b03f5f7f11d50a3a\system.enterpriseservices.dll
">  /R:"c:\windows\microsoft.net\framework\v1.0.3705\temporary asp.net 
f> iles\lawrencefuller_webhosts_artisthome\a9bcfbf5\4ffd4ae0\assembly\dl2
\> f4f4ac7b\c03ab6a5_cbb9c201
\> 
lawrencefuller.artisthome.web.artisthomepagebase.dll" /R:"c:\windows\micr
o> soft.net\framework\v1.0.3705\temporary asp.net 
f> iles\lawrencefuller_webhosts_artisthome\a9bcfbf5\4ffd4ae0\assembly\dl2
\> 24bd4e46\201f8ead_cbb9c201
\> 
lawrencefuller.artisthome.web.controls.dll" /R:"c:\windows\assembly\gac\s
y> stem.xml\1.0.3300.0__b77a5c561934e089
\> system.xml.dll" /R:"c:\windows\microsoft.net\framework\v1.0.3705
\> temporary asp.net files\lawrencefuller_webhosts_artisthome\a9bcfbf5
\> 4ffd4ae0\assembly\dl2\26947095\10cae797_cbb9c201
\> 
lawrencefuller.webmodules.core.dll" /R:"c:\windows\assembly\gac\system.we
b> .services\1.0.3300.0__b03f5f7f11d50a3a\system.web.services.dll" /R:"c:\
wi
n> dows\microsoft.net\framework\v1.0.3705
\> 
mscorlib.dll" /R:"c:\windows\assembly\gac\system\1.0.3300.0__b77a5c561934
e> 089\system.dll" /out:"c:\windows\microsoft.net\framework\v1.0.3705
\> Temporary ASP.NET Files\lawrencefuller_webhosts_artisthome\a9bcfbf5
\> 4ffd4ae0\54c5idjk.dll" /D:DEBUG /debug+ /optimize-
 > /win32res:"c:\windows\microsoft.net\framework\v1.0.3705\Temporary 
A> SP.NET Files\lawrencefuller_webhosts_artisthome\a9bcfbf5\4ffd4ae0
\> 
54c5idjk.res" /warnaserror /w:1  "c:\windows\microsoft.net\framework\v1.0
.> 3705\Temporary ASP.NET 
Files\lawrencefuller_webhosts_artisthome\a9bcfbf5
\> 4ffd4ae0\54c5idjk.0.cs"

> 
M> icrosoft (R) Visual C# .NET Compiler version 7.00.9466
f> or Microsoft (R) .NET Framework version 1.0.3705
C> opyright (C) Microsoft Corporation 2001. All rights reserved.

> fatal error CS0009: Metadata 
f> ile 'C:\WINDOWS\Microsoft.NET\Framework\v1.0.3705\Temporary ASP.NET 
F> iles\lawrencefuller_webhosts_artisthome\a9bcfbf5\4ffd4ae0\assembly\dl2
\> f4f4ac7b\c03ab6a5_cbb9c201
\> LawrenceFuller.ArtistHome.Web.ArtistHomePageBase.DLL' could not be 
o> pened -- 'Access is denied. '

>  

> 

> Show Complete Compilation Source:

> 
L> ine 1:    //-----------------------------------------------------------
--
-> ----------------
L> ine 2:    // <autogenerated>
L> ine 3:    //     This code was generated by a tool.
L> ine 4:    //     Runtime Version: 1.0.3705.288
L> ine 5:    //
L> ine 6:    //     Changes to this file may cause incorrect behavior and 
w> ill be lost if 
L> ine 7:    //     the code is regenerated.
L> ine 8:    // </autogenerated>
L> ine 9:    //-----------------------------------------------------------
--
-> ----------------
L> ine 10:   
L> ine 11:   namespace ASP {
L> ine 12:       using System;
L> ine 13:       using System.Collections;
L> ine 14:       using System.Collections.Specialized;
L> ine 15:       using System.Configuration;
L> ine 16:       using System.Text;
L> ine 17:       using System.Text.RegularExpressions;
L> ine 18:       using System.Web;
L> ine 19:       using System.Web.Caching;
L> ine 20:       using System.Web.SessionState;
L> ine 21:       using System.Web.Security;
L> ine 22:       using System.Web.UI;
L> ine 23:       using System.Web.UI.WebControls;
L> ine 24:       using System.Web.UI.HtmlControls;
L> ine 25:       
L> ine 26:       
L> ine 27:       
[> System.Runtime.CompilerServices.CompilerGlobalScopeAttribute()]
L> ine 28:       public class SiteHeader_ascx : 
L> awrenceFuller.ArtistHome.Web.Controls.User.SiteHeader {
L> ine 29:           
L> ine 30:           private static bool __intialized = false;
L> ine 31:           
L> ine 32:           private static object __stringResource;
L> ine 33:           
L> ine 34:           public SiteHeader_ascx() {
L> ine 35:               if ((ASP.SiteHeader_ascx.__intialized == false)) 
{
L> ine 36:                   ASP.SiteHeader_ascx.__stringResource = 
S> ystem.Web.UI.TemplateControl.ReadStringResource(typeof
(> ASP.SiteHeader_ascx));
L> ine 37:                   ASP.SiteHeader_ascx.__intialized = true;
L> ine 38:               }
L> ine 39:           }
L> ine 40:           
L> ine 41:           protected override bool SupportAutoEvents {
L> ine 42:               get {
L> ine 43:                   return false;
L> ine 44:               }
L> ine 45:           }
L> ine 46:           
L> ine 47:           protected System.Web.HttpApplication 
A> pplicationInstance {
L> ine 48:               get {
L> ine 49:                   return ((System.Web.HttpApplication)
(> this.Context.ApplicationInstance));
L> ine 50:               }
L> ine 51:           }
L> ine 52:           
L> ine 53:           public override string TemplateSourceDirectory {
L> ine 54:               get {
L> ine 55:                   
r> eturn "/lawrencefuller/webhosts/artisthome/Controls";
L> ine 56:               }
L> ine 57:           }
L> ine 58:           
L> ine 59:           private System.Web.UI.Control __BuildControlGreeting
() 
{> 
L> ine 60:               System.Web.UI.WebControls.Label __ctrl;
L> ine 61:               
L> ine 62:               #line 
1> 
3 "d:\inetpub\wwwroot\lawrencefuller\webhosts\artisthome\Controls\SiteHea
d> er.ascx"
L> ine 63:               __ctrl = new System.Web.UI.WebControls.Label();
L> ine 64:               
L> ine 65:               #line default
L> ine 66:               this.Greeting = __ctrl;
L> ine 67:               
L> ine 68:               #line 
1> 
3 "d:\inetpub\wwwroot\lawrencefuller\webhosts\artisthome\Controls\SiteHea
d> er.ascx"
L> ine 69:               __ctrl.ID = "Greeting";
L> ine 70:               
L> ine 71:               #line default
L> ine 72:               return __ctrl;
L> ine 73:           }
L> ine 74:           
L> ine 75:           private void __BuildControlTree
(System.Web.UI.Control 
_> _ctrl) {
L> ine 76:               System.Web.UI.IParserAccessor __parser = 
(> (System.Web.UI.IParserAccessor)(__ctrl));
L> ine 77:               
L> ine 78:               #line 
1>  "d:\inetpub\wwwroot\lawrencefuller\webhosts\artisthome\Controls\SiteHe
ad
e> r.ascx"
L> ine 79:               __parser.AddParsedSubObject
(> this.CreateResourceBasedLiteralControl(0, 313, true));
L> ine 80:               
L> ine 81:               #line default
L> ine 82:               
L> ine 83:               #line 
1>  "d:\inetpub\wwwroot\lawrencefuller\webhosts\artisthome\Controls\SiteHe
ad
e> r.ascx"
L> ine 84:               this.__BuildControlGreeting();
L> ine 85:               
L> ine 86:               #line default
L> ine 87:               
L> ine 88:               #line 
1>  "d:\inetpub\wwwroot\lawrencefuller\webhosts\artisthome\Controls\SiteHe
ad
e> r.ascx"
L> ine 89:               __parser.AddParsedSubObject(this.Greeting);
L> ine 90:               
L> ine 91:               #line default
L> ine 92:               
L> ine 93:               #line 
1>  "d:\inetpub\wwwroot\lawrencefuller\webhosts\artisthome\Controls\SiteHe
ad
e> r.ascx"
L> ine 94:               __parser.AddParsedSubObject(new 
S> ystem.Web.UI.LiteralControl
("\r\n\t\t</td>\r\n\t</tr>\r\n</table>\r\n"));
L> ine 95:               
L> ine 96:               #line default
L> ine 97:           }
L> ine 98:           
L> ine 99:           protected override void FrameworkInitialize() {
L> ine 100:              SetStringResourcePointer
(> ASP.SiteHeader_ascx.__stringResource, 313);
L> ine 101:              this.__BuildControlTree(this);
L> ine 102:          }
L> ine 103:      }
L> ine 104:  }
L> ine 105:  
 > 

> 

> 
-> -----------------------------------------------------------------------
--
-> -----
V> ersion Information: Microsoft .NET Framework Version:1.0.3705.288; 
A> SP.NET Version:1.0.3705.288 
Message #3 by "Lawrence Fuller" <larry@l...> on Mon, 13 Jan 2003 03:45:23
Well, I installed .Net Frameworks 1.1 beta and now eveything is fine... 
that is, at least, I am getting the custom error readout that we created 
in the PhilePage.cs module.

Bye!
Larry

  Return to Index