0

解析器错误

说明:解析服务此请求所需的资源时出错。请查看以下特定的解析错误详细信息并适当地修改您的源文件。

解析器错误消息:未终止的字符串文字。以引号 (") 开头的字符串必须在行尾之前终止。但是,以 @ 和引号 (@") 开头的字符串可以跨越多行。在字符串文字中关闭 HTML 标记可能会触发此错误消息。

下面的代码片段在最后一行给出了上述错误的第三行。有人可以帮帮我吗。这将是很大的帮助。

 objData += $@"annotation: {{
                titleText: ""{ann.titleText}"",
                left: {{
                    type: ""{ann.Left_type}"",
                    text: ""{ann.Left_text}"",
                    updatedAt:""{ann.Left_image_UpdatedAt.ToString().Split(' ')[0]}"",
                    updatedBy:""{ann.Left_image_UpdatedById}"",
                    image: """ + Url.Action("GetFile", "home", new { filename = ann.Left_imageURL }) + $@""",
                    translateDate: ""{ann.Left_trans_UpdatedAt.ToString().Split(' ')[0]}"",
                    translateUser: ""{ann.Left_trans_UpdatedById}"",
                    imagetranslateFileURL:"""+Url.Action("GetFile", "home", new { filename = ann.Left_imagetranslateFileURL })+$@""",
                }},
                right: {{
                    type: ""{ann.Right_type}"",
                    text: ""{ann.Right_text}"",
                    updatedAt:""{ann.Right_image_UpdatedAt.ToString().Split(' ')[0]}"",
                    updatedBy:""{ann.Right_image_UpdatedById}"",
                    image: """ + Url.Action("GetFile", "home", new { filename = ann.Right_imageURL }) + $@""",
                    translateDate: ""{ann.Right_trans_UpdatedAt.ToString().Split(' ')[0]}"",
                    translateUser: ""{ann.Right_trans_UpdatedById}"",
                    imagetranslateFileURL: ""{ Url.Action("GetFile" , "home", new { filename = ann.Right_imagetranslateFileURL })}"" ,
               }} 
    }}";
4

0 回答 0