Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx thread: RE: HELP! Server Config


Message #1 by marl@s... on Thu, 2 Jan 2003 19:35:17
> Two things to check:

(1) Did you install IIS before installing VS.NET? I know others have had
problems if they install VS.NET before installing IIS.

(2) You must have your website set to use integrated Windows authentication
in order to debug it using VS.NET. Is that where you are having a problem?

You may want to check the ACLs on the root folder also.

hth

Helen

> -----Original Message-----
> From: marl@s... [mailto:marl@s...]
> Sent: Wednesday, December 11, 2002 11:41 AM
> To: ASP.NET
> Subject: [aspx] HELP! Server Config
>
>
> Hi:
>
> I can't get aspx to work on my server.
>
> I'm running multiple sites under IIS, Windows 2000.
> ASP is working fine for all sites but ASPX just returns an
Hi Helen:

Sorry for the delay here.
I'm running ASP.NET on my development computer w/ no problem, so the 
problem is not with VS.NET.

I solved this particular problem by adding Read+Directory+Execute 
permissions on each individual folder in the path from the drive all the 
way through the application folder, for the ASPNET user. Microsoft cited 
that it's a bug.

My problem now is that ASP.NET can't find the .NET components.
It looks for it about *everywhere* except where it actually is. It seems 
to think that System.Data is a class that *I* developed. It can't find 
it's own objects.

Here's the error:
-------------------------------
File or assembly name System.Data, or one of its dependencies, was not 
found.Server 
Error in '/StockWatcher' Application.


File or assembly name System.Data, or one of its dependencies, was not 
found. 
Description: An unhandled exception occurred during the execution of the 
current 
web request. Please review the stack trace for more information about the 
error 
and where it originated in the code. 

Exception Details: System.IO.FileNotFoundException: File or assembly name 
System.Data, or one of its dependencies, was not found.

Source Error: 

      An unhandled exception was generated during the execution of the 
current 
      web request. Information regarding the origin and location of the 
      exception can be identified using the exception stack trace below. 

Assembly Load Trace: The following information can be helpful to determine 
why 
the assembly 'System.Data' could not be loaded.


=== Pre-bind state information ===
LOG: DisplayName = System.Data, Version=1.0.2411.0, Culture=neutral, 
PublicKeyToken=b77a5c561934e089
 (Fully-specified)
LOG: Appbase = file:///E:/SecureSites/W/WatchThisStock/StockWatcher
LOG: Initial PrivatePath = bin
Calling assembly : (Unknown).
===

LOG: Publisher policy file is not found.
LOG: No redirect found in host configuration file 
(E:\WINNT\Microsoft.NET\Framework\v1.0.3705\aspnet.config).
LOG: Using machine configuration file from 
E:\WINNT\Microsoft.NET\Framework\v1.0.3705\config\machine.config.
LOG: Post-policy reference: System.Data, Version=1.0.2411.0, 
Culture=neutral, PublicKeyToken=b77a5c561934e089
LOG: Attempting download of new URL 
file:///E:/WINNT/Microsoft.NET/Framework/v1.0.3705/Temporary ASP.NET 
Files/stockwatcher/12ca8a18/4249979a/System.Data.DLL.
LOG: Attempting download of new URL 
file:///E:/WINNT/Microsoft.NET/Framework/v1.0.3705/Temporary ASP.NET 
Files/stockwatcher/12ca8a18/4249979a/System.Data/System.Data.DLL.
LOG: Attempting download of new URL 
file:///E:/SecureSites/W/WatchThisStock/StockWatcher/bin/System.Data.DLL.
LOG: Attempting download of new URL 
file:///E:/SecureSites/W/WatchThisStock/StockWatcher/bin/System.Data/System
.Data.DLL.
LOG: Attempting download of new URL 
file:///E:/WINNT/Microsoft.NET/Framework/v1.0.3705/Temporary ASP.NET 
Files/stockwatcher/12ca8a18/4249979a/System.Data.EXE.
LOG: Attempting download of new URL 
file:///E:/WINNT/Microsoft.NET/Framework/v1.0.3705/Temporary ASP.NET 
Files/stockwatcher/12ca8a18/4249979a/System.Data/System.Data.EXE.
LOG: Attempting download of new URL 
file:///E:/SecureSites/W/WatchThisStock/StockWatcher/bin/System.Data.EXE.
LOG: Attempting download of new URL 
file:///E:/SecureSites/W/WatchThisStock/StockWatcher/bin/System.Data/System
.Data.EXE.



Stack Trace: 


[FileNotFoundException: File or assembly name System.Data, or one of its 
dependencies, was not found.]
   System.Reflection.Assembly.nLoad(AssemblyName fileName, String 
codeBase, Boolean isStringized, Evidence assemblySecurity, Boolean 
throwOnFileNotFound, Assembly locationHint, StackCrawlMark& stackMark) +0
   System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, 
