visual-studio-2010

Filling DataGrid Columns w/ Excel Data in VB

痴心易碎 提交于 2020-01-03 02:57:12
问题 Alright, I finally got this code to work after hours of toiling: Dim path As String = OpenFileDialog1.FileName Dim myDataset As New DataSet() Dim strConn = New OleDbConnection("Provider=Microsoft.ACE.Oledb.12.0;Data Source=" & path & ";Extended Properties=""Excel 12.0;HDR=YES;IMEX=1""") Dim myData As New OleDb.OleDbDataAdapter("SELECT * FROM [Sheet1$]", strConn) myData.Fill(myDataset) DataGridView1.DataSource = myDataset.Tables(0).DefaultView Now that I figured that out I was going to try and

Warning when attempting a build in VS 2010

﹥>﹥吖頭↗ 提交于 2020-01-03 02:56:09
问题 I am getting this error when I attempt to build my project in VS 2010 Warning 2 Cannot find wrapper assembly for type library "VBIDE". Anyone experienced this before? Any ideas what could be the cause? 回答1: I have had that issue as well. I did ended up copying the VBIDE from a peer's machine. It worked fine after that. 来源: https://stackoverflow.com/questions/4167545/warning-when-attempting-a-build-in-vs-2010

Warning when attempting a build in VS 2010

六眼飞鱼酱① 提交于 2020-01-03 02:55:27
问题 I am getting this error when I attempt to build my project in VS 2010 Warning 2 Cannot find wrapper assembly for type library "VBIDE". Anyone experienced this before? Any ideas what could be the cause? 回答1: I have had that issue as well. I did ended up copying the VBIDE from a peer's machine. It worked fine after that. 来源: https://stackoverflow.com/questions/4167545/warning-when-attempting-a-build-in-vs-2010

Message: “Visual Studio Remote Debugging Monitor has stopped working” on x64 debugging

女生的网名这么多〃 提交于 2020-01-03 02:52:27
问题 Since this morning I keep getting this same message "Visual Studio Remote Debugging Monitor has stopped working" and no matter how many times I restart VS or Windows, that doesn't help. Unfortunately I must use x64 debugging due to third party components. I had no significant changes on the system. From last time everything worked fine. I've seen this question VS2008: Unable to start debugging, Remote Debugging Monitor has been closed and it helped me to understand what is happening but doesn

IIS Express (WebMatrix 2) won't serve .cshtml files in WebAPI project (VS10/WinXP)

帅比萌擦擦* 提交于 2020-01-03 02:51:05
问题 I am trying to run a WebAPI project on WinXP through WebMatrix 2. I'm getting this error when attempting to browse index.cshtml (in the root): "This type of page is not served." I created a WebAPI project under the MVC4 project type in Visual Studio 2010, then set the project to run under IIS Express. What I've Tried: The .NET CLR settings in the VS-created WebMatrix site is .NET 4.0 (Integrated). I've already tried playing with the runAllManagedModulesForAllRequests setting in Web.config, no

Reading XML data using LINQ, multiple elements with the same name

自作多情 提交于 2020-01-03 02:29:29
问题 Visual Studio 2010, Silverlight 4, and C#. I have the following data stored in an XML file: <root> <element>TextHere</element> <element>TextHere</element> <element>TextHere</element> </root> This is my current code. XDocument xmlDoc = XDocument.Load("XMLDocument.xml"); var ElementsList = from Elements in xmlDoc.Descendants("root") select new { ElementContent = Elements.Element("Element").Value, }; This code only puts the very first element in the list, leaving all of the others out. How can I

Use TLS 1.1 or 1.2 in WCF and .NET 4.0?

独自空忆成欢 提交于 2020-01-03 02:22:27
问题 I have a Server service and a Client service using WCF, both built in C# with .NET version 4.0 and Visual Studio 2010. I created and installed self-signed SSL and CA certificates on the server. So far so good. Everything works ok. The Client is service is able to communicate with the Server service from a different machine. However, the connection details show it is using TLS 1.0. Is there a way to implement TLS 1.1 or 1.2 using DotNet 4.0? It appears not, but I was hoping someone had a

Convert virtual spaces into real tabs in Visual Studio sdk

我的未来我决定 提交于 2020-01-03 01:25:11
问题 My Visual Studio extension, is arranging Tab Sizes using ITextParagraphPropertiesFactoryService interface. That class is doing a great job, and helps me to set tab widths for all existing lines, but I have a problem to set tab sizes for new virtual line. In other words, Visual Studio is setting caret position in VirtualSnapshotPoint , and converting it to real tabs only when user enters some symbols. Now, Is it possible to force Visual Studio to create real tabs instead of virtual spaces? I

MS deploy from deploy dialog (not powershell) does not work if there are quotes

你说的曾经没有我的故事 提交于 2020-01-03 01:22:13
问题 In my Visual Studio 2010 SP1Rel, MS web deploy has suddenly stopped workingwith this error: Unrecognized argument 'Web'. All arguments must begin with "-". The argument "Web" refers to the parameter "Default Web Site", ie web deploy cannot deploy if the path contains spaces. This worked until today. If I rename my website to DefaultWebSite (no spaces) then the error message changes to: Unrecognized argument 'Source=10.10.10.1\MSSQLSERVER,1432;Initial'. All arguments must begin with "-". There

“Source” parameter of the “MIDL” task. Multiple items cannot be passed into a parameter of type “Microsoft.Build.Framework.ITaskItem”

橙三吉。 提交于 2020-01-03 00:57:08
问题 I am trying to migrate one of projects earlier in VS2008 to VS2010. On building I get the following error C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(317,7): error MSB4094: "hdxBinding.idl;hdxBlinking.idl;HDXCommandObject.idl;hdxds.idl;HSCProcessStatus.idl;HSCSelectableWindow.idl" is an invalid value for the "Source" parameter of the "MIDL" task. Multiple items cannot be passed into a parameter of type "Microsoft.Build.Framework.ITaskItem". On clicking this error,