using Microsoft.SqlServer.Management.SqlStudio.Explorer;
unable to find this pls assist
[update]
found the dll's in this folders
C:\Program Files (x86)\Microsoft SQL Server\110\ (in the windows explorer just search for the missing reference and add the .dll)
[update]
Ok my bad i changed the target framework to .Net 4 client profile but have to change to .Net4 framework and the build suceeded
so was unable to resolve this what else i need to do?
This is the ultimate error haunting me
What you wrote is a namespace, not an assembly. You're probably looking for the Microsoft.SqlServer.Management.SDK.SqlStudio assembly.
Note that not all assemblies are listed in this dialog. This can for instance be found in the (Program Files) Microsoft SQL Server\100\Tools\Binn\VSShell\Common7\IDE\ directory, you can use the Browse functionality to add a reference.
You might find this blog entry useful:
https://www.sqlskills.com/blogs/jonathan/sql-server-2012-extended-events-add-in-to-manage-2008r2-instances/
Related
I have a WPF application which is distributed by ClickOnce. ClickOnce handles well prerequisite like LocalDb and .Net Desktop Runtime. I started to use Identity in the program so now I need ASP.NET Core Runtime as well, but it is not in the list.
I have sent the problem to MS 3 weeks ago, but no response from them.
https://developercommunity.visualstudio.com/t/ClickOnce-prerequisite-ASPNET-Core-Run/10179285?
I started to look how to add a custom prerequisite but the descriptions was quite old or not detailed. Does somebody have a good description?
UPDATE 1
I did some research.
On windows 10 my Bootstrap directory is at "c:\Program Files (x86)\Microsoft SDKs\ClickOnce Bootstrapper\Packages". But here are only some of the prerequisite, for example SqlLocalDB2019 but not net 5. Why is that?
I have found some useful stuff, an old and a new. They provided the product.xml and the en/package.xml. I have copied the files to the Packages folder but the new prerequisites did not show in VS. I also tried to copy and modify slightly the existing SqlLocalDB2019 folder but the new version did not show either. What am I missing?
What changes do I need in the two files once the prerequisite appear?
There are two location for prerequisites
"c:\Program Files (x86)\Microsoft SDKs\ClickOnce Bootstrapper\Packages"
"d:\Program Files\Visual Studio 2022 Community\MSBuild\Microsoft\VisualStudio\BootstrapperPackages"
I did not found the problem the old examples but I was able to add my own prerequisite.
See: https://stackoverflow.com/a/74536380/5852947
I created a WPF application using telerik control suite (WPF telerik controls and ORM access control) and SQL Express R2 2008 in VS 2012.
Then I created its setup files (using install shield LE and also Advanced Installer) which works on my win7 system, properly () .but when I install the setup file on any other win7 system, it doesn’t work( I am getting this error: “MyAPP has stopped working”).
I installed .NET framework and SQL Express R2 2008(the service’s status is running) and I also copied the mdf and ldf files related to the database in right path that specified in app.xaml.
When I install my setup files, it just copy my project’s debug folder (contains the telerik control dll files, the dll file related to my ORM access control project, built exe file and etc.). I think that’s enough. Isn’t it?
Edit:
The project's Solution's Explorer:
\bin\Debug
I have no idea what to do.
I would really really appreciate any hint or comment.
Regards,
Hiva
I know this is a very general answer although without knowing the details of your project it's the best I can do. I remember when I was creating an app using telerik controls, when I went to publish it I was getting errors in the with the assembly which was a result of including the obj / Debug / Release folders in my project. I tried everything that people listed to get rid of the errors but the only thing that helped was creating a new project, copying in the code and NEVER including(Never right clicking and hitting include in project) those folders in my project.
Is it working when you debug it?
Could you please let me know what steps you are taking to publish the app ?
I've added PowerPacks from MSDN, but I don't have a clue how to add it to my winform project.
what should I looking for in COM tab (in Add reference)?
I saw on some other forms that I need to search for the dll in "C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bootstrapper\Packages\VBPowerPacks\en".. but as you can guess I find nothing.
*I know for sure that I did actually installed it because I can see it "Add/Remove Programs".
Please your help :)
Amit.
I've got this error that I just can't figure out.
I'm using VS 2012 (VS11) on Windows 8 with .net4.5 and I get this error when compiling a project that worked with VS 2010 and .net4.0.
This is the full error:
The type System.Windows.Input.ICommand exists in both 'c:\Program
Files (x86)\Reference
Assemblies\Microsoft\Framework.NETFramework\v4.0\PresentationCore.dll'
and 'c:\Windows\Microsoft.NET\Framework\v4.0.30319\System.dll'
If anybody could provide some insight on what is causing it and/or how to fix it I'd be grateful.
Thanks.
c:\Windows\Microsoft.NET\Framework\v4.0.30319\System.dll
The message is accurate, ICommand indeed exists in both assemblies for .NET 4.5. The problem is your reference to System.dll, your project is using the wrong one. The assemblies in the Microsoft.NET directory are no longer suitable to act as reference assemblies, like they were in versions of .NET prior to .NET 4.0. They should no longer be there but unfortunately are required to get C++/CLI projects built.
Your reference to PresentationCore.dll is correct, it uses the c:\program files\reference assembly subdirectory. The proper home for reference assemblies in .NET 4.0 and up. These assemblies are special, they contain only metadata and are not a copy of the runtime assemblies.
You'll need to fix your project. System.dll is probably not the only assembly that has this problem. Open the References node of your project and verify them one by one. Remove bad ones that point to Microsoft.NET and replace them with good ones by using Project + Add Reference. Best to just replace them all to be sure.
I had a similar problem with fxcopcmd V12.
I was able to solve it by explicitly adding
/reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\WindowsBase.dll"
See: FxCop engine exception on WPF assembly
Take a look at this similar post, How can I resolve this? The unit type exists in two dll files, it suggests that you are referencing two assemblies with the same type, so you would need to give the type you want to use the fully quantified name.
We had the same problem with our libraries after moving to a new build server.
The solution was to specify the path of the .net framework to build against:
/p:FrameworkPathOverride="C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0"
If the .net 4.0 framework (Multi-Targeting Pack) is not installed on the build server (as it was with us), you can just copy the "v4.0" folder with all its assemblies to the build server ;)
I have a WinForms application that uses a config file to specify where it's external files will be created.
Is it possible to use the installer to question the user where the files should be located and add this value to the config file?
It would also be good if I could confirm that the user has entered a valid path but that's just a "Nice-to-have" at the moment.
Following the helpful hints from Pete, I was able to find this blog that does exactly what I need.
There are a few Gotchas to watch out for and I've covered them here but these may be Visual Studio 2008 specific issues.