Microsoft.SqlServer.Management.SqlParser nedded in clickonce - c#

I want to make a click once via ftp, after deploying the project and excute I have Microsoft.SqlServer.Management.SqlParser V 10.0 needed .
I have installed 1033\x64\SharedManagementObjects.msi Version 10.50.2500.0
but I can't found this file in the sdk directory ! and the other thing that I don't use this dll in my sollution !
How can I resolve this?Any sort of help will be appreciated.
Thanks

Probably a dll that you use in your projects needs it and it is using it from the GAC. In your deployment machine there is no such dll. Open your project properties and click on "Publish". Click on "Application Files" button, and check "Show All Files" in the opened dialog. See if the missing dll is there and change its publish status to "Include".

Related

Did not find the metadata file netstandard2.0 dll

What does it mean that visual studio did not find the metadata file netstandard2.0 dll? This file should will be on the bin folder so it should be automaticly created by xamarin by compiling the code.
Also it waring the depencences. Why is it? How could I solve this?
Please follow the steps below to check if it is helpful to you.
Right click on the solution and click Properties.
Click Configuration on the left.
Make sure the check box under "Build" for the project is checked. If check then uncheck and check again and save the settings.
Clean the solution by right clicking on the project solution and rebuild the project again.
Make sure you don't have any other error messages in your project and if you do, fix those first.
I have got this solution from this link Click here
if this solution does not work for you please follow the steps below
1 - Close the solution
2 - Delete obj, bin folder for PCL, android, ios project
3 - Open solution and build

Unable to start program. [VALUE].dll is not a valid Win32 application error in Visual Studio 2017

I have developed an C#, ASP.NET web application in a Windows 7 machine using Visual Studio 2012. Now i had imported the entire project into VS 2017 running on windows 10 machine, and when i try to enter the debugging mode to analyze my code it shows the following error:
I guess the project configurations are conflicting hence it throws this error.
Any suggestions??
The same error happens when Visual Studio solution has selected the wrong Startup Project. The bold project is the designated startup project.
Go to the Solution Explorer > Right click on the correct project and select "Set as StartUp Project" in the context menu.
I also got this error. I ultimately got to know that I was not selecting .sln file.
In VS, you should select .sln file and it automatically loads the complete project structrue is what I learnt.
Selecting .sln file worked for me
These errors are mostly because you are not selecting the .sln or solution file. In your solution explorer tree, double click the solution file and then build and run.
This runs contrary to a users intuition that simply opening a file and running it would work. Consider it a poor user interface. Jet Brains Rider, for instance, does not have this issue.
Change Targeting Platforms with the Configuration Manager and Build the project then try to debug it.I hope this will help you.
Don't export the project folder. upload the .sln file.
It will work.
DLLs cannot be ran/debugged directly. You have to specify host application in the
Configuration Properties>Debugging>Command and then let it load the DLL by itself.
You will most likely need to copy the DLL to the directory searchable by the host application e.g. its root or ./plugins folder.
In the Configuration Properties>Build Events>Post-Build Event>Command Line simply enter something like:
copy "$(TargetPath)" "$(HOST_APP)\plugins"
The Startup Item needs to be a .exe file. It's looking at BusinessLayer.dll because BusinessLayer is currently the Startup Project.
First, build the solution. Then, set the Solution Explorer to folder view and find the .exe in one of you project's /bin folders. Right click on it and set it to the Startup Item.
Finally, click the play button in Visual Studio top bar.
EDIT: Basically the same as Thomas' answer, but I'm pointing out that the "correct project" is the one with the .exe file. I would have commented on his answer, but I have less than 50 rep right now.

Adding reference to Nunit Test project - "operation could not be completed" error [duplicate]

