|
security
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Could not load type 'System.Web.Security.AccessRoleProvider'BETA and install .NET Framework 2.0. When the BETA version was removed, all apps reverted to 1.1. I have since run aspnet_regiis.exe -i to update the app but since I get the error listed on the subject line. This is what is returned: Line 46: <roleManager enabled="true"> Line 47: <providers> Line 48: <add name="AspNetAccessProvider2" type="System.Web.Security.AccessRoleProvider" connectionStringName="AccessFileName" applicationName="/"></add> Line 49: </providers> Line 50: </roleManager> This is a .NET app connected to a MS Access db also using the ASPNetdb.mdb file. Roland Hi,
all Access providers were removed in RTM - i think you can download them (or move to a proper db ;)) hmm - i just did a quick google but i can't find them ----- Dominick Baier (http://www.leastprivilege.com) Show quoteHide quote > AccessRoleProvider > "Dominick Baier" <dbaier@pleasepleasenospam_leastprivilege.com> wrote in I'm not sure what you're referring to re: access providers. I didn't write message news:51eb30483a128c8eb540d8faa70@news.microsoft.com... > Hi, > all Access providers were removed in RTM - i think you can download them > (or move to a proper db ;)) > > > hmm - i just did a quick google but i can't find them the app. Re: moving to a "proper db", the app will one day reside on SQL so I can get away from the MS Access nightmare but not feasible at the moment. Roland well - the class this config element is referring to
<add name="AspNetAccessProvider2" type="System.Web.Security.AccessRoleProvider" connectionStringName="AccessFileName" applicationName="/"></add> is not included anymore in .NET 2.0 - it was there in beta times... makes sense? ----- Dominick Baier (http://www.leastprivilege.com) Show quoteHide quote > "Dominick Baier" <dbaier@pleasepleasenospam_leastprivilege.com> wrote > in message news:51eb30483a128c8eb540d8faa70@news.microsoft.com... > >> Hi, >> all Access providers were removed in RTM - i think you can download >> them >> (or move to a proper db ;)) >> hmm - i just did a quick google but i can't find them >> > I'm not sure what you're referring to re: access providers. I didn't > write the app. > > Re: moving to a "proper db", the app will one day reside on SQL so I > can get away from the MS Access nightmare but not feasible at the > moment. > > Roland > "Dominick Baier" <dbaier@pleasepleasenospam_leastprivilege.com> wrote in Yes. So can I just remove the line?message news:51eb30483a278c8eb5889ed0500@news.microsoft.com... > well - the class this config element is referring to > > <add name="AspNetAccessProvider2" > type="System.Web.Security.AccessRoleProvider" > connectionStringName="AccessFileName" applicationName="/"></add> > > > is not included anymore in .NET 2.0 - it was there in beta times... > > makes sense? -- Roland i don't think so - there must be some functionality relying on the configuration
- think of role providers as drivers for some datastore to get application (security) roles from - the "driver" for Access has been removed from the ..NET Framework. Thats the issue. I guess you will break the application if you remove it... ----- Dominick Baier (http://www.leastprivilege.com) Show quoteHide quote > "Dominick Baier" <dbaier@pleasepleasenospam_leastprivilege.com> wrote > in message news:51eb30483a278c8eb5889ed0500@news.microsoft.com... > >> well - the class this config element is referring to >> >> <add name="AspNetAccessProvider2" >> type="System.Web.Security.AccessRoleProvider" >> connectionStringName="AccessFileName" applicationName="/"></add> >> >> is not included anymore in .NET 2.0 - it was there in beta times... >> >> makes sense? >> > Yes. So can I just remove the line? > > -- > Roland
Show quote
Hide quote
"Dominick Baier" <dbaier@pleasepleasenospam_leastprivilege.com> wrote in It was already broken. (O:=message news:51eb30483a368c8eb6412e0e420@news.microsoft.com... >i don't think so - there must be some functionality relying on the >configuration - > think of role providers as drivers for some datastore to get application > (security) roles from - the "driver" for Access has been removed from the > .NET Framework. Thats the issue. > > I guess you will break the application if you remove it... > > ----- > Dominick Baier (http://www.leastprivilege.com) > >> "Dominick Baier" <dbaier@pleasepleasenospam_leastprivilege.com> wrote >> in message news:51eb30483a278c8eb5889ed0500@news.microsoft.com... >> >>> well - the class this config element is referring to >>> >>> <add name="AspNetAccessProvider2" >>> type="System.Web.Security.AccessRoleProvider" >>> connectionStringName="AccessFileName" applicationName="/"></add> >>> >>> is not included anymore in .NET 2.0 - it was there in beta times... >>> >>> makes sense? >>> >> Yes. So can I just remove the line? I'm currently referencing this: http://msdn2.microsoft.com/en-us/library/hktw939c(VS.80).aspx
Show quote
Hide quote
"Roland Hall" <nobody@nowhere> wrote in message I removed the line and now I'm here:news:um9$lMUHHHA.3616@TK2MSFTNGP02.phx.gbl... > "Dominick Baier" <dbaier@pleasepleasenospam_leastprivilege.com> wrote in > message news:51eb30483a278c8eb5889ed0500@news.microsoft.com... >> well - the class this config element is referring to >> >> <add name="AspNetAccessProvider2" >> type="System.Web.Security.AccessRoleProvider" >> connectionStringName="AccessFileName" applicationName="/"></add> >> >> >> is not included anymore in .NET 2.0 - it was there in beta times... >> >> makes sense? > > Yes. So can I just remove the line? Theme 'White' cannot be found in the application or global theme directories I like dominoes but this is ridiculous.
Show quote
Hide quote
"Roland Hall" <nobody@nowhere> wrote in message I modified the <providers></providers> to <providers/> since it no longer news:OW3gCfUHHHA.2632@TK2MSFTNGP06.phx.gbl... > > "Roland Hall" <nobody@nowhere> wrote in message > news:um9$lMUHHHA.3616@TK2MSFTNGP02.phx.gbl... >> "Dominick Baier" <dbaier@pleasepleasenospam_leastprivilege.com> wrote in >> message news:51eb30483a278c8eb5889ed0500@news.microsoft.com... >>> well - the class this config element is referring to >>> >>> <add name="AspNetAccessProvider2" >>> type="System.Web.Security.AccessRoleProvider" >>> connectionStringName="AccessFileName" applicationName="/"></add> >>> >>> >>> is not included anymore in .NET 2.0 - it was there in beta times... >>> >>> makes sense? >> >> Yes. So can I just remove the line? > > I removed the line and now I'm here: > Theme 'White' cannot be found in the application or global theme > directories contained anything and now I'm here: An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified) looking at the ASP.NET config I see, LocalSqlServer with connect parameters: data source=.\SQLEXPRESS;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|aspnetdb.mdf;User Instance=true Problem is, I don't have SQLEXPRESS. I have SQL Server but not using it for this app. I'm using MS Access. My data directory is \websites\sedg\data\aspnetdb.mdb Can I replace the connection string with an OLEDB connection to MS Access? -- Roland Hall Hello Roland,
You should contact the author of the application (which isn't you, as I understand) and ask for a version of the application that is compatible with .NET 2.0 final (as opposed to beta). It is impossible to judge from the outside what changes may be required in the application to make it work, and it's more than likely that you won't be able to make those changes yourself. Oliver Sturm
UNC Share causing Internal Server Error 500
Win2K3, IIS6, and IE6 - Can't get IWA/NTLM to work MS IIS Setting: HTTP Failed To Connect if Using Machine Name Virus in IFRAME injected into our ASP pages (downloader trojan on client) Login not require a domain in IIS hosted site? notepad will not save .config file in iis7 RPC over HTTPS for Exchange IIS Security and files upload/create "Certificate does not have a private key" Multiple SSL - Same Server - Same Port/IP |
|||||||||||||||||||||||