I am working on a C # web service that needs to be provided with authentication, as well as roles and profile management. I need each profile to have a property of type List. The profile section in the web.config file is as follows:
<profile defaultProvider="MyProfileProvider" enabled="true"> <providers> <remove name="MyProfileProvider"/> <add connectionStringName="MySqlServer" applicationName="MyApp" name="MyProfileProvider" type="System.Web.Profile.SqlProfileProvider" /> </providers> <properties> <add name="Websites" type="System.Collections.Generic.List<String>" serializeAs="Binary"/> </properties> </profile>
However, when I start the web service and try to access this property, it returns the following error:
System.Configuration.ConfigurationErrorsException: An attempt to load this property type resulted in the following error: Failed to load the type 'System.Collections.Generic.List <String>'. (C: \ Projects \ MyProject \ web.config line 58) ---> System.Web.HttpException: Failed to load type 'System.Collections.Generic.List <String>'.
Is there a way to use a shared collection for this purpose?
c # web-services membership asp.net-membership asp.net-profiles
hancock
source share