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

Notification

Icon
Error

Application_Start Exception
ThomasSch
#1 Posted : Monday, March 27, 2017 7:49:01 AM(UTC)
Groups: Member
Joined: 3/27/2017(UTC)
Posts: 6

Hello,

I have a MVC Application.
In Application_Start method, I get an exception, but the programm doesn't stop.
When I publish my application on a IIS, then the application ends after the exception in Application_Error method.
How can I do the same with Ultidev

Best regards
Thomas
Ultidev Team
#2 Posted : Monday, March 27, 2017 9:01:50 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)
Hi, Thomas.

Could you please provide more details on differences between application behavior under IIS and UWS? For example, do you get different application even sequence? Also, what do you mean by "application ends": does it mean IIS stops accepting connections, or are http response codes are different between IIS and UWS?

Best regards,
UltiDev Team.
Please donate at http://www.ultidev.com/products/Donate.aspx to help us improve our products.
ThomasSch
#3 Posted : Tuesday, March 28, 2017 4:39:31 AM(UTC)
Groups: Member
Joined: 3/27/2017(UTC)
Posts: 6

Hi,

I made an example. (Visual Studio Project and published project)
Please publish the project with UltiDev and with IIS. (Local system, 32 bit)
Then you see the different

Best regards
Thomas
File Attachment(s):
TestProject.zip (3,056kb) downloaded 160 time(s).
ThomasSch
#4 Posted : Tuesday, March 28, 2017 4:45:41 AM(UTC)
Groups: Member
Joined: 3/27/2017(UTC)
Posts: 6

Here is the Visual Studio Project


Thomas
File Attachment(s):
VisualStudio Project.zip (1,437kb) downloaded 158 time(s).
ThomasSch
#5 Posted : Thursday, March 30, 2017 1:29:48 AM(UTC)
Groups: Member
Joined: 3/27/2017(UTC)
Posts: 6

Hello,

When you publish with IIS, then you get an error message from "Application_Start"
When you publish with UltiDev, then you get an error message from "Account Controller"
The application stops at different functions!

Can you reproduce the problem?

Best regards
Thomas
Ultidev Team
#6 Posted : Thursday, March 30, 2017 8:58:44 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)
Thomas,

Generally we do not debug customers' applications unless there is a compelling reason to believe that the failure is caused by a bug in UWS. So before we try to debug, we need to ask you to please provide exact error information and also clarify what you mean when you say applications stops. Please attach screenshots (always very helpful) or copy & paste error message(s).

Regards,
UltiDev Team.
Please donate at http://www.ultidev.com/products/Donate.aspx to help us improve our products.
ThomasSch
#7 Posted : Friday, March 31, 2017 3:56:12 AM(UTC)
Groups: Member
Joined: 3/27/2017(UTC)
Posts: 6

Hello,

I try to explain:
I have an exeption in Global.asax (see "GlobalAsax.png")
When I publish with IIS, then I always see this eception, when I start the application. The application don't run to the "Account" Conroller

The next exception is thrown in Account Controller (see AccountController.png)
With IIS, this exeption is not coming, because of the error in Global.Asax.
But when I publish with UltiDev, then I get the error in AccountController.
This means "stop". With IIS, the AccountController is not executed, because of the previous error.
With UltiDev the AccountController is executed, although there was a previous error.

In WebConfig I set authentication mode with loginUrl to the AccountController! (see WebConfig.png)

Best regards
Thomas
ThomasSch attached the following image(s):
ThomasSch attached the following image(s): WebConfig.png
ThomasSch attached the following image(s): AccountController.png
ThomasSch attached the following image(s): GlobalAsax.png
ThomasSch
#8 Posted : Thursday, April 20, 2017 1:53:04 AM(UTC)
Groups: Member
Joined: 3/27/2017(UTC)
Posts: 6

Hi,

do you have an idea?

Best regards,
Thomas
Rss Feed  Atom Feed
Users browsing this topic
Guest
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.