请求的JSON解析在jquery ajax中失败(Requested JSON parse failed in jquery ajax)
我在客户端使用我的abc.html代码,在另一个域的服务器端使用pqr.java servlet。但是当我尝试使用数据类型jsonp进行jquery ajax调用时,我得到错误“请求的JSON解析失败”,即使我的服务器cosol显示正确的输出。请帮忙,急。谢谢
I'm having my abc.html code at client side and pqr.java servlet at the server end on another domain.But when i try for the jquery ajax call using datatype jsonp i get the error "Requested JSON parse failed" even though my server cosol displays the correct output.Please help,urgent.Thanks in advance
原文:https://stackoverflow.com/questions/19175182
更新时间:2022-04-05 18:04
最满意答案
在这条线上
“
frameworks": { "netcoreapp1.1.0": { "imports": [ "dotnet5.6", "portable-net45+win8" ] } },
我需要改变
"frameworks": { "netcoreapp1.1": { "imports": [ "dotnet5.6", "portable-net45+win8" ] } },
on this line
"
frameworks": { "netcoreapp1.1.0": { "imports": [ "dotnet5.6", "portable-net45+win8" ] } },
I needed to change to
"frameworks": { "netcoreapp1.1": { "imports": [ "dotnet5.6", "portable-net45+win8" ] } },
相关问答
更多-
发布应用程序时,会复制wwwroot文件夹中的所有文件。 然后,如果您需要在index.html,dbs或图像或..中加载.css,则必须 但在角度上,最好的方法是有一个独特的CSS。 此css是全局定义的组件+ css中的css的并集。 在angular-cli中,我们使用angular-cli.json文件全局添加.css(在样式中) "styles": [ "app/css/bootstrap.css", "../node_modules/font-awesome/cs ...
-
将system.collections添加到核心依赖项,或删除核心框架。 "frameworks" : { "aspnet50" : { }, "aspnetcore50" : { "dependencies": { "System.Collections": "", "System.Console": "4.0.0-beta-22231" } ...
-
我认为WebApi和SPA应该是完全不同的项目。 当你像nginx一样设置你的前端web服务器时,你可以配置它来提供来自ASP.NET web api的所有/ api请求,并通过SPA处理其他请求。 因此,它可以清晰分离您应用程序的不同层次,并允许您将来轻松添加其他后端服务和前端SPA应用程序(如果需要)。 I think WebApi and SPA should be completely different projects. When you setup your frontend webserve ...
-
在这条线上 “ frameworks": { "netcoreapp1.1.0": { "imports": [ "dotnet5.6", "portable-net45+win8" ] } }, 我需要改变 "frameworks": { "netcoreapp1.1": { "imports": [ "dotnet5.6", "portable-net45+win8" ...
-
所有这些现在都在代码中,并且主要记录在asp.net核心github wiki的应用程序洞察中 。 例如,请参阅https://github.com/Microsoft/ApplicationInsights-aspnetcore/wiki/Dependency-Tracking-and-Performance-Counter-Collection 禁用遥测模块服务 要禁用服务,您需要从方法ConfigureServices中的现有服务列表中手动删除模块。 请注意,只有在将Application Insig ...
-
@Adrien让我走上正轨。 我使用Nuget命令行为Newtonsoft.Json安装最新版本。 它已成功安装,我可以在project.json文件中看到对版本的更改。 但是我仍然显示相同的错误。 虽然它已经更新了主文件,但是project.lock.json文件没有同时更新它的引用。 我必须关闭我的项目并在引用更改生效到锁定文件之前重新打开。 @Adrien got me onto the right track. I used the Nuget command line to install the ...
-
查看.Net Core文档中的.NET Core Application Deployment文章 。 由于您的应用程序看起来像是一个便携式应用程序(默认设置),因此您使用dotnet AssName.dll运行它的已发布版本。 Have a look at the .NET Core Application Deployment article in .Net Core documentation. Since it looks like your application is a portable ap ...
-
结果我在appsettings.json中输入了一个拼写错误 我有"ConnectionString"而不是"ConnectionStrings"和's' 这导致我的Value cannot be null. Parameter name: connectionString Value cannot be null. Parameter name: connectionString错误 因此,要解决我的原始问题,请按照Windows 7的这些步骤操作。(10应该没有太大区别): Windows key > ...
-
注意:确保es6-shim.d.ts安装在wwwroot目录中。 如果没有es6-shim.d.ts,则无法编译typescript遍历的许多node_modules文件 我有一个集成angular2(2.1.0)和ASP.NET核心的示例,我认为ng2的包依赖关系也适用于ASP.NET5。 的package.json systemjs.config.js 希望能帮助到你! NB: Make certain that es6-shim.d.ts is installed in the wwwroot dir ...
-
尚未在VS15中提供.NET核心工具。 https://www.visualstudio.com/en-us/news/releasenotes/vs15-relnotes 用于.NET Core可用性的Visual Studio工具 问题: 此版本的Visual Studio中不提供对.NET Core项目的工具支持。 解决方法: Visual Studio“15”的未来更新中将提供支持。 Tooling for .NET core is not available in VS15 yet. https: ...