Boolean stringized, Evidence assemblySecurity, StackCrawlMark& stackMark) 
+300
   System.Reflection.Assembly.Load(AssemblyName assemblyRef) +22
   System.Web.UI.Util.GetReferencedAssembliesHashtable(Assembly a) +69
   System.Web.Compilation.BaseCompiler.GetCompiledType() +404
   System.Web.UI.PageParser.CompileIntoType() +62
   System.Web.UI.TemplateParser.GetParserCacheItemThroughCompilation() +126

[HttpException (0x80004005): File or assembly name System.Data, or one of 
its dependencies, was not found.]
   System.Web.UI.TemplateParser.GetParserCacheItemInternal(Boolean 
fCreateIfNotFound) +827
   System.Web.UI.TemplateParser.GetParserCacheItemWithNewConfigPath() +125
   System.Web.UI.TemplateParser.GetParserCacheItem() +88
   System.Web.UI.TemplateControlParser.CompileAndGetParserCacheItem(String 
virtualPath, String inputFile, HttpContext context) +116
   System.Web.UI.TemplateControlParser.GetCompiledInstance(String 
virtualPath, String inputFile, HttpContext context) +36
   System.Web.UI.PageParser.GetCompiledPageInstance(String virtualPath, 
String inputFile, HttpContext context) +43
   System.Web.UI.PageHandlerFactory.GetHandler(HttpContext context, String 
requestType, String url, String path) +14
   System.Web.HttpApplication.MapHttpHandler(HttpContext context, String 
requestType, String path, String pathTranslated, Boolean useAppConfig) +174
   System.Web.MapHandlerExecutionStep.Execute() +78
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& 
completedSynchronously) +173





Version Information: Microsoft .NET Framework Version:1.0.3705.0; ASP.NET 
Version:1.0.3705.0 
--------------------------------------------------------
> error saying:
>
> "the directory (the site's root) cannot be accessed because
> it doesn't
> exist or due to security settings."
> It's a definite .NET error so I know ASP.NET is running, it
> just refuses
> to see any of the directories for any of the sites.
>
> www.watchthisstock.com/Test.aspx <<-- nothing but the word
> "TEST" in html
> won't display.
>
> What am I missing?

Message #2 by marl@s... on Thu, 2 Jan 2003 20:15:01
Thanks for your help.
Please see my comments below

> Make sure of the following...

1.) MDAC 2.7 must be installed before installing asp.net
Done
2.) Install asp.net service packs 1 and 2
Done
3.) Under directory security, give the asp_net user permissions
Yes, I had to give permissions for each individual folder in the path 
including the drive itself. Turns out it's a bug.
4.) In the machine.config file, under the 'processModel' section, set the
'userName' attribute to 'machine' and the 'password' attribute to
'AutoGenerate'
This was already set like this - no change here.

When I set permissions explicitly for each folder it solved the problem I 
was having. Now I've got another problem.

ASP.NET can't seem to locate it's own objects. It was trying to find 
System.Web until I removed Web.Config from the application's root.
Now it can't find System.Data. It's looking for it every place except 
where it is. 
System.Data is actually (with all the .NET objects) in:
E:\WINNT\Microsoft.NET\Framework\v1.0.3705

It acts like it thinks *I* developed System.Data.

Any help would be very much appreciated . . .
Here is the error:
-----------------------------------------------------
File or assembly name System.Data, or one of its dependencies, was not 
found.Server 
Error in '/StockWatcher' Application.


File or assembly name System.Data, or one of its dependencies, was not 
found. 
Description: An unhandled exception occurred during the execution of the 
current 
web request. Please review the stack trace for more information about the 
error 
and where it originated in the code. 

Exception Details: System.IO.FileNotFoundException: File or assembly name 
System.Data, or one of its dependencies, was not found.

Source Error: 

      An unhandled exception was generated during the execution of the 
current 
      web request. Information regarding the origin and location of the 
      exception can be identified using the exception stack trace below. 

Assembly Load Trace: The following information can be helpful to determine 
why 
the assembly 'System.Data' could not be loaded.


=== Pre-bind state information ===
LOG: DisplayName = System.Data, Version=1.0.2411.0, Culture=neutral, 
PublicKeyToken=b77a5c561934e089
 (Fully-specified)
LOG: Appbase = file:///E:/SecureSites/W/WatchThisStock/StockWatcher
LOG: Initial PrivatePath = bin
Calling assembly : (Unknown).
===

