Error creating asp.net mvc site

I struggled with this for several days and I can’t figure out what the problem is ... I have an Asp.NET mvc 4 website that works fine, but when I try to deploy it to azure, I get this error :

Error 2 The "exists" function only accepts a scalar value, but its argument "$(PackageSourceManifest)" evaluates to "D:\Software Projects\xxx\xxx\xxxWebSite\obj\Debug\Package\xxxWebSite.SourceManifest.xml ;D:\Software Projects\xxx\xxx\xxxWebSite\obj\Debug\Package\xxxWebSite. SourceManifest.xml" which is not a scalar value. 

This also happens when I try to clean and rebuild, so I think this is not an azure deployment process that gives me problems. I have no idea how to handle this, and this website should go live tomorrowow :(

+4
source share
2 answers

Create a backup first. :)
<hack> Path D:\Software Projects\xxx\xxx\xxxWebSite\obj\Debug\Package\xxxWebSite.SourceManifest.xml can be repeated twice somewhere in the depths of the project (or publication or package or magic), where it should only be once. Find it (the uglier configuration the closer you actually are), and recursively try to remove anything related to it that could be repeated. </hack>

I would try this if I did not find anything more understandable. Worst case: try to recreate the project ...

0
source

I got this error while viewing a web deployment. I fixed it by re-entering the connection password. I probably recreated some files somewhere that fixed the problem.

0
source

Source: https://habr.com/ru/post/1497622/


All Articles