Error after installing TFS 2012 - Update 2 - tfs

I have one TFS 2012 environment with Update 1 and today I updated this environment to Update 2, the installation is completed with sucess, but my portal web access is not working and is returning the bellow error
Could not load file or assembly 'System.Web.WebPages.Deployment, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.
Before the update, my environment was running smoothly but now after the installationd Updete 2 is not working
This error is about ASP NET MVC, all right?
Can you help me?

I did not installed update 2 yet myself but did you check your administration console? And check also your event viewer, maybe you'll find interesting information/errors there that can help you out.

I've installed update 2 but haven't encountered the issue you have. I did have some issues and ended up turning off the application pools for the Portal and disabling TFS on the server by using the TFSServiceControl quiesce command before installing the update.
One thing I have noticed is that TFS Update 2 installs a .Net 4.0 version of 'System.Web.WebPages.Deployment' into the GAC an the location:
C:\Windows\Microsoft.NET\assembly\GAC_MSIL\System.Web.WebPages.Deployment\v4.0_2.0.0.0__31bf3856ad364e35
Assuming you are running x64 there is a .Net 2.0 version of this assembly in
C:\Program Files (x86)\Microsoft ASP.NET\ASP.NET Web Pages\v2.0\Assemblies
Alternatively for x32 it should be in
C:\Program Files\Microsoft ASP.NET\ASP.NET Web Pages\v2.0\Assemblies
I would suggest copying the .Net 2.0 version of this DLL from this location to the TFS Portal's bin folder and seeing if this resolves the issue.

This looks like a classic hunt and peck from the old days. I have no idea what types of installations this affects, but mine was a 2008 x64. Basically, I went to the web.config of the team (program files, long path, 11.0, web...\bin) and enabled error reporting.
Then I loaded it with IE in localhost addressing to get to the team project. Basically, it's looking for a bunch of .NET 2.0 DLLs. Copy each one it is looking for (find them doing a dir /s off the root, there are a few) to the local bin folder.
Thought these days had passed. Hope this helps someone.

I had exactly the same problem after upgrading TFS2012 RTM to update 4.
I was able to resolve the problem by amending the user of the Application Pool to a TFS Administrator user (it was set as Network Service I think).

Related

IIS Express does not restart in Visual Studio 2019

In general, there is a website(ASP .NET MVC 5) that I run in Visual Studio.
The first time everything starts clearly, and if you restart the debug session, then the second time it does not start. If you look at the tray, then IIS Express is absent there.
Only restarting Visual Studio solves the problem, but again, only 1 time and you have to restart the studio each time.
What could be the problem?
This happened exactly to me when I upgrade a solution from VS 2010 to VS 2017.
I searched for solutions and only found: remove the .vs directory from the solution, remove the IIS Express directory from the documents or reinstall VS.
The problem was that the solution has multiple web projects that can run. And in one of them, in the .csproj, there was this configuration:
<UseIISExpress>false</UseIISExpress>
<UseIIS>False</UseIIS>
When I set it to true, the problem was gone.
Regards.

IIS Express will not start when running copy of project on different computer

