Create an account

Very important

  • To access the important data of the forums, you must be active in each forum and especially in the leaks and database leaks section, send data and after sending the data and activity, data and important content will be opened and visible for you.
  • You will only see chat messages from people who are at or below your level.
  • More than 500,000 database leaks and millions of account leaks are waiting for you, so access and view with more activity.
  • Many important data are inactive and inaccessible for you, so open them with activity. (This will be done automatically)


Thread Rating:
  • 785 Vote(s) - 3.43 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Build succeeds, but publish fails

#11
open projectname.csproj file in notepad and remove obj\debug\project name.csprojResolveAsseblyReference.cache line
Reply

#12
Just rename Packages folder of Nugets. Visual Studio would automatically get required packages and build would get successful and Publish would work too.
Reply

#13
I removed bin & obj folder and also the content of the inetpub/wwwroot/myapp and problem solve
Reply

#14
I recently faced the same issue.
And I actually traced it by searching the file which was missing.

Reason for the error : In visual studio I had included the file and later on deleted it from file system.(but not from visual studio). VS had still had the reference to that file. So once I deleted the reference from VS I was able to publish successfully !
Reply

#15
nothings work for me.
deleting obj and bin file-clean-changing webservice name-shorten webservice name.

But at all,

+Expand your Reference.svcmap from visual studio.

+Update reference.

+And delete *yellow warning* datasources.

works for me
Reply

#16
In case this helps anyone, for my MVC project in VS 2015 it was this file:
File System.pubxml.user
In the publish profile directory, including it caused compilation errors but deleting it enabled it to publish!
Reply

#17
I had to delete the publish profile, commit, and then recreate the publish profile from scratch.
Reply

#18
I deleted all the existing publish profiles in visual studio -> solution explorer -> My Project Node -> Properties -> Publish Profiles
The same can be done by right clicking Project in solution explorer -> Publish -> Profile tab -> Manage Profiles -> Remove all profiles
Now download the relevant profile from Azure or choose from your directory if it's already save on your machine and choose it.
Then clean and rebuild the project.
Make sure you've chosen the project is built in Release mode and you've also chosen "Release" Publish -> Settings -> Configuration
Now Publish, it worked for me.
Reply

#19
i have also faced this issue while i was publishing my site, in my case reference was added but in bin folder it was not there so please install again which reference is missing on output.i hope it helps
Reply

#20
Exclude the bin (and/or) obj folder from project and publish.
This worked for me
Reply



Forum Jump:


Users browsing this thread:
1 Guest(s)

©0Day  2016 - 2023 | All Rights Reserved.  Made with    for the community. Connected through