J
John Dalberg
I converted a working web site project to a web application project and I
am getting a bunch of warnings and compile errors.
All code using .NET's profile class is giving an error.
example line:
txtName.Text = Profile.FirstName
gives an error:
... FirstName' is not a member of 'Profile'.
Even though it worked before migration and I have an attribute for it in
web.config:
...... <properties>
<add name="FirstName" type="System.String"
provider="AspNetSqlMembershipProvider"/>
and then I am getting lots of warnings for the web.config file. See below.
The warnings might be the cause for the profile errors because it couldn't
read the attributes for the profile but why is Visual Studio giving
warnings about the web.config file?
Message 1 Could not find schema information for the element
'http://schemas.microsoft.com/.NetConfiguration/v2.0:configuration'.
C:\Inetpub\wwwroot\insite_test\Web.config 1 4 insite_test
Message 2 Could not find schema information for the element
'http://schemas.microsoft.com/.NetConfiguration/v2.0:appSettings'.
C:\Inetpub\wwwroot\insite_test\Web.config 2 3 insite_test
Message 3 Could not find schema information for the element
'http://schemas.microsoft.com/.NetConfiguration/v2.0:add'.
C:\Inetpub\wwwroot\insite_test\Web.config 3 4 insite_test
Message 4 Could not find schema information for the attribute 'key'.
C:\Inetpub\wwwroot\insite_test\Web.config 3 8 insite_test
Message 5 Could not find schema information for the attribute
'value'. C:\Inetpub\wwwroot\insite_test\Web.config 3 26
insite_test Message 6 Could not find schema information for the
element 'http://schemas.microsoft.com/.NetConfiguration/v2.0:add'.
C:\Inetpub\wwwroot\insite_test\Web.config 4 4 insite_test
Message 7 Could not find schema information for the attribute 'key'.
C:\Inetpub\wwwroot\insite_test\Web.config 4 8 insite_test
and lots more of 'Could not find schema information.." warnings.
John Dalberg
am getting a bunch of warnings and compile errors.
All code using .NET's profile class is giving an error.
example line:
txtName.Text = Profile.FirstName
gives an error:
... FirstName' is not a member of 'Profile'.
Even though it worked before migration and I have an attribute for it in
web.config:
...... <properties>
<add name="FirstName" type="System.String"
provider="AspNetSqlMembershipProvider"/>
and then I am getting lots of warnings for the web.config file. See below.
The warnings might be the cause for the profile errors because it couldn't
read the attributes for the profile but why is Visual Studio giving
warnings about the web.config file?
Message 1 Could not find schema information for the element
'http://schemas.microsoft.com/.NetConfiguration/v2.0:configuration'.
C:\Inetpub\wwwroot\insite_test\Web.config 1 4 insite_test
Message 2 Could not find schema information for the element
'http://schemas.microsoft.com/.NetConfiguration/v2.0:appSettings'.
C:\Inetpub\wwwroot\insite_test\Web.config 2 3 insite_test
Message 3 Could not find schema information for the element
'http://schemas.microsoft.com/.NetConfiguration/v2.0:add'.
C:\Inetpub\wwwroot\insite_test\Web.config 3 4 insite_test
Message 4 Could not find schema information for the attribute 'key'.
C:\Inetpub\wwwroot\insite_test\Web.config 3 8 insite_test
Message 5 Could not find schema information for the attribute
'value'. C:\Inetpub\wwwroot\insite_test\Web.config 3 26
insite_test Message 6 Could not find schema information for the
element 'http://schemas.microsoft.com/.NetConfiguration/v2.0:add'.
C:\Inetpub\wwwroot\insite_test\Web.config 4 4 insite_test
Message 7 Could not find schema information for the attribute 'key'.
C:\Inetpub\wwwroot\insite_test\Web.config 4 8 insite_test
and lots more of 'Could not find schema information.." warnings.
John Dalberg