Community forum

Please note that VisualCron support is not actively monitoring this community forum. Please use our contact page for contacting the VisualCron support directly.


Maverick
2014-02-21T20:34:41Z
I've found a similar issue from 3 years back, but it was complicated by the web server not actually redirecting, but forwarding the request. It wasn't solved from what I understood. My problem is more straightforward: HTTP task hits a page, the server returns 302. I assume it goes to get the new page and fails with "401 - Unauthorized: Access is denied due to invalid credentials". I'm using IIS 7 with windows authentication on the backend. AllowAutoRedirect is checked.
Sponsor
Forum information
Support
2014-02-24T11:09:06Z
How do you redirect exactly?
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Maverick
2014-02-24T15:13:53Z
Originally Posted by: Support 

How do you redirect exactly?



The web application returns an HTTP 302 response.
Support
2014-02-24T15:18:19Z
Originally Posted by: Maverick 

Originally Posted by: Support 

How do you redirect exactly?



The web application returns an HTTP 302 response.



What code do you use for this exactly?
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Maverick
2014-02-24T15:35:25Z
Originally Posted by: Support 

Originally Posted by: Maverick 

Originally Posted by: Support 

How do you redirect exactly?



The web application returns an HTTP 302 response.



What code do you use for this exactly?



It's an MVC4 application and the code in the Controller looks roughly like this:


public ActionResult ActionA()
{
// Do some work
return RedirectToAction("ActionB");
}

public ActionResult ActionB()
{
return View(ModelB);
}

The HTTP task executes a GET on http://myapplication/ActionA

It does work without redirect.
Maverick
2014-03-10T13:14:23Z
Originally Posted by: Maverick 

Originally Posted by: Support 

Originally Posted by: Maverick 

Originally Posted by: Support 

How do you redirect exactly?



The web application returns an HTTP 302 response.



What code do you use for this exactly?



It's an MVC4 application and the code in the Controller looks roughly like this:


public ActionResult ActionA()
{
// Do some work
return RedirectToAction("ActionB");
}

public ActionResult ActionB()
{
return View(ModelB);
}

The HTTP task executes a GET on http://myapplication/ActionA

It does work without redirect.



Any progress on this?
Support
2014-03-10T13:16:09Z
I see know that we lack information. We need to know the exact code for redirecting so we can reproduce this in IIS.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Maverick
2014-03-10T13:19:07Z
Originally Posted by: Support 

I see know that we lack information. We need to know the exact code for redirecting so we can reproduce this in IIS.



Didn't I give you the code in my previous post?
Support
2014-03-10T13:22:32Z
Just to be sure, we want to see the exact code that does the redirect. Your methods was on a higher level.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Maverick
2014-03-10T13:34:07Z
Originally Posted by: Support 

Just to be sure, we want to see the exact code that does the redirect. Your methods was on a higher level.



Would it help if I sent you a test project?
Support
2014-03-10T13:36:05Z
Yes, if you can tell us exactly where the redirect is in the project. Please send it to support@visualcron.com
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
MikeyP
2014-03-20T13:23:31Z
Originally Posted by: Support 

Yes, if you can tell us exactly where the redirect is in the project. Please send it to support@visualcron.com



I am seeing a similar issue. Please post what the resolution/findings are.
Maverick
2014-03-21T14:30:00Z
Support
2014-03-27T09:17:31Z
Hi, I see now that we have not received this test project. Please also send it to visualcron@gmail.com
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Maverick
Support
2014-03-31T14:37:15Z
No trace of your email on our email server logs. I think it is stopped by your email server when sending. Please try using external email.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Maverick
2014-03-31T15:48:33Z
OK, I resent it to your gmail account from my personal gmail account.
Support
2014-03-31T19:53:59Z
Got it, we will test tomorrow and get back to you.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Support
2014-04-01T07:53:37Z
There is some kind of permission issue with your site. I had to enable windows authentication to make it work in my browser. Same with VisualCron - I had to use a Credential to make it work.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Maverick
2014-04-01T13:34:18Z
It's not an issue. The web site is using windows authentication.
Support
2014-04-01T13:38:32Z
Right, but the site to us sent to us work - if you use NTLM auth and have selected a Credential.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Maverick
2014-04-02T19:29:46Z
Originally Posted by: Support 

Right, but the site to us sent to us work - if you use NTLM auth and have selected a Credential.



Which URL are you hitting from HTTP task in VisualCron?
Support
2014-04-02T19:45:02Z
Right now we tested: http://localhost:40347/TestRedirect

I suggest testing with latest beta 7.1.5. and select NTLM authentication.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Maverick
2014-04-02T20:07:23Z
Originally Posted by: Support 

Right now we tested: http://localhost:40347/TestRedirect

I suggest testing with latest beta 7.1.5. and select NTLM authentication.



Can you install the test application on a separate server, not where VisualCron service is running? I think this is what makes the difference.
Support
2014-04-03T06:38:41Z
Here is what I did in a new test;

1. I copied your code to a new web application on IIS 8 on Windows 2012 machine
2. I enabled Windows authentication in IIS
3. I created a new Credential, a Windows user on the remote machine
4. I configured VisualCron to use NTLM (again with the latest version) and selected the new Credential
5. I ran the Task and I got the redirect message in output and no errors

I can make it fail if I do any of the following:

1. select no Credential
2. select the wrong Credential
3. user other authentication than NTLM (if that not matches the authentication on the web application).

Here is a video:

http://screencast.com/t/mYwNZsKkESF 
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Scroll to Top