ASP.NET DLL文件问题 [英] ASP.NET DLL files issue

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

问题描述

我有一个经典的ASP网站,需要添加一个需要能够添加ASP.NET DLL文件的网站功能。我的托管是为ASP.NET启用的。我创建了一个ASP.NET / bin目录,但是以下行<%@ Register Assembly =LouderVoiceCustomControlsNamespace =LouderVoiceCustomControlsTagPrefix =ldv1%>抛出一个500内部服务器错误

解决方案

当错误是500时,这意味着它是一个内部错误,意味着服务内部 - 服务投掷了未被捕获的异常。

查看服务器上的 Windows事件日志,看看出了什么问题。



此外,请尝试:

- 转到IE中的菜单工具/ Internet选项。

- 单击高级选项卡,取消选中显示友好的HTTP错误消息选项,然后单击确定。

- 再次尝试访问您的网页。现在您将看到更有意义的错误消息,它将帮助您解决问题。



其他几种可能性:

可能有一个您托管应用的方式存在问题。可能是多个配置文件?

请确保您已正确托管应用程序。将应用程序发布为网站并设置虚拟目录。



在此处阅读错误500:

HTTP错误500内部服务器错误 [ ^ ]

500内部服务器错误 [ ^ ]



请在此处查看详细信息: Microsoft支持:访问Web时出现错误消息IIS 7.0上承载的站点:HTTP错误500.0 - 内部服务器错误 [ ^ ]

I have a classic ASP website and need to add a site feature that requires the ability to add ASP.NET DLL files. My hosting is enabled for ASP.NET. I created an ASP.NET/bin directory but the following line <%@ Register Assembly="LouderVoiceCustomControls" Namespace="LouderVoiceCustomControls" TagPrefix="ldv1" %> is throwing a 500 Internal Server Erro

解决方案

When the error is 500, that means it''s an internal error, meaning internal to the service - the service threw an exception that was not caught.
Look in the Windows event logs on the server to see what went wrong.

Also, try:
- Go to menu Tools/Internet Options in your IE.
- Click on the Advanced tab, uncheck "Show friendly HTTP error messages" option and click Ok.
- Try accessing your web page again. Now you will see much more meaningful error message which will help you to troubleshoot the problem.

Other few possibilities:
There might be an issue in the way you have hosted your app. May be multiple config files?
Do make sure, you have hosted your application correctly. Published the application as website and setting up the virtual directory.

Read about Error 500 here:
HTTP Error 500 Internal server error[^]
500 Internal Server Error[^]

See details here: Microsoft Support: Error message when you visit a Web site that is hosted on IIS 7.0: "HTTP Error 500.0 – Internal Server Error"[^]


这篇关于ASP.NET DLL文件问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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