Click here to Skip to main content
15,896,912 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I am developing an application that will check the status of a website using response codes.

I am having an issue when returning the 404 not found code. Instead of my application writing the response out to a file like it should, I get a page error and DotNetNuke logs it to the event viewer. How do I turn this off so that my application continues to write to my file??

InnerException: The remote server returned an error: (404) Not Found.

FileName: 

FileLineNumber: 0

FileColumnNumber: 0

Method: System.Net.HttpWebRequest.GetResponse

StackTrace: 

Message: DotNetNuke.Services.Exceptions.PageLoadException: The remote server returned an error: (404) Not Found. --->
Posted
Updated 20-Jul-15 4:32am
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900