LOG: Publisher policy file is not found.
LOG: No redirect found in host configuration file 
(E:\WINNT\Microsoft.NET\Framework\v1.0.3705\aspnet.config).
LOG: Using machine configuration file from 
E:\WINNT\Microsoft.NET\Framework\v1.0.3705\config\machine.config.
LOG: Post-policy reference: System.Data, Version=1.0.2411.0, 
Culture=neutral, PublicKeyToken=b77a5c561934e089
LOG: Attempting download of new URL 
file:///E:/WINNT/Microsoft.NET/Framework/v1.0.3705/Temporary ASP.NET 
Files/stockwatcher/12ca8a18/4249979a/System.Data.DLL.
LOG: Attempting download of new URL 
file:///E:/WINNT/Microsoft.NET/Framework/v1.0.3705/Temporary ASP.NET 
Files/stockwatcher/12ca8a18/4249979a/System.Data/System.Data.DLL.
LOG: Attempting download of new URL 
file:///E:/SecureSites/W/WatchThisStock/StockWatcher/bin/System.Data.DLL.
LOG: Attempting download of new URL 
file:///E:/SecureSites/W/WatchThisStock/StockWatcher/bin/System.Data/System
.Data.DLL.
LOG: Attempting download of new URL 
file:///E:/WINNT/Microsoft.NET/Framework/v1.0.3705/Temporary ASP.NET 
Files/stockwatcher/12ca8a18/4249979a/System.Data.EXE.
LOG: Attempting download of new URL 
file:///E:/WINNT/Microsoft.NET/Framework/v1.0.3705/Temporary ASP.NET 
Files/stockwatcher/12ca8a18/4249979a/System.Data/System.Data.EXE.
LOG: Attempting download of new URL 
file:///E:/SecureSites/W/WatchThisStock/StockWatcher/bin/System.Data.EXE.
LOG: Attempting download of new URL 
file:///E:/SecureSites/W/WatchThisStock/StockWatcher/bin/System.Data/System
.Data.EXE.



Stack Trace: 


[FileNotFoundException: File or assembly name System.Data, or one of its 
dependencies, was not found.]
   System.Reflection.Assembly.nLoad(AssemblyName fileName, String 
codeBase, Boolean isStringized, Evidence assemblySecurity, Boolean 
throwOnFileNotFound, Assembly locationHint, StackCrawlMark& stackMark) +0
   System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, 
Boolean stringized, Evidence assemblySecurity, StackCrawlMark& stackMark) 
+300
   System.Reflection.Assembly.Load(AssemblyName assemblyRef) +22
   System.Web.UI.Util.GetReferencedAssembliesHashtable(Assembly a) +69
   System.Web.Compilation.BaseCompiler.GetCompiledType() +404
   System.Web.UI.PageParser.CompileIntoType() +62
   System.Web.UI.TemplateParser.GetParserCacheItemThroughCompilation() +126

[HttpException (0x80004005): File or assembly name System.Data, or one of 
its dependencies, was not found.]
   System.Web.UI.TemplateParser.GetParserCacheItemInternal(Boolean 
fCreateIfNotFound) +827
   System.Web.UI.TemplateParser.GetParserCacheItemWithNewConfigPath() +125
   System.Web.UI.TemplateParser.GetParserCacheItem() +88
   System.Web.UI.TemplateControlParser.CompileAndGetParserCacheItem(String 
virtualPath, String inputFile, HttpContext context) +116
   System.Web.UI.TemplateControlParser.GetCompiledInstance(String 
virtualPath, String inputFile, HttpContext context) +36
   System.Web.UI.PageParser.GetCompiledPageInstance(String virtualPath, 
String inputFile, HttpContext context) +43
   System.Web.UI.PageHandlerFactory.GetHandler(HttpContext context, String 
requestType, String url, String path) +14
   System.Web.HttpApplication.MapHttpHandler(HttpContext context, String 
requestType, String path, String pathTranslated, Boolean useAppConfig) +174
   System.Web.MapHandlerExecutionStep.Execute() +78
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& 
completedSynchronously) +173





Version Information: Microsoft .NET Framework Version:1.0.3705.0; ASP.NET 
Version:1.0.3705.0 

------------------------------------------------------
Hth

Greg


-----Original Message-----
From: marl@s... [mailto:marl@s...]
Sent: Wednesday, December 11, 2002 7:41 PM
To: ASP.NET
Subject: [aspx] HELP! Server Config


Hi:

I can't get aspx to work on my server.

I'm running multiple sites under IIS, Windows 2000.
ASP is working fine for all sites but ASPX just returns an error saying:

"the directory (the site's root) cannot be accessed because it doesn't
exist or due to security settings."
It's a definite .NET error so I know ASP.NET is running, it just refuses
to see any of the directories for any of the sites.

www.watchthisstock.com/Test.aspx <<-- nothing but the word "TEST" in html
won't display.

What am I missing?


  Return to Index