473,387 Members | 1,541 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Assembly load problem - System.Web

Hey

asp.net 2.0

My asp.net 2.0 project has got a assembly load problem:

Some of my web.config settings:

<membership defaultProvider="AH_MembershipProvider"
userIsOnlineTimeWindow="15">
<providers>
<add name="AH_MembershipProvider"
connectionStringName="LocalSqlServer"
applicationName="/"
enablePasswordRetrieval="true"
enablePasswordReset="true"
requiresQuestionAndAnswer="true"
requiresUniqueEmail="true"
passwordFormat="Encrypted"
maxInvalidPasswordAttempts="5"
passwordAttemptWindows="10"
minRequiredPasswordLength="5"
minRequiredNonalphanumericCharacters="0"
type="System.Web.Security.SqlMembershipProvider, System.Web,
Version=2.0.0.0, Culture=neutral, PublicKeyToken=58e92a0497700d23" />
</providers>
</membership>

<roleManager enabled="true" cacheRolesInCookie="true" cookieName="AHROLES"
defaultProvider="AH_RoleProvider">
<providers>
<add name="AH_RoleProvider"
connectionStringName="LocalSqlServer"
applicationName="/"
type="System.Web.Security.SqlRoleProvider, System.Web,
Version=2.0.0.0, Culture=neutral, PublicKeyToken=58e92a0497700d23" />
</providers>
</roleManager>

************************************************** ******************************
Server Error in '/myNetwork' Application.
--------------------------------------------------------------------------------

Configuration Error
Description: An error occurred during the processing of a configuration file
required to service this request. Please review the specific error details
below and modify your configuration file appropriately.

Parser Error Message: Could not load file or assembly 'System.Web,
Version=2.0.0.0, Culture=neutral, PublicKeyToken=58e92a0497700d23' or one of
its dependencies. The system cannot find the file specified.

Source Error:

Line 51: connectionStringName="LocalSqlServer"
Line 52: applicationName="/"
Line 53: type="System.Web.Security.SqlRoleProvider, System.Web,
Version=2.0.0.0, Culture=neutral, PublicKeyToken=58e92a0497700d23" />
Line 54: </providers>
Line 55: </roleManager>

Source File: C:\Documents and Settings\Test\My Documents\Visual Studio
2005\WebSites\HelloWorld\web.config Line: 53

Assembly Load Trace: The following information can be helpful to determine
why the assembly 'System.Web, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=58e92a0497700d23' could not be loaded.

=== Pre-bind state information ===
LOG: User = PC3\Test
LOG: DisplayName = System.Web, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=58e92a0497700d23
(Fully-specified)
LOG: Appbase = file:///C:/Documents and Settings/Test/My Documents/Visual
Studio 2005/WebSites/HelloWorld/
LOG: Initial PrivatePath = C:\Documents and Settings\Test\My
Documents\Visual Studio 2005\WebSites\HelloWorld\bin
Calling assembly : System.Web, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a.
===
LOG: This bind starts in default load context.
LOG: Using application configuration file: C:\Documents and Settings\Test\My
Documents\Visual Studio 2005\WebSites\HelloWorld\web.config
LOG: Using machine configuration file from
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\conf ig\machine.config.
LOG: Post-policy reference: System.Web, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=58e92a0497700d23
LOG: Attempting download of new URL
file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET
Files/HelloWorld/0570c87d/5d2b6186/System.Web.DLL.
LOG: Attempting download of new URL
file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET
Files/HelloWorld/0570c87d/5d2b6186/System.Web/System.Web.DLL.
LOG: Attempting download of new URL file:///C:/Documents and
Settings/Test/My Documents/Visual Studio
2005/WebSites/HelloWorld/bin/System.Web.DLL.
LOG: Attempting download of new URL file:///C:/Documents and
Settings/Test/My Documents/Visual Studio
2005/WebSites/HelloWorld/bin/System.Web/System.Web.DLL.
LOG: Attempting download of new URL
file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET
Files/HelloWorld/0570c87d/5d2b6186/System.Web.EXE.
LOG: Attempting download of new URL
file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET
Files/HelloWorld/0570c87d/5d2b6186/System.Web/System.Web.EXE.
LOG: Attempting download of new URL file:///C:/Documents and
Settings/Test/My Documents/Visual Studio
2005/WebSites/HelloWorld/bin/System.Web.EXE.
LOG: Attempting download of new URL file:///C:/Documents and
Settings/Test/My Documents/Visual Studio
2005/WebSites/HelloWorld/bin/System.Web/System.Web.EXE.

--------------------------------------------------------------------------------

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

*************************

