visual-studio-2012

How to copy a pst file while it is open using c# [duplicate]

偶尔善良 提交于 2020-01-16 04:20:08
问题 This question already has answers here : How to copy a file while it is being used by another process (5 answers) Closed 6 years ago . Is it possible to copy a pst file using c# with outlook open? Here is the code i have got already but it still gives me the error :The process cannot access the file 'filepath' because it is being used by another process. using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.IO;

propertygrid object with custom editor like a slider

我们两清 提交于 2020-01-16 03:38:54
问题 In my windowsForm application I use a PropertyGrid to edit the instances of my class: some of these properties are floating point with maximum and minimum item. I wish modify them by a slider or something like it. I've found this: http://www.visualhint.com/propertygrid but is not free.. do you have an idea to help me? 回答1: You can make use of TrackBar . Note that PropertyGrid by default does not allow you to add controls like these to it. So, you will need to do some work here. You will need

Warning ASP.NET runtime error: Could not load file or assembly 'EntityFramework, Version=6.0.0.0

回眸只為那壹抹淺笑 提交于 2020-01-16 02:55:28
问题 I'm developing using ASP.NET in Microsoft Visual Studio Express 2012 for Web. Everything works great but suddenly when changing some code in one of my controllers Visual Studio crashed and now I got this weird runtime error: Warning 1 \Views_Create.cshtml: ASP.NET runtime error: Could not load file or assembly 'EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies. The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E

A connection was successfully established with the server, but then an error occurred during the pre-login handshake. TCP provider, error: 0

自作多情 提交于 2020-01-16 02:54:08
问题 I always get the above error when trying to connect to a SQL server 2000 database hosted on a "server" with Windows XP pro. The client pc (my working environment) is Windows 7. Up to now I have developed my application using Visual Studio 2010 and Net framework 4.0. All was working correctly. Then I have installed Visual Studio Express 2012 for Web and ASP.NET 4.5. Now, when i try to connect via SqlConnection conConnection .Open() i get the Exception: A connection was successfully established

Will apps developed for WP 7.1 work on WP8?

此生再无相见时 提交于 2020-01-16 01:54:12
问题 I have already developed an app targeting Windows Phone 8, but it doesn't work on Windows Phone 7.5. To get it working on both platforms, I have decided to target Windows Phone OS 7.1 via Microsoft Visual Studio 2012 instead. Will my app works on both WP 7.5 and WP 8 if I target WP OS 7.1 in VS 2012? 回答1: Windows Phone applications are forward compatible. This means that applications built for Windows Phone 7.x should work on Windows Phone 8. However, this is not a guarantee. Some

How to link against .a files in Visual Studio 2012?

吃可爱长大的小学妹 提交于 2020-01-16 01:12:07
问题 I have some static libraries in the form of .a files, and accompanying header (.h) files. How can I tell the linker Visual Studio 2012 Windows Desktop Express to reference these files so that I don't get "unresolved external symbol" errors when I try to build? 回答1: Include the .h header files, and make sure they are present in your project Go to Project Properties > Configuration Properties > C/C++ > General > Additional Include Directories and add the path to the include directory where your

Accessing COM Interface from C++ COM Server that doesn't register via C#

北战南征 提交于 2020-01-16 01:10:37
问题 I've been asked to integrate with an already-shipped product that is a COM server. Along with this product was provided a .tlb file. I've used tlbimp to export the tlb to primary assembly and I've included that in my C# project. When I attempt to execute my COM client I receive "No interface found" errors, because the application never registered its typelib in the registry. I've attempted to run "server.exe /RegServer" per the MSDN docs. It executes but doesn't seem to update or add anything

Entity Framework 6 + Code First + Oracle 11g

▼魔方 西西 提交于 2020-01-16 00:49:12
问题 Is there any way to create 100% the Oracle11g database using EF Code First? And how to trace the Oracle query in SaveChanges? 回答1: You can use third party to have a code first solution with oracle and ef 6 one of this providers is DevArt you can read more about the support here Ef6 in devart And about the log you can enable log in ef6 as is explained here http://msdn.microsoft.com/pt-br/data/dn469464 回答2: Try oracle odac 12c release 3, but only support EF6 code first. 回答3: I know its 2015 and

Overloaded Action Method not found at Runtime from test

孤者浪人 提交于 2020-01-15 22:12:36
问题 I have two action methods : public ActionResult Edit(int id) { } public ActionResult Edit(Modelname model, string[] strParam) { } And I am calling the Edit(Modelname,string[]) from the unit test. var actionResult = controller.Edit(model, strParam); The code compiles at runtime , but when i debug the test method it gives me a method not found "MissingMethodException" . I tried commenting the Edit(int id) method and then debugging, still the same thing. Other tests are running fine, any help

How I can call the installer.ini arguments in a silent installer?

送分小仙女□ 提交于 2020-01-15 20:18:31
问题 I use this code to install in silent mode a program : private void Install_Click(object sender, EventArgs e) { string path = AppDomain.CurrentDomain.BaseDirectory.ToString(); string configfilename = path + "config.ini"; string installerfilename = path + "installer.ini"; string configtext = File.ReadAllText(configfilename); string installertext = File.ReadAllText(installerfilename); } Process process = new Process(); process.StartInfo.FileName = @"D:\Matlab\NSIS\R2008a\win64\setup.exe";