首先感谢TerryLee,配置完ProfileScriptService后,发现异常
The server method 'SetProfile' failed with the following error:property cannot be set for anonymous users.System.Configuration.Provider.ProviderException。
google后,找到了解决方法。
1.在system.web节点加入<anonymousIdentification enabled="true"/>
2.<add name="FloatingLabelLocation" />改为<add name="FloatingLabelLocation" allowAnonymous="true" />