visual-studio-2012

Release configuration not available in VS 2012

非 Y 不嫁゛ 提交于 2019-12-13 02:32:39
问题 I have a web application in 2012, which I suppose converted from 2010 solution. It has only one configuration "Debug" listed in toolbar, configuration manager and publish wizard. Is there any settings to be changed in the web.config or other places? I don't think its a setting at visual studio level because other new projects has both the Debug and Release settings 回答1: The configurations that are available, are part of the solution file. When you open the *.sln file with a text editor, you

Adding Parameters to OleDBConnection

蓝咒 提交于 2019-12-13 02:26:36
问题 I'm executing the below to run a query from an Access DB. Dim search As String = txtUnitCode.Text Dim sText As String = String.Empty Dim aClients As String = My.Settings.ClientDB Dim sConnString As String = "Provider=Microsoft.Jet.OLEDB.4.0;Data source=" & aClients & "" Using cn As New OleDb.OleDbConnection(sConnString) cn.Open() If txtUnitCode.Text = "" Then Exit Sub Dim cmd As New OleDb.OleDbCommand("SELECT Name FROM Units WHERE (Code = " & search & ") ", cn) Dim r As OleDb.OleDbDataReader

VS Express 2012, Windows Phone 8 SDK: The interface is unknown

混江龙づ霸主 提交于 2019-12-13 02:24:30
问题 I can't deploy applications to to my Windows Phone 8 device from Visual Studio Express 2012 anymore. I always get the following two lines in the console: Deployment of application to device failed. The interface is unknown. The emulator also does not work anymore (xde.exe just crashes). All that worked once (Hyper-V is active). All that happened without a change to my app (the same happens with a fresh hello world app). The problem is not my phone, I tested a different phone (even different

Crystal Reports displays #### in numeric fields after upgrade

被刻印的时光 ゝ 提交于 2019-12-13 02:22:43
问题 I upgraded a Visual Studio solution containing Crystal Report files. Since the upgrade, the reports are displaying cross hatches (also called number signs: #####) when fields are too narrow to display their values. It was not doing that before. Is there any easy solution? I have 9 reports, and although I tested them all, and fixed the width of the fields that appeared to be too narrow, when I use different data sets, I always find new cases where the field is too narrow to display the value.

Displaying multiple image on single window not working properly (C++ VS12)

穿精又带淫゛_ 提交于 2019-12-13 02:20:49
问题 I have tried this code I gotten here. Its for displaying multiple images on a single window for C++. I have included the opencv 3.0 library on the program as well. Below is the code. I am trying to load 2 images but only the first one (1.jpg) appears but when i put image2 to be equal to cv::imread("1.jpg"); two images of 1.jpg appears. I am really new to this and I dont understand where i am going wrong here. I hope someone can help me. Thank you. int main(int argc, char *argv[]) { // read an

Template dependent inherited typedefs and MSVC

早过忘川 提交于 2019-12-13 02:11:41
问题 A few weeks ago I wrote a trait class for 2d entities like this: template<typename T> struct traits_2d { typedef T coordinates_type; typedef vector_2d<T> position_type; typedef vector_2d<T> direction_type; typedef vector_2d<T> size_type; }; The trait class was used as follows: template<typename T> struct aabb_2d : public traits_2d<T> { position_type origin; size_type size; }; The Standard says that template dependent names must be fully qualified, so this should not compile. Of course GCC

Profiling shows slow performance when explicitly loading related entities

烈酒焚心 提交于 2019-12-13 02:06:18
问题 I have tried to profile my wpf application concentrating on non-visual parts that do some calculations and evaluations, I have used Visual Studio 2012 bulit in profiler. There is quite a lot of code (tens of thousands of lines) in that application, so I was surprised that it showed 46.3% time spent on a single line: db.Entry(qzv.ZkouskaVzorku).Collection(p => p.VyhodnoceniZkouskies).Load(); This line should just explicitly load related entities as specified here. I have checked this line

SQL Server 2012 SSDT “The project could not be deployed to … A connection cannot be made …”

喜夏-厌秋 提交于 2019-12-13 01:43:22
问题 I'm a newbie to SQL Server 2012. Here is my condition. I have a running SQL Server 2012 Business Intelligence SP1. The problem is I cannot deploy a project to my SSAS from another computer. The error is: The project could not be deployed to the 'DATABASE-SERVER\MSSQLSERVER' server because of the following connectivity problems : A connection cannot be made to redirector. Ensure that 'SQL Browser' service is running. To verify or update the name of the target server, right-click on the project

Application can open .mdf with no log file but Management Studio can not attach

非 Y 不嫁゛ 提交于 2019-12-13 01:41:43
问题 I installed the DevExpress demo C:\Users\Public\Documents\DevExpress Demos 15.2\DevExtreme\DXHotels The demo came with HotelDB.mdf in the App_Data folder. Out of curiosity I attempted to open the HotelDB.mdf by attempting to attach it using SQL Server 2012 Express Management Studio However I got an error about a missing log file when I did this. When I ran the application from the solution the log file created and I was able to subsequently attach using SQL Server. Why was the application

How to use non-advertised shortcut on product output in InstallShield Limited Edition

≯℡__Kan透↙ 提交于 2019-12-13 01:40:22
问题 I have imported a Visual Studio setup project (MSI / vdproj) into InstallShield Limited Edition (ISLE) and built a single setup.exe installer from it. In the "Shortcuts / Folders" page under "Configure the Target System" it shows that the shortcuts to my other projects' "Primary Output" are all Advertised shortcuts. I need non-advertised shortcuts. I can right-click on the shortcut's containing folder and choose New Shortcut and point to an EXE that is not a project output and it will create