I am stuck. I am trying to deploy an MVC3 web application with DBFirst (if that makes any difference) to a shared hosting server.
I have gone through the configuration steps as per the instructions here:
http://msdn.microsoft.com/en-us/library/dd465337(v=vs.100).aspx
When I try and publish the thing and validate the connection I get this error:
'Could not load file or assembly 'Microsoft.Web.Deployment, Version 9.0.0.0, Culture=neutral, PublicTokenKey=31bf385ud364e35' or one of its dependencies. The system cannot find the file specified.'
The web hosting company says that it is a problem with my Web.Config file.
Any ideas? This is the first time I have ever done this so please excuse my ignorance.
In my case, I installed the Web Deploy 3.5 package on my dev station.
http://www.iis.net/downloads/microsoft/web-deploy
I restarted visual studio 2010, reloaded the project, hit publish, tried the "Validate Connection" button again and I got rid of the missing assembly error.
Related
At my company, we have received Team Foundation Server 2013 and Visual Studio 2013 to manage our code and deployment.
I'm trying to make it work but I can't figure out what I miss.
So here is the scenario :
I have a Web Application with no DB for the moment.
It's added to TFS and I have checked in everything.
There is a Build Controller on TFS.
On the Web Server, Web Deploy is installed and Management Services is there and allow remote management. The services are running. I have create a website but the folder with the source is empty for now.
My objective is to build on TFS and deploy from there in one single operation with the build definition.
Here is my problem, the build is working fine and everything is put in the drop folder. But it deploy nothing on the webserver and It raised no error on the build.
I tryied two techniques for the MSBuild arguments:
1) I create a publish profile in VS, when I publish from there it works but with this argument it does nothing:
/p:DeployOnBuild=true;PublishProfile=PublishIGU
2) I use this argument :
/p:DeployOnBuild=True /p:DeployTarget=MsDeployPublish
/p:MSDeployServiceURL=https://{serverWeb}:8172/msdeploy.axd
/p:DeployIISAppPath=IGUDEV /p:MsDeployPublishMethod=WMSVC
/p:AllowUntrustedCertificate=True /p:UserName=DOMAIN\user
/p:Password=XXXXX
And... it still does nothing.
I read a lot on the internet and follow tutorials but I can't figure this out.
Like I don't have any error message I don't know where to start.
Thank you if you see something that could help me.
I have a web app that I'm managing using TFS. I have published the app to both a QA and PROD server with no problems.
However, I recently had an issue when trying to load the project on a new machine from TFS because it was missing all the NuGet packages. I went online and read about the Package Restore feature in 2010. I enabled that on the project and checked the project in and that fixed my issues.
However, now, whenever I publish to my QA and PROD servers, the site loads and I can hit simple "Index" type pages but anytime I try to load an edit type page (page with a form on it), I get an error:
System.IO.FileNotFoundException: Could no load file or assembly 'System.Web.WebPages, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' ...
It doesn't appear that anything has changed in my Web.config file.
What happened? What do I need to do to get my sites back up and running?
Thanks for your help!
Thanks to Phil Haack, I found this article and it solved my issues. Basically had to check the box to deploy MVC assemblies.
When I open a particular mvc 3 website project in VS 2010 I get the following message:
The Web Project "X" requires missing web components to run with Visual Studio. Would you like to download and install them using the Web Platform Installer now?
ASP.NET Web pages with Razor syntax.
When I click yes
The web platform installer shows with the message that "0" items need to be installed.
My other mvc 3 projects do not show this behavior
Not a major inconvenience, but still...
thoughts any one?
I got the same error after reinstalling my computer.
I came to this conclusion, VS needs IISExpress to load my additional project. The addition projects has a webservice and it can run locally. Even if my endpoints points to a local address it still needs the IISExpress (standard IIS 7.5 does not respond the endpoint request) to open from VS (im running VS2010).
So after installing IISExpress i could reload my project in VS.
C.,
That shouldn't happen, and it would be interesting to figure out why. In the meantime, you should be able to turn this off by unchecking the "Package Restore" checkbox in Visual Studio's Options dialog. (Select "Package Manager" in the tree view to find it.)
If it's happening only for specific projects, you can solve this more surgically by removing the packages.config file for the affected project. In fact, if you want to do root cause analysis, you should look into why that file exists and how it got there.
HTH,
Clay
I've recently mapped a sharepoint solution from TFS to a local directory and successfully 'got' the latest version.
It wasn't building, but this was because of there were no Site URL's in the properties of the several projects included in the solution. So, using central admin, I created a new web app (the port 36352). U then added the url and port to the Site Url and it's now building fine.
However, when I go to run with the debugger I get the following two errors:
Error 2 Error occurred in deployment step 'Recycle IIS Application Pool': Cannot connect to the SharePoint site: :36352/">http://:36352/ (deleted url for security reasons). Make sure that this is a valid URL and the SharePoint site is running on the local computer. If you moved this project to a new computer or if the URL of the SharePoint site has changed since you created the project, update the Site URL property of the project.
AND
Error 3 Program 'Path.PowerShell.exe' (deleted path for security reasons) does not contain a static 'Main' method suitable for an entry point
It seems that the first error is related to the way in which I've 'connected' it to the new web app I've created - have I done this part right?
The 2nd error seems to be with regard to the entry point at which the debugger should execute, but this is a sharepoint site - so I just want to run the site (has VS not identified this as sharepoint somehow?).
Thanks a LOT for any help.
I got this exception when I had the solution on a different server. Make sure your solution is on the same server as the SharePoint web application. When you run the solution, Visual studio packages the solution and tries to deploy it onto the URL you specified in the properties. If your project is a farm solutions such as visual web part then make sure you have rights to deploy.
I just checked out an ASP.NET MVC 3 web project using TortoiseSVN. I opened it in vs2010 and successfully built it. But when I try to run the project, vs2010 gives me an error with the following message "Unable to connect to the ASP.NET Development Server". When I open the development server dialog via icon in notification area and try to browse through the link in this dialog a web page opens with "HTTP Error 403 - Forbidden".
This looks quite odd, as when I create a new MVC project in the same solution and try to run it, it runs normally. This problem occurs only with the aforementioned project.
Please share any ideas.
This worked for me:
Open web.config
Remove everything in the <system.web> section
Run the project (it should work now)
Undo your web.config changes and you should be good to go.
Try to change assigned port in project properties-> Web-> set specific port instead of auto assign.