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? 2 3309
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?
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? This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
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...
|
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...
|
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";...
|
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...
|
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...
|
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. ...
|
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...
|
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,...
|
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...
|
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...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 2 August 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM)
The start time is equivalent to 19:00 (7PM) in Central...
|
by: erikbower65 |
last post by:
Using CodiumAI's pr-agent is simple and powerful. Follow these steps:
1. Install CodiumAI CLI: Ensure Node.js is installed, then run 'npm install -g codiumai' in the terminal.
2. Connect to...
|
by: linyimin |
last post by:
Spring Startup Analyzer generates an interactive Spring application startup report that lets you understand what contributes to the application startup time and helps to optimize it. Support for...
|
by: erikbower65 |
last post by:
Here's a concise step-by-step guide for manually installing IntelliJ IDEA:
1. Download: Visit the official JetBrains website and download the IntelliJ IDEA Community or Ultimate edition based on...
|
by: kcodez |
last post by:
As a H5 game development enthusiast, I recently wrote a very interesting little game - Toy Claw ((http://claw.kjeek.com/))。Here I will summarize and share the development experience here, and hope it...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Sept 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM)
The start time is equivalent to 19:00 (7PM) in Central...
|
by: Rina0 |
last post by:
I am looking for a Python code to find the longest common subsequence of two strings. I found this blog post that describes the length of longest common subsequence problem and provides a solution in...
|
by: lllomh |
last post by:
Define the method first
this.state = {
buttonBackgroundColor: 'green',
isBlinking: false, // A new status is added to identify whether the button is blinking or not
}
autoStart=()=>{
|
by: DJRhino |
last post by:
Was curious if anyone else was having this same issue or not....
I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...
| |