Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

UltiDev Custom Error Pages?
Jay
#1 Posted : Tuesday, September 21, 2010 8:16:51 AM(UTC)
Groups: Member
Joined: 9/21/2010(UTC)
Posts: 10

Where is the default, or how to make default custom error pages?
Ultidev Team
#2 Posted : Tuesday, September 21, 2010 5:26:28 PM(UTC)
Ultidev Team

Groups: Administration
Joined: 11/3/2005(UTC)
Posts: 2,253

Thanks: 28 times
Was thanked: 60 time(s) in 59 post(s)
Jay,

Since all requests are routed by UltiDev Cassini through ASP.NET, web.config customErrors section should allow interception of virtually every error.

Please let us know if this information was helpful.

Best regards,
UltiDev Team.
Please donate at http://www.ultidev.com/products/Donate.aspx to help us improve our products.
Jay
#3 Posted : Thursday, September 23, 2010 6:55:37 AM(UTC)
Groups: Member
Joined: 9/21/2010(UTC)
Posts: 10

That's what i though too, however i have tried the following code in web.config and machine.config and neither work.

Code:
<customErrors defaultRedirect="error.htm" mode="RemoteOnly" />


Code:
<customErrors defaultRedirect="error.htm" mode="On" />


restarted ultidev and server each time to refresh web.config, still to no avail.
Ultidev Team
#4 Posted : Thursday, September 23, 2010 8:31:39 AM(UTC)
Ultidev Team

Groups: Administration
Joined: 11/3/2005(UTC)
Posts: 2,253

Thanks: 28 times
Was thanked: 60 time(s) in 59 post(s)
Jay,

We'll take a look at it, but before we do that, could you please confirm that you get the desired effect in IIS - just to make sure your application is alright?

Best regards,
UltiDev Team.
Please donate at http://www.ultidev.com/products/Donate.aspx to help us improve our products.
Jay
#5 Posted : Tuesday, October 12, 2010 7:42:32 AM(UTC)
Groups: Member
Joined: 9/21/2010(UTC)
Posts: 10

The app does not use IIS so I cannot test in IIS.
Ultidev Team
#6 Posted : Wednesday, October 13, 2010 6:16:02 AM(UTC)
Ultidev Team

Groups: Administration
Joined: 11/3/2005(UTC)
Posts: 2,253

Thanks: 28 times
Was thanked: 60 time(s) in 59 post(s)
Jay,

We have created a simple ASP.NET 3.5 application with an error page and hosted it in UltiDev Cassini. The application has "Throw Exception" button on the main page and it throws an exception when the button is clicked. The error page is displayed as expected with no problem at all. Please let us know if you could do the same and whether you get a different result. Our customError setting looks like this:
Code:
<customErrors defaultRedirect="~/Error.htm" mode="On" />


Best regards,
UltiDev Team
Please donate at http://www.ultidev.com/products/Donate.aspx to help us improve our products.
Rss Feed  Atom Feed
Users browsing this topic
Guest (2)
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You can vote in polls in this forum.