Web Deploy publish/package validating error: Missing or Invalid property value for $(MsDeployServiceUrl) - webdeploy

I use VS2019 to precompile my web site then publish to the web server. If I directly press the Publish button, the web published successfully. But if I press preview link then start preview button, after the files appear. I excluded the web.config file and press the publish button, then the visual studio error list shows 2 errors as follow:
1.Web Deploy publish/package validating error: Missing or Invalid property value for $(MsDeployServiceUrl)
2.Target GenerateGlobalPublishSetting Failed
I tried to reinstall the VS2019 on my computer and it still showed the same errors.
I don't know this is the VS2019 problems or the server site problems.
Can someone help me? thanks!

Related

Publishing node_modules in Visual Studio 2017

I'm using a devexpress reporting widget that requires node_modules folder, the folder is not visible on my solution explorer until I click on "Show all files"... the issue is when I published initially I got an error of the node_modules directory not found, and when I contacted devexpress support, I was asked to right click on node_modules folder and click "Publish node_modules" to fix that error but when I do so I get this error:
Preparing to publish files...
Connecting to bin\Release\PublishOutput...
Unable to open the Web site 'bin/Release/PublishOutput'. The Web site 'bin/Release/PublishOutput' does not exist.
Unable to open the Web site 'bin/Release/PublishOutput'. The Web site 'bin/Release/PublishOutput' does not exist.
I do not know anything about node_modules other than I need for my reports to display. Any help/explanation would be appreciated. By the way my project is an Asp.Net Core web app.
i have fixed the issues thanks guys, i just deleted most of the folders in the node_modules that the devexpress reports do not require and inclufed the folder in my project

Can't edit code in visual studio 2013 while running

I'm developing a web site in VS2013 Update 2 with .net 2.0 using IIS as web server. My problem is that when I run the web site, i can't edit it. Not trying to edit and continue nor edit while debbuging. I'm saying that once the page is completed loaded on web browser, i cant change anything on source files(.vb) until i stop and run the project again.
Something strange is that i formated my pc recently and after i reinstalled everything it was working. Then, VS chrashed and on the next start the problem appeared.
that is normal. you cannot edit .vb or files that get compiled when it is running. You can however edit the html, javascript, css files even when it is running since those files are not compiled.
To enable edit and continue in vs2013, you need to check edit and continue in mvc project property > Web (scroll until reach end of options) and disable or uncheck edit and continue in Tools > Option > Debugging > edit and continue > uncheck.
Then build the application and run the project.
This should now work when you change the controller (tested)
Open your project using option 'Open->Web Site' then you will able to edit your code while vs2013 is running.
Do not open solution file because it is not allow this option

TFS error: when I'm giving checkin in my project one Rotativa.dll bug

I am using ASP .NET MVC 4 with Entity Framework 4.5
I downloaded the nuget something to be able to export my data pro PDF and found one called RotativaW7. The project is working normal but I try to check in the project to publish to TFS and is giving the following error message:
ERROR: Multiple errors occurred during the operation, the first of which is displayed below. A full error list is available in the Output Window.
..\packages\RotativaW7.1.5.4\RotativaW7.1.5.4.nupkg: Unable to write data to the transport connection: The cancellation of an existing connection was forced by the remote host.
nuget:
Install-Package RotativaW7 -Version 1.5.4
Could anyone help me solve this problem?
The nuget package contains an .exe, are you sure TFS allows you to check in executable files?

Unable to deploy WinJS apps

I'm working on a WinJS app which works perfectly on one particular Windows 8 image, but will not deploy on another that we use.
Attempting to run any WinJS project from visual studio results in the following error:
Error 1 Error : DEP0800 : The required framework
"C:\Program Files (x86)\Microsoft SDKs\Windows\v8.0\ExtensionSDKs\Microsoft.WinJS.1.0\1.0
\Microsoft.WinJS.1.0.appx" failed to install.
Deployment Add operation on Package Microsoft.WinJS.1.0_1.0.9200.20602_neutral__8wekyb3d8bbwe
from: ([path]) failed with error 0x8007065E. See ]link] for help diagnosing app deployment
issues.
Attempting to sideload the app doesn't work either, producing a similar error about the WinJS dependency not being resolved.
Any ideas?
Try changing the package identifier in the manifest and see if that helps.
Is this the application already on the machine? When updating an existing application, I've run into this a few times and first uninstalling from the target machine and then deploying from VS works.

RazorPDF not working on build server

I'm creating an application which uses the RazorPDF nuget package for creating PDF document. When using this on a local development pc everything works fine but when I deploy on a server, I always get the standard error: "Error. An error occurred while processing your request."
Do I need to change properties in my project to make the nuget package work on a server except the normal way to deploy or has any one got experience with this?