401: Unauthorized


Badge +1
When I try to browse to my WorkSpace.aspx page I get the "The request failed with HTTP status 401: Unauthorized" error message. I have set the customErrors mode attribute to Off in web.Config but I still don't get the stack trace of the actual error.

I have tried to access the page both on the server (Win2K3 SP1) and from a client (Win2K) with same result.

I am running K2 2003 SP3. The box has .NET Framework 2.0 and SharePoint installed on an IIS 6.0 server. I have tried all the solutions proposed by paisleygo --> http://forum.k2workflow.com/viewtopic.php?p=4760#4760, but none of the steps fixed the problem.

Any help on this would be greatly appreciated!

thanks

Christian

10 replies

Badge +1
Forgot to mention that all the K2 related web apps are runing in the same application pool, which is running under a domain account (K2 Service account). have also checked that all the web applications only alow windows authentication, and not anonymous access.

Christian
Badge +11
Have you installed K2V3 and SPS under different sites using either different IPs or different host headers?

What about .NET Framework 1.1? I assume it's still on the machine.

If you've tried and verified all the steps mentioned by paisleygo, I'm afraid the best advise I could give would be to open a formal support ticket.

Best Regards,
Ockert
Badge +1
icon-quote.gifOckert:
Have you installed K2V3 and SPS under different sites using either different IPs or different host headers?

What about .NET Framework 1.1? I assume it's still on the machine.

If you've tried and verified all the steps mentioned by paisleygo, I'm afraid the best advise I could give would be to open a formal support ticket.

Best Regards,
Ockert


thanks for your response

* K2V3 and SPS are on different sites (different IP addresses)
* .NET 1.1 is on the machine

BTW i'm using K2 with an .NET 2.0 application on this server, and everything works fine. The only problem I have is browsing to the K2 workspace!

Christian
Badge +13
Don't mix 1.1 and 2.0 Framework apps in the same pool.
Create a separate pool for 1.1 apps, and another pool for 2.0.

I'd create a separate pool just for WorkSpace itself.

http://blog.zygonia.net/PermaLink,guid,9c132e5c-b0f5-4854-9ed2-f5a88c240e8a.aspx

Let us know if that addresses your issue.
Badge
Also take a look at the IIS log files in the
%WINDOWS%system32LogFilesW3SVC1 folder.
This might reveal some more clues to help narrow down the cause of the problem.

You should be able to see which type of 401 your seeing and specifically from which URL.
Badge +8
This is also a useful resource on diagnosing HTTP 401 errors:

http://blogs.msdn.com/david.wang/archive/2005/07/14/HOWTO_Diagnose_IIS_401_Access_Denied.aspx
Badge +5
I'm having the 401 Error now... the Weblog has this line:

2006-11-17 02:50:45 W3SVC1 10.20.4.35 GET /K2V3/Workspace/workspace.aspx Retry=Yes&ErrorLine=The+request+failed+with+HTTP+status+401%3a+Unauthorized. 80 TEKELECvtang 10.25.11.84 Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+NT+5.1;+SV1;+.NET+CLR+1.1.4322;+.NET+CLR+2.0.50727) 200 0 0

It looks like a 401.3 error and I've tried everything and can't fix it.

It was working in the past and we had an issue with framework 2.0 so we re-installed it and from what I can tell after that was done it's been erroring. Any other ideas?
Badge +8
What looks like is happening is that the Workspace.aspx is unable to connect to the filterservice.asmx for reporting purposes. Make sure that the following virtual directories are all running under the same Application Pool (K2V3, Workspace, WorkpsaceService).

If that doesn't help check out the following KB for more troubleshooting: http://kb.k2workflow.com/Articles/KB000171.aspx

I hope this helps.
-Eric
Badge +5
Yes, it looks like all the settings are correct. They also have "integrated Security" checked only.

I ran through that KB article. other than fix 11, 12, 13 (Could not find the Web ID) everything looked correct.
Badge +8
Hi Vinny

My next suggestion then would be to enable Kerberos Authentication. The following KB article has some good step-by-step instructions: http://kb.k2workflow.com/Articles/KB000123.aspx

HTH

-Eric

Reply