visual-studio-2008

Stripping Down VS 2008 Win32 DLL to one file.

I have a VS generated C++ Win32 DLL project. It has the following files: stdafx.h targetver.h myProject.h dllmain.cpp myProject.cpp stdafx.cpp I can remove targetver.h, and merge dllmain.cpp into myProject.cpp. What more can I do to get the simplest file structure, preferably one file. I need to dynamically emit this code file and b...

Debugging commands (step over/into) cause unhandled exceptions

I'm using Visual Studio 2008 on a 64-bit version of Vista. After my program stops on one of my breakpoints, I can't step over or into the current line without either an Illegal Instruction exception or an Access Violation exception being thrown by my application. If I right-click on the next line and choose "Run to here" (equivalent to...

Visual Studio 2008 freezing when editing aspx/master pages

Visual Studio freezes up continually when I'm editing master pages or aspx files. Here's what I've tried that have not helped: restarting VS only working with few files open at a time Disabled all addins (resharper etc.) deleted .suo and .user files changed default editor from Web Form Editor and Master Page Editor to HTML Editor inst...

Error C1047: Object file created with an older compiler than other objects

I have a project that I'm building in C++ in Release mode in Visual Studio 2008 SP1 on Windows 7 and when I build it I keep getting: fatal error C1047: The object or library file '.\Release\foobar.obj' was created with an older compiler than other objects; rebuild old objects and libraries. The error occurs while linking. ...

Visual Studio jQuery IntelliSense fix KB958502 does not recognize visual studio 2008 install on windows server 2008 x64.

So just this week I had the opportunity to re-build my development machine and I opted to use Windows Server 2008 x64 version for my operating system. I re-installed Visual Studio 2008 along with all of my other development tools. I surprised to see that the KB958502 hot fix did not recognize my installation of Visual Studio 2008. I wond...

AJAX Enabled WebApplication

Hello does sy know why the Ajax Enable WebAppication in VS 2008, even if you put the target framework 3.5, target afterwards .NET 2.0 framework? (so I create the Web application with ASP.NET 2.0 Ajax Extensions 1.0 features enable (.NET framework 3.5) , then I check the Target Framework in the Application Tab of the project properties ...

Changing DuN properties for a specific connection in Visual Basic

I have an application that makes an internet connection from within the application by the click of a button. When the button is clicked, the sub determines which type of modem is being used, and dials the connection associated to that modem. My question is: How can i change the properties for those dial-up connections in the code? Or ...

Automatically expand C# 3 syntactic sugar

Hello I'm in trouble with SlimDX samples, which just pretend to support VS 2005. Well there are VS2005 solution/project files but source code itself contains C# 3.0 new language features (mostly automatic properties). It would be hell to convert this stuff to C# 2.0 by hand. Is there any tool, which does it automatically? Thanks! ...

Silverlight projects no longer build automatically when I run my website.

I just installed Silverlight 3 + RIA services after uninstalling Silverlight 2, now my Silverlight projects no longer build automatically when I run (F5) my website. I have to manually build the silverlight app and then run the website which is really annoying. Any ideas how to fix this issue? Thanks, Pyt ...

"Base class could not be loaded" error in VS2008 designer

Visual Studio is erroring trying to open a simple class with the error "The designer inspected the following classes in the file: InstallerSupport --- The base class 'Microsoft.ManagementConsole.SnapInInstaller' could not be loaded" I've got the assembly referenced and the project builds just fine. I also get errors trying to run instal...

Deploy WCF service, C#, WCF, VS2008

I have a test project, WCF Service Library, and I published the project. Have a 2003 server with all the right installation. I browse to my application and upon clicking on .svc I get this error. The type 'SearchService', provided as the Service attribute value in the ServiceHost directive could not be found. This is the snippet from...

Fluent NHibernate Classes as code behind for Domain classes

Ok, so I want to create a code behind for non-aspx classes. I have mapping files (classes) that I want to show in project as a code behind for entites. Is there a way to do that in VS2008. ...

What are the differences between the different types of Compare in TFS

When you right click on a file and select "Compare...", you get a few different options: Changeset Date Label Latest Version Workspace Version The first 3 are pretty self explanatory. But what is the difference between the latest version and workspace version? 4 seems like you are comparing the code on your machine to the latest vers...

SharePoint 2007 x64 workflow with Visual Studio 2008?

I have development environment with 64-bit SharePoint 2007. I tried to create SharePoint workflow with Visual Studio 2008 and got error message "A 32-bit version of SharePoint Server is not installed. Please install a 32-bit version of SharePoint Server". Is there any way to solve this problem? ...

Visual Studio 6.0 to Visual Studio 2008

When version VC++ 6.0 application is converted to VC++ 2008, there are LINK2001 / LNK2019 linkage errors. But the same code compiled and linked and runs without any problem in VC++ 6.0 How can I resolve this? ...

Unable to start debugging on the Web Server. Visual Studio 2008

Hi, I am running visual studio 2008 on vista business 64-bit. I am getting the following exception when I try to debug against IIS. "Unable to start debugging on the web server. The object identifier does not represent a valid object". IIS and Visual Studio are on the same box. I've tried adding Windows Authentication but no luck (my...

Visual studio debugging shortcut

What key do I use to step into a method in VS2008 debug mode? If I have a method call like this: string s = StepIntoThisMethod(DoNotStepIntoThisOne(i), NotIntoThisEither(j)); If I use F11, I step into the methods in the argument list. I would like to step into StepIntoThisMethod method ...

Does ADO.NET TableAdapters cache stored procedure names in a super secret location

I'm guessing Visual Studio is bugging out on me. I changed the stored procedure the a TableAdapter query uses and now the users keep getting the following error. Procedure or function 'usp_GetEventNotificationSubscribers' expects parameter '@FacilityCode', which was not supplied. Nowhere in the application is 'usp_GetEventNotificationS...

How to integrate FxCop and VS 2008?

If this is duplicated question, please point me to the proper link and I'll delete this question. I know that in VS Team System I can use Code Analysis but I'm using VS Professional. Can you tell me how I can integrate FxCop and Visual Studio? I don't want to add FxCopCmd.exe to my Post-build events to run FxCop with every compilation...

Run Visual Studio 2008 Macro on Pre Build Event

I have some Visual Studio Macros created in visual studio which run from the macro explorer and/or keyboard shortcuts. I would like to run these automatically on pre/post build events but see no option to do so in the project properties. Can anyone tell me if this is possible and, if so, how? Thank you Jason ...