I am receiving the following error in my web.config.
Parser Error Message: Object reference not set to an instance of an object.
Source File: D:\Webs\behi100001\web.config Line: 82
The specific error line is “type=”Microsoft.Samples.SqlTableProfileProvider”
<providers>
<clear/>
<add name="TableProfileProvider"
type="Microsoft.Samples.SqlTableProfileProvider"
connectionStringName="conBTWSqlExpress"
table="Profile_Custom"
applicationName="Harbor"/>
</providers>
I have a file in my App_Code directory with the namespace Microsoft.Samples, with a class called SqlTableProfileProvider. I am not sure what I am doing wrong.
Any help?
Thanks,
Kevin
Change your type to:
where is… well your assembly’s name. I think because the the sample class is in your App_code, it is compiled into your assembly.