错误方法错误500 cascadingdropdown [英] Error method error 500 cascadingdropdown

查看:88
本文介绍了错误方法错误500 cascadingdropdown的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨!!



将我的网站迁移到新服务器,但是我在使用CascadingDropDown填充组合时遇到问题,我得到方法错误500,我将我以前的网站与新网站进行了比较,我看到一切都一样,我的webservice类已经有了头文件[System.Web.script.Services.scriptService()],实际上在旧服务器上工作正常但代码相同和相同的web.config,但在新的,可能我需要配置或安装的东西。



操作系统是Windows Server 2008R2,网站是c#.net framework 4.0

有没有人设法解决它?



我有什么试过:



禁用防火墙

查看文件夹中的权限

web服务在url中回答soapui,但是级联控件内部的调用无法解决它

解决方案

500错误意味着你的代码在服务器上运行cras由于某种原因,他说。



没有人能告诉你发布的内容有什么问题。根本没有足够的信息。



查看服务器上的应用程序事件日志,您可能会看到错误以及在代码中查找的位置。

这是解决方案,运行此命令



C:\ Windows \ Mesrosoft.NET \ Framework64 \v4.0.30319 > aspnet_regiis.exe -i



请注意,您需要在管理员模式下使用命令提示符才能正常工作。


Hi!!

Migrate my website to a new server, but I'm having problems filling the combos with CascadingDropDown, I get "Method Error 500", I compared my previous site with the new one, and I see everything the same, my webservice class already has The header [System.Web.script.Services.scriptService ()], in fact in the old server worked fine with the same code and the same web.config, but in the new one, maybe I need to configure or install something.

The operative system is Windows Server 2008R2 and the website is with c# .net framework 4.0

Has anyone managed to solve it?

What I have tried:

Firewall disabled
Review permissions in folders
The webservice answered in url and soapui, but the call inside the cascading control does not resolve it

解决方案

500 errors means your code running on the server crashed for some reason.

There is no way anyone can tell you what's wrong with what you've posted. There's simply not enough information.

Look in the Application event log on the server and you might get hint on what's wrong and where to look in your code.


This was the solution, run this command

C:\Windows\Microsoft.NET\Framework64\v4.0.30319>aspnet_regiis.exe -i

Note that you will need your command prompt in Administrator mode for it to work.


这篇关于错误方法错误500 cascadingdropdown的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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