This web solution I'm trying to run has 2 projects, 1 project is the asp.net
project itself, and the other project is a Class Library project.

From the trace data above I see that this failes because it tryes to access
a filed named System.Web.EXE. Of course it should be System.Web.DLL, but
somehow my project tryes to access the System.Web.EXE file.

If I remove the RoleManager section in the web.config file, then everything
works.. But I need this section.

Any ideas why I get this error?


Sep 17 '06 #1
2 3351
Without testing, my guess would be that you have to change this

type="System.Web.Security.SqlMembershipProvider, System.Web,
Version=2.0.0.0, Culture=neutral, PublicKeyToken=58e92a0497700d23" />

to this

type="System.Web.Security.SqlMembershipProvider" />

You also may need to add the assemblies in the compilation section, but I
would try the above first.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

*************************************************
Think outside of the box!
*************************************************
"Jeff" <it************@hotmail.com.NOSPAMwrote in message
news:uz**************@TK2MSFTNGP03.phx.gbl...
Hey

asp.net 2.0

My asp.net 2.0 project has got a assembly load problem:

Some of my web.config settings:

<membership defaultProvider="AH_MembershipProvider"
userIsOnlineTimeWindow="15">
<providers>
<add name="AH_MembershipProvider"
connectionStringName="LocalSqlServer"
applicationName="/"
enablePasswordRetrieval="true"
enablePasswordReset="true"
requiresQuestionAndAnswer="true"
requiresUniqueEmail="true"
passwordFormat="Encrypted"
maxInvalidPasswordAttempts="5"
passwordAttemptWindows="10"
minRequiredPasswordLength="5"
minRequiredNonalphanumericCharacters="0"
type="System.Web.Security.SqlMembershipProvider, System.Web,
Version=2.0.0.0, Culture=neutral, PublicKeyToken=58e92a0497700d23" />
</providers>
</membership>

<roleManager enabled="true" cacheRolesInCookie="true" cookieName="AHROLES"
defaultProvider="AH_RoleProvider">
<providers>
<add name="AH_RoleProvider"
connectionStringName="LocalSqlServer"
applicationName="/"
type="System.Web.Security.SqlRoleProvider, System.Web,
Version=2.0.0.0, Culture=neutral, PublicKeyToken=58e92a0497700d23" />
</providers>
</roleManager>

************************************************** ******************************
Server Error in '/myNetwork' Application.
--------------------------------------------------------------------------------

Configuration Error
Description: An error occurred during the processing of a configuration
file required to service this request. Please review the specific error
details below and modify your configuration file appropriately.

Parser Error Message: Could not load file or assembly 'System.Web,
Version=2.0.0.0, Culture=neutral, PublicKeyToken=58e92a0497700d23' or one
of its dependencies. The system cannot find the file specified.

Source Error:

Line 51: connectionStringName="LocalSqlServer"
Line 52: applicationName="/"
Line 53: type="System.Web.Security.SqlRoleProvider, System.Web,
Version=2.0.0.0, Culture=neutral, PublicKeyToken=58e92a0497700d23" />
Line 54: </providers>
Line 55: </roleManager>

Source File: C:\Documents and Settings\Test\My Documents\Visual Studio
2005\WebSites\HelloWorld\web.config Line: 53

Assembly Load Trace: The following information can be helpful to determine
why the assembly 'System.Web, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=58e92a0497700d23' could not be loaded.

=== Pre-bind state information ===
LOG: User = PC3\Test
LOG: DisplayName = System.Web, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=58e92a0497700d23
(Fully-specified)
LOG: Appbase = file:///C:/Documents and Settings/Test/My Documents/Visual
Studio 2005/WebSites/HelloWorld/
LOG: Initial PrivatePath = C:\Documents and Settings\Test\My
Documents\Visual Studio 2005\WebSites\HelloWorld\bin
Calling assembly : System.Web, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a.
===
LOG: This bind starts in default load context.
LOG: Using application configuration file: C:\Documents and
Settings\Test\My Documents\Visual Studio
2005\WebSites\HelloWorld\web.config
LOG: Using machine configuration file from
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\conf ig\machine.config.
LOG: Post-policy reference: System.Web, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=58e92a0497700d23
LOG: Attempting download of new URL
file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET
Files/HelloWorld/0570c87d/5d2b6186/System.Web.DLL.
LOG: Attempting download of new URL
file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET
Files/HelloWorld/0570c87d/5d2b6186/System.Web/System.Web.DLL.
LOG: Attempting download of new URL file:///C:/Documents and
Settings/Test/My Documents/Visual Studio
2005/WebSites/HelloWorld/bin/System.Web.DLL.
LOG: Attempting download of new URL file:///C:/Documents and
Settings/Test/My Documents/Visual Studio
2005/WebSites/HelloWorld/bin/System.Web/System.Web.DLL.
LOG: Attempting download of new URL
file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET
Files/HelloWorld/0570c87d/5d2b6186/System.Web.EXE.
LOG: Attempting download of new URL
file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET
Files/HelloWorld/0570c87d/5d2b6186/System.Web/System.Web.EXE.
LOG: Attempting download of new URL file:///C:/Documents and
Settings/Test/My Documents/Visual Studio
2005/WebSites/HelloWorld/bin/System.Web.EXE.
LOG: Attempting download of new URL file:///C:/Documents and
Settings/Test/My Documents/Visual Studio
2005/WebSites/HelloWorld/bin/System.Web/System.Web.EXE.

