关于网站国际化的问题
最近小弟在研究一个关于网站国际化的问题,我用到了asp.net2.0万的国际化特性:
在这段代码处出现了如下的错误
string UserCulture = Profile.GetPropertyValue( "PreferredCulture ").ToString();
我用的是asp.net2.0内置的ASPNETDB.MDF库来存储数据信息,但是在运行时发现如下问题:
Failed to generate a user instance of SQL Server due to a failure in starting the process for the user instance. The connection will be closed.
原来在一台计算机上实现了,但是移植到另一台计算机时出现了问题。
------解决方案--------------------将web.config文件中的这个节点
<add name= "AspNetSqlProvider " connectionString= "Data Source=.\SQLEXPRESS;AttachDbFilename=E:\website\yyss\App_Data\ASPNETDB.MDF;Integrated Security=True;User Instance=true " /> 中的Instance属性值改为false