Web Access Module can only work with TeamFoundationApplication - what's the problem?
-
Sunday, August 19, 2012 10:44 PM
I installed tfs2012 the other day and played around with the web access tool. Now when i try to get to the same app I get an error as described in the title. http://{server}:8080/tfs.
The event log entry has been posted below. The only thing to note is right now I have assigned a domain admin account as the service account for all tfs services. The account details have been replaced with placeholders below.
Event log details:
Event code: 3005
Event message: An unhandled exception has occurred.
Event time: 19/08/2012 23:40:40
Event time (UTC): 19/08/2012 22:40:40
Event ID: e58e4ef658a34c2e839f550ce0df6055
Event sequence: 2
Event occurrence: 1
Event detail code: 0
Application information:
Application domain: /LM/W3SVC/2/ROOT/tfs-1-129898896400920426
Trust level: Full
Application Virtual Path: /tfs
Application Path: C:\Program Files\Microsoft Team Foundation Server 11.0\Application Tier\Web Services\
Machine name: BLSVM-APPREPO
Process information:
Process ID: 3684
Process name: w3wp.exe
Account name: [DOMAIN]\[service account]
Exception information:
Exception type: NotSupportedException
Exception message: Web Access Module can only work with TeamFoundationApplication.
at Microsoft.TeamFoundation.Server.WebAccess.WebAccessModule.Init(HttpApplication context)
at System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers)
at System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context)
at System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context)
at System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext)
Request information:
Request URL: http://localhost:8080/tfs
Request path: /tfs
User host address: ::1
User:
Is authenticated: False
Authentication Type:
Thread account name: [DOMAIN]\[service account]
Thread information:
Thread ID: 6
Thread account name: [DOMAIN]\[service account]
Is impersonating: False
Stack trace: at Microsoft.TeamFoundation.Server.WebAccess.WebAccessModule.Init(HttpApplication context)
at System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers)
at System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context)
at System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context)
at System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext)
Custom event details:Naeem
All Replies
-
Monday, August 20, 2012 9:38 AMModerator
Hi Naeem,
Thanks for your post.
Do you know which detailed operation caused this issue?
Please launch your TFS Admin Console>>Application Tier, in the right panel, click Refresh, everything work fine? If yes, type http://servername:8080/tfs in IE to open the Web Access, still can’t open it correctly?
What’s the Service Account in Application Tier panel?
On Server machine, click Start and select Run… to open the dialog box, and input iisreset.exe and click OK, wait it run completely. Then try to reopen your Web Access again.
John Qiao [MSFT]
MSDN Community Support | Feedback to us
- Edited by John QiaoMicrosoft Contingent Staff, Moderator Monday, August 20, 2012 9:40 AM
-
Monday, August 20, 2012 12:43 PM
Everything looks fine under Application Tier in the admin console.
This error occurs when I attempt to open the Web Access page.
The service account is tha same as the one in the event log entry i posted earlier. Don't really want to share it here for security reasons.
Tried an IIS restart and a server restarttoo, still no luck.
Naeem
-
Monday, August 20, 2012 4:20 PMModerator
Please look at the Global.asax file in your <install-location>\Microsoft Team Foundation Server 11.0\Application Tier\Web Services directory. It should look like this:
<%@ Application Inherits="Microsoft.TeamFoundation.Framework.Server.TeamFoundationApplication" %>
What do you have in yours?
Ed
http://blogs.msdn.com/edhintz
- Marked As Answer by John QiaoMicrosoft Contingent Staff, Moderator Wednesday, August 22, 2012 1:43 AM
-
Monday, August 20, 2012 7:58 PM
I don't have a global.asax in that location. I have the following files:
Naeem
-
Tuesday, August 21, 2012 2:18 AMModerator
Hi Naeem,
Thanks for your reply.
It seems that your Global.asax file disappear in that location. Please try to repair your TFS 2012 Server, then check if can resolve this issue.
John Qiao [MSFT]
MSDN Community Support | Feedback to us
-
Tuesday, August 21, 2012 8:14 AMHow do you suggest I repair it? The installer has no repair option.
Neither is there a repair option when I go to Programs and Features through the control panel.Naeem
-
Tuesday, August 21, 2012 10:14 AMModerator
Hi Naeem,
Sorry for that.
You are right, there’s no the Repair option in Control Panel>>Uninstall program for TFS 2012.
You can try to add the Global.asax file under Web Service directory manually, as Ed said, the content in Global.asax file is:
<%@ Application Inherits="Microsoft.TeamFoundation.Framework.Server.TeamFoundationApplication" %>
John Qiao [MSFT]
MSDN Community Support | Feedback to us
- Edited by John QiaoMicrosoft Contingent Staff, Moderator Tuesday, August 21, 2012 10:15 AM
- Edited by John QiaoMicrosoft Contingent Staff, Moderator Tuesday, August 21, 2012 10:16 AM
- Edited by John QiaoMicrosoft Contingent Staff, Moderator Tuesday, August 21, 2012 10:16 AM
- Marked As Answer by naeem_s Tuesday, August 21, 2012 12:53 PM
-
Tuesday, August 21, 2012 12:53 PM
That's worked. I've just managed to complete my TFS build agent installation.
Thanks for your help guys!
Naeem

