上传时如何修复网站的CART功能? [英] How to fix CART function of the website when uploaded?

查看:80
本文介绍了上传时如何修复网站的CART功能?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

public virtual ShoppingCartExample.Cart SCart {
       get {
           return ((ShoppingCartExample.Cart)(this.GetPropertyValue("SCart"))); // <--- This is the error//
       }
     set {







与SQL Server建立连接时发生与网络相关或特定于实例的错误。服务器未找到或无法访问。验证实例名称是否正确,以及SQL Server是否配置为允许远程连接。 (提供者:SQL网络接口,错误:26 - 查找指定的服务器/实例时出错)













我在smarterasp.net上传了网站,每次我查看购物车时都会遇到问题。有帮助吗?在此先感谢。




A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)






I uploaded the website in smarterasp.net and everytime I viewed my shopping cart this the problem. Any help? Thanks in advance.

推荐答案

该错误与此行没有直接关系。如果您使用google搜索错误( https://www.google.com.tr/search?q=A+network-related+or+instance-specific+error+occurred+while+establishing+a+connection+to+SQL+服务器&安培,即= UTF-8和; OE = UTF-8&安培;水溶液= T&安培; RLS = org.mozilla:EN-US:官方&安培;客户=火狐-A和信道= fflb&安培; gfe_rd = CR安培; EI = gTEUU9SlF8Pb8ge65YDwCw [ ^ ]),您将看到您无法使用o使用您编写的连接字符串连接sql-server db。检查连接字符串,尝试使用该连接字符串中的username / passwd将数据库与SSMS连接,以测试其正确性。
The error is not directly related to this line. If you search the error with google (https://www.google.com.tr/search?q=A+network-related+or+instance-specific+error+occurred+while+establishing+a+connection+to+SQL+Server&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-US:official&client=firefox-a&channel=fflb&gfe_rd=cr&ei=gTEUU9SlF8Pb8ge65YDwCw[^]), you will see that you are unable to connect sql-server db with the connection string that you write. Check your connection string, try to connect the database with SSMS using username/passwd in that connection string to test their correctness.


这篇关于上传时如何修复网站的CART功能?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