I have created a brand new ASP.NET MVC 5 project in VS2015 Enterprise (update 3). It runs as expected on that machine. However, when I copy/paste the whole project to a different machine running VS2015 community edition (update 3), the site fails to load and I get the error message:
The program '[1648] iisexpress.exe has exited with code 0 (0x0).
Here's the kicker - Creating a new ASP.NET MVC 5 project in VS community edition and copy/pasting and running it in VS2015 enterprise in the same way, however, works normally without any configuration changes. I have recreated the files in the users\documents\IISExpress folder as pointed out by other SO questions, tried changing ports, but to no avail.
EDIT: IIS immediately fails on launching, by the way. It sounds like a config issue, but I'm not sure what to check in this case.
I got the same issue, what i did is just close all the visual studio instances and in your project folder clear the .vs file(mostly it's Hidden). after that open your project.

ASP Cannot read configuration file in vmware shared folder

I have problem in my development machine. I've put the development inside vmware with all my project files in the vmware shared folder but when I try to run my asp mvc project, it results in the error:
"Cannot read configuration file" and "Config file:
\?\Z:\Work\Shared\Dev2\workspace\projects\Test\WebApplication1\WebApplication1\web.config".
I've read many blogs that recommend changing the file permission, but nothing works. Can anyone help?
I use Windows 7, Visual Studio 2013 and IIS express to run the project.
Thanks in advance,
Reynaldi

Upgrade to nopcommerce 3.20 seems to break Plugin Configuration Views

We deployed an e-commerce site based on nopcommerce 3.10 and have developed a couple of plugins for the particular case. Everything was working properly.
Once version 3.20 was out, we downloaded the full source version, added our plugins and re-compiled the site making any required changes for the plugins as well.
It worked perfectly fine on the development environment (as is usualy the case ) but once we deployed it to the production server there were errors when trying to configure the plugins. Not just ours, almost all plugins.
The error was
Error executing child request for handler
'System.Web.Mvc.HttpHandlerUtil+ServerExecuteHttpHandlerAsyncWrapper'.
System.Web.HttpException (0x80004005): Error executing child request
for handler
'System.Web.Mvc.HttpHandlerUtil+ServerExecuteHttpHandlerAsyncWrapper'.
---> System.InvalidOperationException: The view 'Nop.Plugin.Shipping.CSTM.Views.ShippingCSTM.Configure' or its master
was not found or no view engine supports the searched locations.
This was not an issue of the views not being marked as embedded resource, because they were, and worked perfectly with version 3.10.
We even downloaded Visual Studio 2013 and re-compiled the project from a fresh code download while making sure that all the libraries (e.g. Razor, MVC) were in the correct version etc, but we had no luck.
Any ideas on what might the problem?
The Production server is on a shared hosting provider.
We have exactly the same issue as you, just to add information if you deploy debug not release you can't access the admin panel (404 - Page not found).
We where able to build nopCommerce 3.20 from source with VS 2013 and manually copy the content from Presentation\Nop.Web folder to our testing server and it works fine. But the Nop.Web folder contains csproj, cs and other unnecessary files.
(sorry i cannot add a comment because i don't have 50 reputation so i posted an answer)

How best to install MVC 3 on a server?

Now that MVC 3 Tools Update has been released, that's all I see on the Web Platform Installer -- I no longer see MVC 3? Is this because the Tools Update is essentially MVC 3 PLUS enhancements to the development environment? Presumably, none of these additions are needed on a server so I thought that MVC 3 would still be offered for server installs.
So can/should I install the MVC 3 "Tools Update" from the Web Platform installer on a server?
I know this doesn't help you Decker, but it may help others:
The easiest way to get MVC on the server is by using the "Add Deployable Dependancies..." menu:
Also useful for deploying SQL CE.
You can use the installer from WebPI on the server just fine. It will detect if you don't have Visual Studio installed and will only install the runtime.
You could also try unzipping the installer file and only copying the runtime MSIs but I think that's overkill.
You could also use Web Platform Installer from the command line:
webpicmd /install /Products:MVC3Runtime /log:webpi.log /accepteula /SuppressReboot
If your servers don't have internet access, you can use the offline flag from a machine which does have access to download a copy of the required install files.
So your flow would be as follows:
Prepare Cached Version of Installers
webpicmd /Offline /Products:MVC3Runtime /log:webpi.log /Path:"%~dp0wbpiCache"
Install from cache (copy folder structure to target machine)
webpicmd /install /Products:MVC3Runtime /log:webpi.log /accepteula /SuppressReboot /XML:"%~dp0wbpiCache"
You don't need to install MVC3 on a server.
Just copy the MVC DLLs along with your projects.

Resources