visual-studio-2010

The 'Microsoft.ACE.OLEDB.12.0' provider is not registered on the local machine error in windows server

假如想象 提交于 2020-01-05 05:46:10
问题 I am using a excel reader to read contents from the excel, string connectionString = "Provider=Microsoft.ACE.OLEDB.12.0; Data Source=" + filePath + ";Extended Properties=Excel 12.0;"; System.Data.OleDb.OleDbConnection ExcelConnection = new System.Data.OleDb.OleDbConnection(connectionString); I'm working in VS2010 on a windows 7 ultimate x64 installation. it works fine in my local machine when I run with VS. When I upload the website in server I get the following error. What should I do here,

How to create Oracle database project using Visual studio 2010?

寵の児 提交于 2020-01-05 05:45:11
问题 All, I have Oracle database project in VS2008. Now i upgraded my project to VS2010.While trying to create a database project , i can see i can't select any other Data source other than SQL Server. But in VS2008 i have option to select different data source. I read about Toad Extension for Visual Studio and but its also not supported anymore. http://www.toadworld.com/Blogs/tabid/67/EntryId/519/Creating-an-Oracle-Project-with-Toad-Extension-for-Visual-Studio.aspx http://toadworld.com/Blogs

Visual C++ 10.0 issue when installing Python module; cl.exe failed with exit status 2 (h5py)

前提是你 提交于 2020-01-05 05:36:17
问题 I've been at this for the last 5 hours or so. I've reinstalled a bunch, but essentially I'm trying to install the Python module h5py on a Windows 8.1 machine running Python 3.4.1. The stack is as follows: Collecting h5py Using cached h5py-2.6.0.tar.gz Requirement already satisfied (use --upgrade to upgrade): numpy>=1.6.1 in c:\python34\lib\site-packages (from h5py) Requirement already satisfied (use --upgrade to upgrade): six in c:\python34\lib\site-packages (from h5py) Building wheels for

Already Installed SQL Server - How to run click one application with two versions of sql server

不打扰是莪最后的温柔 提交于 2020-01-05 05:25:26
问题 I am new to database and deploying applications using .NET I have developed an application and created its click one application. However it's working fine on my system, but when I install it on another system it says: Prerequisite check for system component SQL Server 2008 Express failed with the following error message: SQL Server 2008 Express Service Pack 1 (x64) cannot upgrade the existing instance of SQL Server 2005 Express (x64 WoW) named 'SQLEXPRESS'. Uninstall this instance of SQL

developing site in vs2010 but changed to local IIS and prompts

你说的曾经没有我的故事 提交于 2020-01-05 05:24:07
问题 If I run a 2010 visual studio C# web project using the "Use Visual Studio Development Server" in the project settings my app opens up fine and the CSS renders and all images render. If I change the property of the project to use the Local IIS Web Server and I try to run the project. I get a prompt almost about as many for how many images / css files I have linked. If i keep clicking cancel the web page appears but all the images are missing and the css file is not rendered (formatting looks

The type or namespace name 'ComponentModel' does not exist in the namespace after adding an assembly reference

烈酒焚心 提交于 2020-01-05 04:34:09
问题 I have a strange problem that's proving difficult to diagnose. After adding an Assembly reference that contains the namespace Matrix.System to a Windows Service project, I'm now getting this error when compiling the service: The type or namespace name 'ComponentModel' does not exist in the namespace 'Matrix.System' The type or namespace name 'ServiceProcess' does not exist in the namespace 'Matrix.System' The errors are generated in the service though: private System.ComponentModel.IContainer

OpenGL and VS2010 unresolved external

微笑、不失礼 提交于 2020-01-05 04:23:05
问题 I want to use GLUT to simplify my code and work. I'm using windows 7 (64 bit) and Visual Studio 2010. I did everything like in this tutorial and still can't compile my code... I get these errors: Error 2 error LNK1120: 1 unresolved externals <path> Error 1 error LNK2019: unresolved external symbol _WinMain@16 referenced in function ___tmainCRTStartuL The code I use: #include <GL/glew.h> #include <GL/glut.h> void display (void) { glClearColor(1.0f, 0.0f, 0.0f, 1.0f); glClear(GL_COLOR_BUFFER

Load a bitmap to a PictureBox control

蓝咒 提交于 2020-01-05 04:02:28
问题 This is not working for some reason. I'm not sure why: objBitmap = new Bitmap(Resource1.im); Stream stream; objBitmap.Save(stream, ImageFormat.Bmp); this.pictureBox2.Image = Image.FromStream(stream); objBitmap.Dispose(); Basically, I need to show an image in a PictureBox control and I am not sure how to do that. 回答1: pictureBox2.Image = objBitmap; 回答2: Well, it ought to go kaboom on the Save() method, the stream was never initialized. Not sure what the point of doing this was. There might be

Changing images in the picturebox to sepia

不想你离开。 提交于 2020-01-05 03:55:11
问题 I have a picturebox and want to change the image color to sepia i know what to do so far in terms of setting it to grayscale then filtering it but the final part is my downfall can someone help set this to sepia for me by suggesting what i should do from the comments that i have provided thanks a lot 回答1: Your code can be boiled down to: private void button1_Click(object sender, EventArgs e) { Bitmap sepiaEffect = (Bitmap)pictureBox.Image.Clone(); for (int yCoordinate = 0; yCoordinate <

UI Automation: How to change value of a horizontal scrollbar AutomationElement

强颜欢笑 提交于 2020-01-05 03:52:07
问题 I am trying to change the value of a horizontal scrollbar from -1 to -2. I am able to get access to it.. but next i have to change its value.. AutomationElement _sideBar = _ClickButtonElement.FindFirst(TreeScope.Descendants, new PropertyCondition(AutomationElement.ClassNameProperty, "WindowsForms10.SCROLLBAR.app.0.378734a")); _clickButtonElement is the AutomationElement of the parent window of the scrollbar. 回答1: Scrollbars usually support RangeValuePattern. Use something like: