visual-studio-2010

visual studio extension to execute sql

若如初见. 提交于 2020-02-03 23:39:32
问题 I have several .sql files in my visual studio 2010 project. I am looking for an extension or add on where I can right click on the sql file and execute its contents against a sql server database. Anyone know if such an extension exists? 回答1: Starting with SQL Server Denali (at least in the community preview version I installed to play with), SQL Management Studio is integrated into the Visual Studio 2010 IDE. So you get all the syntax highlighting, Object Explorer, etc., all from within

Error when creating crystal report in asp.net mvc2

只愿长相守 提交于 2020-02-02 13:27:29
问题 I made a report using crystal report and in the page load I am writing this protected void Page_Load(object sender, EventArgs e) { ReportDocument crystalReport = new ReportDocument(); crystalReport.Load(Server.MapPath("CrystalReport.rpt")); crystalReport.SetDatabaseLogon ("amit", "password", @"AMIT\SQLEXPRESS", "TestDB"); CrystalReportViewer1.ReportSource = crystalReport; } and when runing the page I found this error. CS0433: The type 'CrystalDecisions.Web.CrystalReportViewer' exists in both

Error when creating crystal report in asp.net mvc2

故事扮演 提交于 2020-02-02 13:25:30
问题 I made a report using crystal report and in the page load I am writing this protected void Page_Load(object sender, EventArgs e) { ReportDocument crystalReport = new ReportDocument(); crystalReport.Load(Server.MapPath("CrystalReport.rpt")); crystalReport.SetDatabaseLogon ("amit", "password", @"AMIT\SQLEXPRESS", "TestDB"); CrystalReportViewer1.ReportSource = crystalReport; } and when runing the page I found this error. CS0433: The type 'CrystalDecisions.Web.CrystalReportViewer' exists in both

Updating vsDoc to 1.5 breaks all javascript

…衆ロ難τιáo~ 提交于 2020-02-02 11:35:49
问题 I'm having some difficulty with what seems to be the simplest of operations. In visual studio, when I change vsDoc from 1.4.1 to 1.5, javascript on the page no longer works. (Visual Studio 2010) The original (that works) is like this: <head runat="server"> <title></title> <link type="text/css" href="css/excite-bike/jquery-ui-1.8.11.custom.css" rel="stylesheet" /> <script src="Scripts/jquery-1.5.1.min.js" type="text/javascript"></script> <script src="Scripts/jquery-1.4.1-vsdoc.js" type="text

Using git from Package Manager Console in Visual Studio

做~自己de王妃 提交于 2020-02-02 06:18:10
问题 I'm trying to use git from Package Manager Console window in Visual Studio 2010. And most git commands running as expected, except network-related. When I tried git push origin master Studio stops responding. The code were pushed to github.com account. I've noticed that ssh-* applications were fired and start hanging in system memory, so I switched to https authentication. But the Studio still not responding (and there is no ssh related stuff in memory). Does anybody knows how overcome this

Mouse handling: printing pixel location

帅比萌擦擦* 提交于 2020-02-01 08:45:50
问题 I've been trying to do some work with OpenCV in VS2010, specifically in the area of mouse handling. So far, I have this: CV_EVENT_LBUTTONDOWN :drawing_line = true; cvLine( frame, cvPoint(x,y),cvPoint(350,500), CV_RGB(255,0,0), CV_AA, 15,0 ); fprintf( stdout, "Point found. %i, %i \n", object_x0, object_y0 ); break; What I want it to do is return the location of the pixels that I clicked on but all it returns is "Point found. 0,0" instead of the actual location. Eventually, I would like to use

How to generate a wsdl file of a wcf service library project?

☆樱花仙子☆ 提交于 2020-02-01 04:34:05
问题 I have a few Wcf service library projects (not Wcf service application) in my solution. I have to give the .wsdl files of the projects to my collegue who will consume the services. How can I do that? Thanks in advance, 回答1: You can use the WCF Service Host to start a new instance of your service, and then add ?wsdl to the service address to access the wsdl ( http://localhost:1234/MyService.svc?wsdl for instance). WcfSvcHost's syntax is the following: WcfSvcHost.exe /service:<PathToServiceDLL>

Microsoft VisualStudio TestTools UITest dll

有些话、适合烂在心里 提交于 2020-02-01 03:47:06
问题 I need to find Microsoft.VisualStudio.TestTools.UITest.Common.dll Microsoft.VisualStudio.TestTools.UITest.Extension.dll Microsoft.VisualStudio.TestTools.UITest.Extension.Firefox.dll Microsoft.VisualStudio.TestTools.UITest.Extension.Silverlight.dll Microsoft.VisualStudio.TestTools.UITesting.dll Microsoft.VisualStudio.QualityTools.CodedUITestFramework.dll Where are these dll located so I can reference it on my project and i am using visual studio 2010 professional. 回答1: For Visual Studio 2013,

Visual Studio build successful, MSBuild fails

杀马特。学长 韩版系。学妹 提交于 2020-01-31 23:15:50
问题 I am trying to clean and rebuild a solution file with multiple projects from the command line using MSBUILD. For some reason my build fails (about 10% of the built projects fail) and I get multiple errors which all look like: error CS0234: The type or namespace name 'foo' does not exist in the namespace 'bar' (are you missing an assembly reference?) Now if I clean and rebuild the same solution file from Visual Studio 2010 with the exact same configurations it will build successfully with no

Visual Studio build successful, MSBuild fails

北城以北 提交于 2020-01-31 23:14:27
问题 I am trying to clean and rebuild a solution file with multiple projects from the command line using MSBUILD. For some reason my build fails (about 10% of the built projects fail) and I get multiple errors which all look like: error CS0234: The type or namespace name 'foo' does not exist in the namespace 'bar' (are you missing an assembly reference?) Now if I clean and rebuild the same solution file from Visual Studio 2010 with the exact same configurations it will build successfully with no