visual-studio-2008

Order of install/uninstall of VS 2008 and SQL Server 2008

送分小仙女□ 提交于 2019-12-11 03:06:52
问题 I have VS 2008 Trial edition, SDK, and SQL Server 2008 currently. But I need to uninstall VS 2008 Trial and replace it with VS 2008 Professional. If I uninstall VS 2008 while keeping SQL Server 2008, then if I install VS 2008 Pro will SQL Server databases still be accessible from the new VS 2008 Pro? And do I install the SDK after VS 2008? 回答1: Microsoft offers very specific instructions for this issue. This is what worked for us: Uninstall VS 2008 Trial Uninstall SQL Server 2008 Install VS

Close all files in visual studio on exit

◇◆丶佛笑我妖孽 提交于 2019-12-11 02:52:04
问题 Is there any way to close all files in Visual Studio on exit? Alternatively if that isn't possible is it possible to delete the user project file visual studio creates on exit? 回答1: Windows->Close All Documents File->Exit or manually delete the .sou file after the project is close You can probably write a VB script macro that does either of these. 来源: https://stackoverflow.com/questions/648803/close-all-files-in-visual-studio-on-exit

C# - Debug.WriteLine - is this function ASync?

谁都会走 提交于 2019-12-11 02:49:37
问题 I just came across a situation: I was debugging a thread which iterates through a large amount of data. I was using Debug.WriteLine to print which record is being processed. What just happened is that thread has reported that it has processed all records, however, Visual Studio's debug window is still displaying out. I am positive that thread has completed its job. Is Debug.WriteLine Async or data has been stacked in Visual Studio's buffer and is getting displayed slowly? 回答1: MS does not

SQL there was a problem sending the command to the program

自古美人都是妖i 提交于 2019-12-11 02:43:39
问题 I'm using Windows 7 and SQL Server 2008 R2 and whenever I try and double click a .sql file I get some stupid error "there was a problem sending the command to the program" does anyone know how to fix this? I have UAC keep popping up whenever I open SQL server or BIDS, but seems fine with Vis studio 2010 for some reason... oh and I checked that the exe was running as admin, I saw that posted somewhere... 回答1: Mine does the same at first. Run regedit and go to the following key: HKEY_CLASSES

Windows Service Setup Project Problems Converting From VS.NET 2008 to 2010

旧时模样 提交于 2019-12-11 02:42:13
问题 I'm trying to convert a solution from VS.NET 2008 to 2010. The solution includes a Windows Service project and a Setup project that installs the Windows Service. I'm having trouble compiling the Setup project. I've tried starting this over from scratch a few times, following the tutorial here under the section titled To create a setup project for your service . When I simply follow these steps and build the project, I get this error: Unable to build custom action named 'Primary output from

Support for VB.NET's Imported Namespaces feature in C#

☆樱花仙子☆ 提交于 2019-12-11 02:36:18
问题 I am use to VB.NET. The game source code I am learning from is written in C#. I find it annoying that I have to add using System.Diagnostics to the source code in order to type Debug.WriteLine... . I checked under project properties, but I cannot find the References tab that allows me to add namespaces to Imported Namespaces. Where do I find this in C#? Also, why can't I do this in C#? Imports System.Math 回答1: Place the cursor over Debug in the source code, a red squiggle appears in the right

Visual Studio 2008 Report Server Project Design View not working

寵の児 提交于 2019-12-11 02:35:56
问题 When I create a new Reporting Services report or try to open an existing report (that has been working) in Visual Studio 2008. I cannot view the design. I get no error message and it only shows html code in the "Design View". I've tried reinstalling VS2008 and BIDS, but hasn't worked. This was all working when I last used it 2 weeks ago. -nate 回答1: I had the same problem, and Kyle's was the exact answer. In my case, the Error List window (In Visual Studio 2008 IDE: View > Error List)

Understanding RTF and edit it with vb.net

淺唱寂寞╮ 提交于 2019-12-11 02:33:59
问题 I have this RichTextbox in my vb.net form and I would like to when a user click a button, for example to embold the selected text, how would I do this. Also, I do NOT want to use the standard vb.net expressions such as RichTextBox1.SelectedText.Font.Bold = True . I want to do something like RichTextbox1.SelectedRTF="[bold]" & RichTextBox1.SelectedRTF & "[/bold]" or whatever RTF looks like. Can I just add the RTF options random places or can a RichTextBox return an error if the text is in

EntityFramework Connection problem

别来无恙 提交于 2019-12-11 02:29:10
问题 I have a solution in Visual Studio 2008 with 3 projects. One Web Application and 2 class libraries. The entity framework model is in a class library and the start project is the web application. I used to have this problem: "The specified named connection is either not found in the configuration, not intended to be used with the EntityClient provider, or not valid." I fixed it copying the connection string from the App.config of the class library where the entity model is located to the web

Refactoring to separate business logic from code behind

久未见 提交于 2019-12-11 02:28:30
问题 I've inherited a asp.net project and I'm finding that the code behind pages contain a lot of business logic. I've decided that in most cases it's better to leave the working code in place than try and do a massive refactoring. However there are pages that perform functionality that could be re-used in command line utilities for batch processing. I'd like to focus my energies on these pages, refactoring out the business logic and referencing that in other utilities. I am currently looking to