1
Good morning,
I was having an error publishing the Runtime error site,
I created a blank ASPX page and added the tag to the web.config
<customErrors mode="On" defaultRedirect="~/internalerror.aspx" ></customErrors>
But return to me
Runtime Error Description: An Exception occurred while Processing your request. Additionally, Another Exception occurred while executing the custom error page for the first Exception. The request has been terminated.
What you need to display the error generated?
See if you can better identify the error by looking at the application events in Eventviewer.
– Bruno Warmling
So, this error generates direct by the server to which it is hosted, has how to see anyway? In the test environment (IIS Express local) does not generate error...
– Junior Dias
Yes, you can simulate the error and check directly on the hosted server.
– Bruno Warmling
Ta, how do I do it.
– Junior Dias
Simulate the error in your application, the moment the problem occurs, go to the server where it is hosted, open the windows event viewer -> Windows Logs -> Application. Look in the list on the right, if there is an error event regarding your site.
– Bruno Warmling
Ask me a question, I was developing in structure 4.6.1 but the server was up to 4.5.2, I downgrade everything right, but some libraries downloaded by Nuget appear the message that were compiled in 4.6.1, would that be the problem? because in IIS Express it shows no error (I simulated an error to see if it would fall on the error page and dropped normally)
– Junior Dias
Could be... try to publish the site with the option "Precompile During Publishing" to see if there is no error.
– Bruno Warmling
This was the error: The domain of the application the thread was running on
– Junior Dias
La in your "customErrors" tries to add this tag: redirectMode="Responseredirect". And do a test again.
– Bruno Warmling
Displayed the same error Description: An Exception occurred while Processing your request. Additionally, Another Exception occurred while executing the custom error page for the first Exception. The request has been terminated.
– Junior Dias
Is your error page completely blank? or tries some Response.Redirect type call inside it?
– Bruno Warmling
In Index.aspx and neither does Response.Redirect, the only redirect is by Authentication that redirects to login
– Junior Dias
If I remove customErros, it is returned Details: To enable the Details of this specific error message to be viewable on remote machines, Please create a <customErrors> tag Within a "web.config" Configuration file Located in the root directory of the Current web application. This <customErrors> tag should then have its "mode" attribute set to "Off".
– Junior Dias
Take the customErrors and open the site inside the server it is hosted, there you should be able to see the error.
– Bruno Warmling
what returns is this Details: To enable the Details of this specific error message to be viewable on remote machines, Please create a <customErrors> tag Within a "web.config" Configuration file Located in the root directory of the Current web application. This <customErrors> tag should then have its "mode" attribute set to "Off". and just, an example of how to implement custonError
– Junior Dias
No, this appears because you are accessing the site of another machine from where the site is hosted... Do this inside the server.
– Bruno Warmling
I changed the custombugs to mode="off" the return was this System.Security.Securityexception: Request failed. An untreated exception was generated during the execution of the current web request. Information about the source and location of the exception can be identified using the Exception Stack Tracking below.
– Junior Dias
Now we have another scenario... Has your site ever worked published? Or it never worked and you were trying to put the customErrors to identify the problem?
– Bruno Warmling
I published it today, first time
– Junior Dias
Would it be structure incompatibility problem? use Nuget 4.6.1 packages and the server be 4.5.2?
– Junior Dias
I suggest you close this topic and open one by relating your question to System.Security.Securityexception... Do a brief search, this problem is unrelated to target framework.
– Bruno Warmling
How do you close?
– Junior Dias
Good question kkk
– Bruno Warmling
https://answall.com/questions/423967/erro-asp-net-securityexception-request-failed I created
– Junior Dias