microsoft.practices.enterpriselibrary.exceptionhandling.dll中出现“microsoft.practices.servicelocation.activationexception”类型的例外,但未在用户代码中处理 [英] An exception of type 'microsoft.practices.servicelocation.activationexception' occurred in microsoft.practices.enterpriselibrary.exceptionhandling.dll but was not handled in user code

查看:148
本文介绍了microsoft.practices.enterpriselibrary.exceptionhandling.dll中出现“microsoft.practices.servicelocation.activationexception”类型的例外,但未在用户代码中处理的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用EnterpriseLibrary for ExceptionHandling ASP.Net Web Application Project中的错误。为此,我收到如上所述的错误。我以为dll文件丢失但是已经安装了。



我尝试了什么:



我卸载了dll文件,并且reagian在同一个项目中安装了dll文件但得到了同样的错误。任何人都可以帮助我摆脱这个问题。

I am using EnterpriseLibrary for ExceptionHandling the errors in ASP.Net Web Application Project. For this I am getting this error as mentioned above. I thought the dll file is missing but it is installed.

What I have tried:

I uninstalled the dll file and reagian installed the dll file in the same project but getting the same error. Can anyone help me out of this issue.

推荐答案

它没有说DLL有问题它说有一个问题出现在DLL中调用它的代码不处理 - 这通常是因为你的代码在调用它时做错了。使用调试器找出错误发生的位置,并查看调用堆栈以找出调用代码的位置。

然后在该行上放置一个断点,并添加一个 try ... catch 阻止它,以便您可以查看异常本身。运行你的代码,当它到达断点时,看看你正在使用代码做什么,以及你传递了什么参数。然后步行,您应该能够查看异常内容以找出您拥有的异常消息,这应该可以帮助您确定问题究竟是什么。



很抱歉,但我们不能为你做任何事情!
It's not saying "the DLL has a problem" it's saying "there is a problem which shows up in the DLL which the code that calls it isn't dealing with" - and that's normally because your code has done something wrong when it called it. Use the debugger to find out where the error is occuring and look at the call stack to find out where in your code it is called from.
Then put a breakpoint on that line, and add a try...catch block round it so you can look at the exception itself. Run your code, and when it hits the breakpoint look at exactly what you are doing with the code, and what parameters you pass it. Then step the line, and you should be able to look at the exception content to find out what exception messages you have, and that should help you work out what exactly the problem is.

Sorry, but we can't do any of that for you!


我发现问题只是我写错了名字的一件事。后来我更改了名称,最后它按预期工作。非常感谢
I found the problem that is only one thing I have written the name wrongly. Later on I have changed the name and finally it is working as expected. Thanks a lot


这篇关于microsoft.practices.enterpriselibrary.exceptionhandling.dll中出现“microsoft.practices.servicelocation.activationexception”类型的例外,但未在用户代码中处理的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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