Saturday, March 31, 2012

web.config errors after adding <profile> section

My 2.0 webapp works great.

I added a profile section and all of a sudden I get a slew of "Could not
find schema information for the element..." errors/messages.

Any ideas why? Here's part of my web.config...

:
<customErrors mode="Off" defaultRedirect="GenericErrorPage.htm">
<error statusCode="403" redirect="NoAccess.htm" />
<error statusCode="404" redirect="FileNotFound.htm" />
</customErrors>
<profile>
<properties>
<add name="Cart" type="ShoppingCart" serializeAs="Binary"
allowAnonymous="true" />
</properties>
</profile>
</system.web>
:I guess maybe the problem is that my class "ShoppingCart" was named the SAME
as my aspx page, "ShoppingCart.aspx"...

Does this make any sense to you?

:)

"VB Programmer" <dont@.emailme.com> wrote in message
news:e8ordJYLGHA.1312@.TK2MSFTNGP09.phx.gbl...
> My 2.0 webapp works great.
> I added a profile section and all of a sudden I get a slew of "Could not
> find schema information for the element..." errors/messages.
> Any ideas why? Here's part of my web.config...
> :
> <customErrors mode="Off" defaultRedirect="GenericErrorPage.htm">
> <error statusCode="403" redirect="NoAccess.htm" />
> <error statusCode="404" redirect="FileNotFound.htm" />
> </customErrors>
> <profile>
> <properties>
> <add name="Cart" type="ShoppingCart" serializeAs="Binary"
> allowAnonymous="true" />
> </properties>
> </profile>
> </system.web>
> :

0 comments:

Post a Comment