When I want to add a reference in a project in Visual Studio 2017 Enterprise. I get the following error:
"The operation could not be completed"
I have tried cleaning and rebuilding solution, restart computer, delete bin and obj folder and all .suo files. Also there is no error in my Web.config file.
So I got help from microsoft support.
Open Visual Studio Command Prompt as administrator
Goto the path of your visual studio installation, standard is: C:\Program Files (x86)\Microsoft Visual Studio\2017\
Select your installation type and goto \Common7\IDE\PublicAssemblies
Run command: gacutil -if Microsoft.VisualStudio.Shell.Interop.8.0.dll
Run command gacutil -if Microsoft.VisualStudio.Shell.Interop.11.0.dll
This fixed it for me
I have tried the below steps and it worked for me.
Select the project in which you want to add the reference, then right click on it, Unload the project.
Again go to the same project, right click and then you can see the option of Edit the project. Click on it and for reference click on this link-
Project_Name.csproj file(C#)
Now manually include the namespaces or any project reference present in the same solution which you want to use in the current project. For reference, click on this link- Add the references:See Highlighted
In order to create the Project UID(Unique ID)- {1140F306-2341-4D3D-BEC7-9CCA3C2AC00E},
Go to Tools -- Create GUID -- Select GUID Format i.e. Registry Format and then click on copy and then paste it into your .csproj file. For reference click on this link-
GUID Tool
Then save the .csproj file and then right click on the project in which you have done changes and Reload the project.
After following the above steps, right click on the references and you can see the namespace or project reference which you have given in .csproj file
I hope, the above solution will work for others as well.

Visual Studio Does not notice code changes [duplicate]

VS2010 c#, winforms project.
It does not build automatically when I click on debug or press f5. If I manually build the project before I debug, it compiles and changes are picked up.
My other projects all work as expected. Why doesn't it build automatically?
Right-click the Solution (not project) in the Solution Explorer and select Configuration Manager. Check if Build is turn off for the current configuration.
Check your settings in Tools->Options.
Go to the projects and Solutions area, Build and Run page.
There is a setting "On Run, when projects are out of date:" Make sure this is set to 'Always build.'
I ran into this same issue and I did the following:
Run Build Clean
Close the solution
Delete any .suo and .user settings files
Delete any .ncb files
Open the solution again
Unload the project
Reload the project
Make sure the project is set as startup again
Debug away!
You may be able to only do steps 6-9 but I don't know how to get back in that state.
Because my project was independend from other projects by using prism I had to uncheck 'Only build startup projects and dependencies on Run' in Tools->Options->Projects and Solutions->Build and Run.
When you work on a dependency
In my case, I am working on a library used by an executable.
It was necessary to say to the solution to include the dependency of the library in the executable project solution to build the executable code and the library code before launching the debugging:
Tools Menu, click on Options. Go to "Projects and Solutions/Build and Run", "On Run, when projects are out of date" needs to be on "Always build".
Right-click the Solution (not project) in the Solution Explorer and select "Project Dependencies". Check the boxes of dependencies "Lib1" and "Lib2".
Just in case someone else runs into the same problem as I did: for me it turned out to be a setting in my web.config as follows:
<httpRuntime fcnMode="Disabled" targetFramework="4.5" maxRequestLength="40960" executionTimeout="1200" requestValidationMode="2.0" />
What this guy does is he disables File Change Notification, which is used to restart the application domain when a change is detected in critical files e.g. anything in the bin or .config files. Without fcn, I would make code changes, press F5 and still see the old code, and all breakpoints would be whited out because the source was different to what IISExpress was serving up.
I had a similar situation with multiple projects in a solution in Visual Studio 2013. One of the projects that the Startup project uses was not building when I clicked the Run button. I had to right-click on the Startup project and select "Build Dependencies" and check the project that wasn't building in there.
Was scratching my head on this for a while, turns out our office's Folder Redirection configuration (e.g. My Documents to point to a Network location) did not integrate well with VS.

Make copy a vs application project

I created a web application project and it's working fine. Now I copy this project and create the new project with the same source. This is also working fine. Now I'll try to publish the second project now I get the error:
Copying file obj\Debug\Package\PackageTmp\Site.Master to obj\Debug\Package\PackageTmp\obj\Debug\Package\PackageTmp\Site.Master failed. Could not find file 'obj\Debug\Package\PackageTmp\Site.Master'
I tried many way, but not resolved my problem. Please help me to solve this.
It looks like VS is telling you it can't find the file Site.Master. Check that it (and any others) is included in the project by:
Click the "Show all files" icon in the Solution Explorer. This will show if any files are not included in the project;
The right click on the files/folders that are greyed out (not included)
Select "Include in project".

Categories

Resources