提交时,umbraco中的点击问题 [英] On submit click getting issue in umbraco

查看:101
本文介绍了提交时,umbraco中的点击问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个提交单击按钮,针对特定产品或事物的评论被提交,但是单击后,我无法提交该commnet并面临问题,如下图所示

I have one submit click on which the comment get submitted for particular product or thing but on clicking that I am not able to submit that commnet and facing issue as seen in below images

另一件事是,此事在我的本地主机中正常运行,但是当我将其上传到Beta/staging/Live服务器上时,却遇到了这个问题. 我也尝试删除umbraco.config文件和日志文件,但仍然面临相同的问题

Another thing is that this things are working properly in my local host but when I upload it on my beta/staging/Live server I am facing this issue. I have also tried deleting umbraco.config file and log file but still facing same issue

在日志文件上,我也可以看到此问题

Also on log file I can see the issue as

我有一个问题,我认为两个问题相互关联 Umbraco在保存和发布时显示错误

I have one issue for what i assume both issue are interlink to each other Umbraco on save and publishing showing error

我的控制器代码

using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Web;
using System.Net;
using System.Net.Http;
using System.Text.RegularExpressions;
using System.Web.Mvc;
using Newtonsoft.Json.Linq;
using umbraco;
using Umbraco.Core.Logging;
using Umbraco.Core.Models;
using Umbraco.Web.WebApi;
using xyz.Controls;
using System.Data.SqlClient;
using System.Net.Mail;

namespace xyz.Controllers
{
  public class CommentsController : UmbracoApiController
  {


  }
}

推荐答案

进入SQL Server的Machine.Config并将语法更新为

The issue was resolved while going in to Machine.Config of sql server and updating the syntax as

<connectionStrings>
<remove name="LocalMySqlServer"/>
<add name="LocalMySqlServer" connectionString="Datasource=localhost;Database=users;uid=root;pwd=password;"
   providerName="MySql.Data.MySqlClient"/>
</connectionStrings>

这篇关于提交时,umbraco中的点击问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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