问题描述
我刚刚编写了一个MVC应用程序,并使其在实验室中可以正常工作。现在,将其部署到GoDaddy上,出现以下错误。
I have just written an MVC application and got it working in my lab. Now that I've deployed it to GoDaddy, I am getting the following error.
异常详细信息:System.Security.SecurityException:请求失败。
Exception Details: System.Security.SecurityException: Request failed.
源错误:生成了未处理的异常在执行当前Web请求期间。可以使用下面的异常堆栈跟踪来标识有关异常的来源和位置的信息。
Source Error: An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
堆栈跟踪:
我想知道我的数据库连接字符串,尽管错误似乎没有建议数据库有任何问题。
I wondered about my database connection string, although the error doesn't seem to suggest any issue with the database.
所以我真正的问题是:如何解决此问题。这些消息似乎根本没有帮助。下一步可能是什么?
So my real question is: How does one go about troubleshooting this. The messages don't really seem to help at all. What could be a next step?
推荐答案
这似乎是我所使用的.NET版本之间不匹配的问题
This appears to be an issue with a mismatch between the version of .NET I'm using to build my app and the one provided on the host.
感谢Microsoft提供的另一条错误消息,该错误消息似乎对根本问题一无所知。
Thank you Microsoft for another error message that seems to tell me nothing about what the underlying issue is.
这篇关于部署时抛出SecurityException的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!