--------------------------------------------------------------------------------

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

*************************

This web solution I'm trying to run has 2 projects, 1 project is the
asp.net project itself, and the other project is a Class Library project.

From the trace data above I see that this failes because it tryes to
access a filed named System.Web.EXE. Of course it should be
System.Web.DLL, but somehow my project tryes to access the System.Web.EXE
file.

If I remove the RoleManager section in the web.config file, then
everything works.. But I need this section.

Any ideas why I get this error?


Sep 17 '06 #2
Thanks, changing:
type="System.Web.Security.SqlMembershipProvider, System.Web,
Version=2.0.0.0, Culture=neutral, PublicKeyToken=58e92a0497700d23" />

to this

type="System.Web.Security.SqlMembershipProvider" />

solved the problem. I wonder why I had to remove the "System.Web,
Version=2.0.0.0, Culture=neutral, PublicKeyToken=58e92a0497700d23"???

Jeff


"Cowboy (Gregory A. Beamer)" <No************@comcast.netNoSpamMwrote in
message news:%2****************@TK2MSFTNGP04.phx.gbl...
Without testing, my guess would be that you have to change this

type="System.Web.Security.SqlMembershipProvider, System.Web,
Version=2.0.0.0, Culture=neutral, PublicKeyToken=58e92a0497700d23" />

to this

type="System.Web.Security.SqlMembershipProvider" />

You also may need to add the assemblies in the compilation section, but I
would try the above first.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

*************************************************
Think outside of the box!
*************************************************
"Jeff" <it************@hotmail.com.NOSPAMwrote in message
news:uz**************@TK2MSFTNGP03.phx.gbl...
>Hey

asp.net 2.0

My asp.net 2.0 project has got a assembly load problem:

Some of my web.config settings:

<membership defaultProvider="AH_MembershipProvider"
userIsOnlineTimeWindow="15">
<providers>
<add name="AH_MembershipProvider"
connectionStringName="LocalSqlServer"
applicationName="/"
enablePasswordRetrieval="true"
enablePasswordReset="true"
requiresQuestionAndAnswer="true"
requiresUniqueEmail="true"
passwordFormat="Encrypted"
maxInvalidPasswordAttempts="5"
passwordAttemptWindows="10"
minRequiredPasswordLength="5"
minRequiredNonalphanumericCharacters="0"
type="System.Web.Security.SqlMembershipProvider, System.Web,
Version=2.0.0.0, Culture=neutral, PublicKeyToken=58e92a0497700d23" />
</providers>
</membership>

<roleManager enabled="true" cacheRolesInCookie="true"
cookieName="AHROLES" defaultProvider="AH_RoleProvider">
<providers>
<add name="AH_RoleProvider"
connectionStringName="LocalSqlServer"
applicationName="/"
type="System.Web.Security.SqlRoleProvider, System.Web,
Version=2.0.0.0, Culture=neutral, PublicKeyToken=58e92a0497700d23" />
</providers>
</roleManager>

************************************************* *******************************
Server Error in '/myNetwork' Application.
--------------------------------------------------------------------------------

Configuration Error
Description: An error occurred during the processing of a configuration
file required to service this request. Please review the specific error
details below and modify your configuration file appropriately.

Parser Error Message: Could not load file or assembly 'System.Web,
Version=2.0.0.0, Culture=neutral, PublicKeyToken=58e92a0497700d23' or one
of its dependencies. The system cannot find the file specified.

Source Error:

Line 51: connectionStringName="LocalSqlServer"
Line 52: applicationName="/"
Line 53: type="System.Web.Security.SqlRoleProvider, System.Web,
Version=2.0.0.0, Culture=neutral, PublicKeyToken=58e92a0497700d23" />
Line 54: </providers>
Line 55: </roleManager>

Source File: C:\Documents and Settings\Test\My Documents\Visual Studio
2005\WebSites\HelloWorld\web.config Line: 53

