aaryan's Q&A profile
SQL Server Confusing timeout; bug in deleting cubes and dimensions?
Hi, I got this error when I deploy a mining model. -- Error 1 OLE DB error: OLE DB or ODBC error: The query has been canceled because the estimated cost of this query (628) exceeds the configured threshold of 300. Contact the system administrator.; 42000. 0 0 Error 2 Errors in the OLAP storage engine: An error occurred while the dimension, with the ID of 'Revenue Labeled Prod ~MC-LPROD', Name of 'Revenue Labeled Prod ~MC-LPROD' was being processed. 0 0 -- I don't understand why this happens. Previously I've created one cube and 4 dimensions. I got the same error before. I think the cube was the culprit so I removed the cube and dimensions. After removing them, I build the project. Successful. But fail again when processing ...Show All
.NET Development Connected to the network or not?
Hi all, I want to check whether computer is connected to the network or not. I use a boolean method IsNetworkConnected() as shown below. I wonder if this method is OK, if not can you suggest any method public bool IsNetworkConnected() { IPAddress IPAd; ipHostInfo = Dns.GetHostEntry(Dns.GetHostName()); IPAd = ipHostInfo.AddressList[0]; if (IPAd.ToString() == "127.0.0.1") { return false; } else { return true; } } This this link . It will show you how to list the compute ...Show All
Visual Studio 2008 (Pre-release) Memory and GDI Release problem.
Dear all: When I new a Image to the application, the Memory and GDI of the application will increase. What can I do to release the Image and decrease the Memory and GDI Sample Code: BitmapImage bi = new BitmapImage(); bi.BeginInit(); bi.CacheOption = BitmapCacheOption.OnDemand; bi.CreateOptions = BitmapCreateOptions.DelayCreation; bi.DecodePixelHeight = 64; bi.DecodePixelWidth = 64; bi.UriSource = new Uri("D:\\PIC\\dog\\p0.jpg"); bi.EndInit(); BitmapSource BTS = bi; Image img = new Image(); img.Width = 100; img.Height = 100; img.Source = BTS; Best regard. ...Show All
Windows Forms How to improve the drawing process of my panels?
Hi, I have some panels with a lot of labels and buttons. Each time I bring a panel to the front, it takes several seconds to be drawn. This is very annoying, since while it is being drawn lower layers, sometimes even the desktop, shine through the panel background in the label and button locations. Are there ways to either: - speed up the drawing of a panel and all its controls; - prevent lower layers from shining through the panel background while the controls are drawn; - draw the entire panel while it is invisible and then show it all at once Will things improve if I don't use controls at all but write/draw directly on the panels (and then identify the 'sender' of an event by checking the location o ...Show All
Software Development for Windows Vista failed to use web service from windows form inside web app
Hi, I have encountered this problem with Vista ultimate and IE7 in protected mode. I have a web application which exposes a windows form (written in .net 2.0) through an object element in a web app (generated using javascript rather than a html tag). The windows form is a web service client. When the web service is called the user is asked to authorise the use of CSC.exe (twice); immediately after this an error message is presented which says that 2 dlls can not be found. Consequently the windows component is unable to display data for the user and the application fails on vista/ie7 with protected mode. If protected mode is turned off for the web site then this problem does not occurr. The stack trace for the error is below. Q ...Show All
Visual Basic Inserting a line break in a literal string
I am just getting started with VB and I am sort of used to QuickBasic, and I wanted to open a text file such as "C:/File.txt" and add to it. I got the file open and all of its contents into a string, but I can't add line breaks to it. The line breaks display fine in a MsgBox command but I can't insert the line break string (which looks like two vertical lines) into a literal string. If I try to paste it into the VB Code window, it actually adds a line break just as if I had pressed Enter, and the symbols look different than the Shift + \ line ( | ). The program looks sort of like this: FileContents = My.Computer.FileSystem.ReadAllText("C:\File.txt") Now, a Sub for a button NewData = TextBox1.Text FileContents = FileCont ...Show All
Visual Studio When buildign, VS locks its own build products
Hi, Using VS 2005 c#. When compiling a multi project solution, we frequently encounter a situation in which VS reports build failure due to assemblies being inaccessible. It actually fails on a copy attempt ( not originating from a post-build command). When attempting to manually delete these files a failure occurs. Process explorer reports devenv.exe to be the one with open handles on the files. Restarting VS solves the problem. I'm not sure this question should go in this forum, but I couldn't find a more fitting forum. Thanks This property needs to be added to the project file that contains a .resx file that contains a serialized instance of a type that is defined in the assembly that you are seeing getting locked. If that ...Show All
Visual Studio Tools for Office Calculating Row height?
Hi all, I need to deterimine the height of a Microsoft.Office.Interop.Word.Row that has a WdRowHeightRule of wdRowHeightAuto. The reason is I temporarely change the height rule to Exactly in order to display an inline shape in one of the cells. I change the row height rule in the row so as not to change the overall height of the row when the image is displayed. However, when I change the rule from Auto to Exactly the row's height will default to a height that is smaller than the orignal line, if the row has a cell with multiple lines of text. Another strange things that occurs occasionally althought "never on my machine" :) is that when the row height rule is changed the row will become smaller then the original row even if no c ...Show All
SQL Server Format / Alignment
Does anyone else have this issue When making a report with VS2005, things get spaced out wierd and dropped down when deployed to the web I can't get things like images to position properly. Does it have anything to do with the fact that I am using a Matrix For example, I create an image and embed it, I have it all the way to the left of the form and when deployed it is more towards the middle of the page Very frustrating, just wondering if anyone has any tips/solutions. I figured out a way around it in case anyone has the same problem. Keep the Matrix in the body and create a header and footer to put all the other stuff in. Everything is fine now. ...Show All
Smart Device Development Low latency audio in windows CE 5.0
Hi, I am building an application where I record sound, filter it, and plays it. I have implemented this using the standard waveform API but gets a latency of around 200 ms. The buffers are only 16 ms wide and computations are completed in much smaller time, so this must be a delay in the waveform API. I have searched around and found that technologies such as ASIO or directsound might help, but neither are supported under CE 5.0. How can I achieve a lower latency Thx, Andreas ...Show All
Visual Studio Express Editions User Control
The small project that I've been working on is now finished and I'm rather pleased with it. Thanks to the help on this forum it works just as I wanted it to, so much so that I thought it I would have it as a control so that I can use it in future projects. Looking back at a my previous post on how to create a user control I got stuck in and up to this point all well, however, I have hit a couple of sticking points, quite a bit of the code that I pasted in to the user control had squiggles which, after following the error correction tips I've sorted but there are two where no tip is available and these are the two that I am asking for help with. 1) Label1.BackColor = Color .FromKnownColor(cmbSelected.SelectedIndex + 28) Name 'Color' is not ...Show All
Visual C++ ATL and R6034?
Hello everyone, I'm building an application with VS2K5. I am using MFC and I would like to use some WTL classes as well. My problem is that when I include the WTL header files (yes, if I only include these files, this problem occurs): #include <atlbase.h> #include <atlapp.h> #include <atlsplit.h> the application will no longer run, as it fails out with an R6034 (application attempted to load the C runtime incorrectly). As far as I know, this error is related to the embedded manifest of the application. If I open the PE with reshacker, I can plainly see that it now has a dependency for ATL80.DLL (after turning on "Dynamic link to ATL" in the settings): <assemblyIdentity type="win32" name="Micros ...Show All
SQL Server SQL Server performance being a problem.
I'm porting over a C# web application from MySQL to SQL Server, and so far I've gotten it up and running, but the performance is just terrible! I'm using the following script to connect to the database... <source> string TheConnectionString = "Server=PETER\\SQLEXPRESS;Database=Frostwinds;Trusted_Connection=Yes;"; MySQLConnection = new SqlConnection(TheConnectionString); MySQLConnection.Open();</source> .. and takes seconds to complete. Any ideas why performance is soo bad SNMSDN wrote: I guess maybe it is the provider, or app after all... That's great; play on the safe side. Some time next year when someone actually posts a useful comment that solves this pr ...Show All
Visual C++ Need help! Not able to get UdpClient BeginReceive work in VC++/Could this be a complier bug!?
Hi, I need an urgent help. I am developing a socket application in VC++ that uses asynchronous connnection. After doing search on google, I found the following link http://msdn2.microsoft.com/en-us/library/system.net.sockets.udpclient ... First of all, thanks for microsoft team for this post. However I have couple questions concerning the C++ code in the link. Before posting my questions, first let me show you how I did set up a VS2005 C++ project to test this code. To create a test project, I do following File->New->Project->(Other Languages)->Visaul C++->CLR->Class Library Fill in solution name and put in the following code. ----------------------------------------------- TestAsynCallback.h ----- ...Show All
Visual Studio 2008 (Pre-release) Smart client callback
Hi there, I'm just learning wcf technolgy and it should be great. However, i have a question about how to implement callback. I have a smart client and a service under iis. My client call it's method and it's ok. I want to do something more complex now. I want to notify my smart client when a external event coming. So I would like to have a service with a method that i can invoke and the service method implementation will able to notify one or more smart client. Is it possible to do this Thanks a lot for this help Best regards, In other words i want to have this architecture : Smart client connected to a windows service hosted or service hosted on iis. TIBCO notify a service and the service notify ...Show All
