Hi, I have a new set up Windows Server 2012 Essentials with IIS 8 and got trouble to publish anything there.
Firstly I tried WebDeploy over the internet which didn't work out because of the following kind of errors:
3>C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\Web\Microsoft.Web.Publishing.targets(657,3): warning MSB4011: "C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\Web\CollectFiles\Microsoft.Web.Publishing.OnlyFilesToRunTheApp.targets" ca
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\Web\Microsoft.Web.Publishing.targets(2803,46): Error MSB4115: The "exists" function only accepts a scalar value, but its argument "$(PublishParametersFile)" evaluates to "Z:\BAP.Publish.Parameters.xm
Afterwards I tried WebDav and got - based on the application the same error as before or something like this:
1>Connecting to Z:\... 1>Transformed Web.config using c:\users\peter\documents\visual studio 2012\Projects\MvcApplication1\MvcApplication1\Web.Debug.config into obj\Debug\TransformWebConfig\transformed\Web.config. 1>Copying all files to temporary location below for package/publish: 1>obj\Debug\Package\PackageTmp. 1>Publishing folder /... 1>Unable to add 'Global.asax' to the Web site. Unable to add file 'Global.asax'. The system cannot find the file specified. 1>Unable to add 'packages.config' to the Web site. Unable to add file 'packages.config'. The system cannot find the file specified. 1>Unable to add 'Web.config' to the Web site. Unable to add file 'Web.config'. The system cannot find the file specified. 1>Unable to add folder 'bin' to the Web site. Cannot create folder 'bin'. The system cannot find the file specified. 1>Publishing folder Content... 1>Publishing folder Content/themes... 1>Publishing folder Content/themes/base... 1>Publishing folder Content/themes/base/images... 1>Publishing folder Content/themes/base/minified... 1>Publishing folder Content/themes/base/minified/images... 1>Publishing folder Images... 1>Publishing folder Scripts... 1>Publishing folder Views... 1>Unable to add 'Views/Web.config' to the Web site. Unable to add file 'Views\Web.config'. The system cannot find the file specified. 1>Publishing folder Views/Account... 1>Publishing folder Views/Home... 1>Publishing folder Views/Shared...
Trying to publish a different older project lead also to the same error.
I was doing everything over the internet on a Windows 8 Pro laptop with Visual Studio 2012 so I figured that might have been the problem. But later I tried it also in the local network to publish via file share to from Windows 7 Pro with Visual Studio 2010. This used to work before when I had IIS 6 with Windows Server 2003 running, but now i got the same kind of errors:
for the first project the problem with Exists should get only a scalar valued parameter, and all other projects the problem that some files simply were not published.
resulting from this, I of course cannot open the website and get a HTTP 500 error and even "Failed Request Tracing" doesn't help me, since most probably the page never even starts executing.
Any Idea what i could have missed?
As I mentioned above it is Windows Server 2012 Essentials with IIS 8 - so there was not so much i configured. I only installed the "Recommended Configuration for Hosting Providers" as it was suggested by the following tutorial: http://www.iis.net/learn/install/installing-publishing-technologies/installing-and-configuring-web-deploy
thanks for your help
regards
Peter