visual-studio-2008

Could not load file or assembly 'Microsoft.JScript… or one of its dependencies… what gives?

百般思念 提交于 2019-12-13 03:58:38
问题 What does this mean? This only happens on my local IIS where the site used to run fine no problem, it works fine on our DEV/QA servers but on my local machine I'm getting this, what gives? I had no knowledge of us using Microsoft.JScript ever, and doing a search of the project turns up nothing... Could not load file or assembly 'Microsoft.JScript, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The module was expected to contain an assembly

Visual Studio 2005 Macros stop working when Visual Studio 2008 is installed

限于喜欢 提交于 2019-12-13 03:54:55
问题 I have a number of macros written for Visual Studio 2005, but they have since stopped working once I installed Visual Studio 2008 on my computer. No error is returned by the macro when I try and run it, and the environment merely shows the hourglass for a second and then returns to the normal cursor. Currently uninstalling one or the other is not possible, and I am wondering if there is anyway to get the macros to work again? 回答1: You may need to install (reinstall) VS 2005 SP1, since a

Why is “The referenced component 'X' could not be found.” considered a warning?

余生颓废 提交于 2019-12-13 03:47:42
问题 I wonder, why the hell... did the VS team consider that NOT finding a project reference as a non crucial thing? The referenced component 'X' could not be found. should be considered an error... and nothing else. Is there a way (without turning 'Treat all warnings as errors' on) to get this warning as an error in VS2008? 回答1: That warning comes from the project system, not the compiler. The project system doesn't know whether or not the reference will actually be needed when the code is

c# excel 2007 print preview ribbon

眉间皱痕 提交于 2019-12-13 03:47:20
问题 is it possible from c# to add some groups, buttons,... to excel-2007's print preview ribbon... why? i wanted to put some images on that ribbon so that user by selecting the image will be able to put it on a sheet (where ever on that sheet by dragging it) and print it with that sheet... many thanks! 回答1: You do this the same way you add a group to any existing excel ribbon tab. Create a VSTO add-in project and add a Ribbon XML class. Inside the ribbon.xml file, this will give you a group with

How to Insert contacts into Outlook - C# 3.0

让人想犯罪 __ 提交于 2019-12-13 03:45:50
问题 Title of the question explains what I want to acheive. I know it can be done using Microsoft OUtlook object library 12.0 . But, I am looking for a managed option, or an XML import into outlook. Since, number of contacts can be in thousands. So, I am looking forward to the best approach. Any open/closed source library that you know. Please let me know. 回答1: You can use Redemption and its RDO family of objects - it directly uses Extended MAPI (the same API used internally by Outlook). 来源: https

Visual Studio setup and deployment: create package with optional components?

ぃ、小莉子 提交于 2019-12-13 03:45:15
问题 Let's say, for example, my application supports Epson printers and Canon printers. I would like to have an option during installation, maybe radio buttons or, better, checkboxes (to have an option to choose both) that would say 'Install Epson drivers' and 'Install Canon drivers'. Then, based on user selection, the setup package would install either only Epson drivers, or only Canon drivers, or both. I guess what I want can also be described as having several prerequisites, but make them

Visual Studio 2008 (C++) additional directories for debugging?

扶醉桌前 提交于 2019-12-13 03:43:17
问题 In prior versions of Visual Studio one could specify paths for DLL files when debugging an application. I do not see a way to do this in version (2008). Is this due to the move toward deployment of applications with all DLL files, etc. in the application's directory(ies)? Am I missing something, or is there no way to do this? It was in Visual C++ 6. I think it was menu Tools -> Options -> Directories -> executable files. Perhaps now this was not what I thought it was - this may be the same as

Web site reports xxx does not exist in current context after upgrade to VS2008 Sp1

喜欢而已 提交于 2019-12-13 03:39:56
问题 I just upgraded to VS2008 Sp1, and I have a weird issue going on. I get a lot of errors from my code behind pages indicating that a control doesn't exist in the current context and I am also getting an errors that the pages do not have methods. It seems like ide is trying to compile the c# code without compiling the aspx code. The site runs fine via both IIS and Visual Web Developer, and in fact when I open up the code behind page, all the errors go away. Anyone have any idea why VS2008 SP1

How can I copy the embedded resource into output directory as well?

倾然丶 夕夏残阳落幕 提交于 2019-12-13 03:33:43
问题 I have a rules file for workflow within my solution and its properties are Build Action = Embedded Resource, Copy to Output Directory = Copy always I can't change the build action to Content, otherwise the workflow compilation won't work. However, I need the file to be deployed to the output folder and it seems not to work. Is there anything I'm missing ? 回答1: If the file is set as an embedded resource, it should be embedded directly into the EXE as far as I know. Regardless, you can add a

LINK1104 cannot open boost static library using visual studio 2008 command prompt

故事扮演 提交于 2019-12-13 03:10:32
问题 I'm trying to compile a cpp file which uses static boost libraries. I'm using the visual studio 2008 command prompt as I have not set up a VS project file. The command I'm using is (run from the folder containing my source code): cl /EHsc /I "C:\Program Files\boost\boost_1_53_0" Client.cpp The error is: LINK: fatal error LNK1104: cannot open file 'libboost_system-vc90-mt-s-1_53.lib' However, the file 'libboost_system-vc90-mt-s-1_53.lib' can be found in "C:\Program Files\boost\boost_1_53_0