Assembly Load Trace: The following information can be helpful to
determine why the assembly 'System.Web, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=58e92a0497700d23' could not be loaded.

=== Pre-bind state information ===
LOG: User = PC3\Test
LOG: DisplayName = System.Web, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=58e92a0497700d23
(Fully-specified)
LOG: Appbase = file:///C:/Documents and Settings/Test/My Documents/Visual
Studio 2005/WebSites/HelloWorld/
LOG: Initial PrivatePath = C:\Documents and Settings\Test\My
Documents\Visual Studio 2005\WebSites\HelloWorld\bin
Calling assembly : System.Web, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a.
===
LOG: This bind starts in default load context.
LOG: Using application configuration file: C:\Documents and
Settings\Test\My Documents\Visual Studio
2005\WebSites\HelloWorld\web.config
LOG: Using machine configuration file from
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\con fig\machine.config.
LOG: Post-policy reference: System.Web, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=58e92a0497700d23
LOG: Attempting download of new URL
file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET
Files/HelloWorld/0570c87d/5d2b6186/System.Web.DLL.
LOG: Attempting download of new URL
file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET
Files/HelloWorld/0570c87d/5d2b6186/System.Web/System.Web.DLL.
LOG: Attempting download of new URL file:///C:/Documents and
Settings/Test/My Documents/Visual Studio
2005/WebSites/HelloWorld/bin/System.Web.DLL.
LOG: Attempting download of new URL file:///C:/Documents and
Settings/Test/My Documents/Visual Studio
2005/WebSites/HelloWorld/bin/System.Web/System.Web.DLL.
LOG: Attempting download of new URL
file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET
Files/HelloWorld/0570c87d/5d2b6186/System.Web.EXE.
LOG: Attempting download of new URL
file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET
Files/HelloWorld/0570c87d/5d2b6186/System.Web/System.Web.EXE.
LOG: Attempting download of new URL file:///C:/Documents and
Settings/Test/My Documents/Visual Studio
2005/WebSites/HelloWorld/bin/System.Web.EXE.
LOG: Attempting download of new URL file:///C:/Documents and
Settings/Test/My Documents/Visual Studio
2005/WebSites/HelloWorld/bin/System.Web/System.Web.EXE.

--------------------------------------------------------------------------------

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

*************************

This web solution I'm trying to run has 2 projects, 1 project is the
asp.net project itself, and the other project is a Class Library project.

From the trace data above I see that this failes because it tryes to
access a filed named System.Web.EXE. Of course it should be
System.Web.DLL, but somehow my project tryes to access the System.Web.EXE
file.

If I remove the RoleManager section in the web.config file, then
everything works.. But I need this section.

Any ideas why I get this error?



Sep 17 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Carlos G Benevides | last post by:
I have a ASP.Net web application that has two assemblies that run under com+. Under Windows 2000 the two assemblies are added to com+ automatically when instantiated from the web site. For this...
1
by: Greg Patrick | last post by:
My problem: I load an some assemblies (strong named) from a byte array using Assembly.Load(byte). They load fine. But one one of them is actually accessed, it's referenced assemblies can't be...
0
by: karunakar | last post by:
Hi All I am not able to read the class name I want read the particular class name string path = System.Configuration.ConfigurationSettings.AppSettings; string className = path + ".User";...
3
by: markoueis | last post by:
Our .NET application, let's call it A, needs to load an assembly of another .NET application, let's call it B. Preferably I would like to early bind and early load the B assembly. However, in a...
0
by: qiang | last post by:
Hi everyone, Could you please take a look at an exception for ASP.NET application? My ASP.NET application is using Infragistics WebChart control. I encounter an exception below when...
1
by: ddelaney | last post by:
I've seen this posted before in many places, but have yet to find a real fix. I have a web application on dev server right now, and randomly, hours or days, it returns the expception posted below. ...
7
by: R Reyes | last post by:
Can someone please explain to me why I can't get the MS Word Interop assembly to work in my VS2005 project? I'm trying to manipulate MS Word from my Web Form application and I can't get passed...
3
by: Frank Uray | last post by:
Hi all I have a problem with loading a assembly ... I am trying to do the following: - I have a directory with a dll (assembly) in it (not the currect dir.) - I am trying to load this assembly,...
7
by: chage | last post by:
Hi, I have been searching around to try adding reference assembly to another assembly during runtime, programatically. Is this possible in .Net? The reason for this is because i am having...
0
by: Andy | last post by:
Thanks Peter, I thought I'd give an update on this problem. My application had 2 assemblies that contained classed for the Data access and business logic layer. It was on one of them that I was...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
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,...
0
jinu1996
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 using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.