Rockford Lhotka's Q&A profile
Windows Search Technologies InvalidCast Exception - WDS
Hi, I am facing the same issue(InvalidCase Exception in WDS) as on link mentioned below. I tried Impersonation = True and thread.ApartmentState = ApartmentState.STA but both of the things didn't worked in my case. I also tried ASPCompat = true but it seems to be also not working.. I am getting the exception as-- Run-time exception thrown : System.InvalidCastException - QueryInterface for interface Microsoft.Windows.DesktopSearch.Query.ISearchDesktop failed. What to do now please help me.. Thread: MSDN Forums Windows Search Technologies Windows Desktop Search Development WDSQuery: 'System.InvalidCastException' throwed when "ExecuteQuery" invoked remotely Link: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=1 ...Show All
.NET Development Errors Ocured
Dear All, When I execute my application i got the error.Can Any Body Solve the Issue Error Is: Microsoft.ReportingServices.Diagnostics.Utilities.ReportServerDatabaseUnavailableException Come on Saroj, you really need to give a little more information than that. How does your application work with RS Is it locally Connecting to a report server Have you installed and configured all the right components ...Show All
Game Technologies: DirectX, XNA, XACT, etc. What I've done so far
I've mainly been working on two games an asteroids clone and a 2D pacman clone. The pacman clone will probably be done tomorrow. Right now I have movement along 66 waypoints that are loaded from a file.Pacman can eat the pellets, but there is no sound or score displayed. The ghosts are just drawn to show what they will look like. I'm not an artist so don't laugh too hard at my artwork. I spent a lot of my time getting the assets together. http://adamwlarson.com/samples/PacmanScreen.JPG ...Show All
Windows Forms Dynamic Filling of TextBox AutoComplete not working
Hi guys, i would like to fill the textbox autocomplete stringcollection "on the fly" while typing. i don't want to fill the collection while initializing, 'cause it's too much data: the sql server-table has about 100.000+ rows. the filling takes too much time and the "autocomplete-popup-find-something-box" itself is getting too slow, too. my configuration: .NET-Framework: 2.0.50727, System.Windows.Forms.TextBox TextBox-Properties: AutoCompleteSource: CustomSource; AutoCompleteMode: Suggest i tried several different things... 1. i did put this code in the “TextChanged”-event, but i think it's 'too late' there: private void textTiteUltTest_TextChanged( object sender, EventArgs e) {   ...Show All
SQL Server ReportItemCollection
I've asked this question in a few different forums and so far I've had not response, I hope I have some better luck here. I'm writing a custom rendering control to render very basic reports in WML. I'm stumbling at the first hurdle, though. I've added references to "Microsoft.ReportingServices.Interfaces" in my project and "Microsoft.ReportingServices.ProcessingCore" and I've added 'using' directives for "Microsoft.ReportingServices.Interfaces" and "Microsoft.ReportingServices.ReportRendering" in the code page. Now, according to the MSDN library, the Report object has a property called Body which returns the body of the report as a Rectangle object. A Rectangle object has a property called Repo ...Show All
Visual C++ Which way should I go? C++ or C#
I'm about to start developing a windows application which is currently in VB6 using an Access database. Which route should I take language wise, c++ or c# and what's the difference Native choice for database Windows application is one of .NET languages - C# or VB .NET. C++ doesn't have high level database access functions and doesn't give any advantage for deleloping such kind of programs. ...Show All
SQL Server Red X of death
I receive the Red X of death when I'm working with SQL Server 2005 community edition. Microsoft Money is causing this to happen. Whenever I move my mouse over an entry in Microsoft Money, I get an OutOfMemoryException and then all the windows in SQL Server 2005 community edition get a big red X. SQL Server 2005 community edition at that point is either not usable or it bombs on it's own. I wrote a budgeting application for my family's use and I was using Access with no problems, but then I upgraded. It's important for me to run queries while using Microsoft Money. Anyway, I'm looking for suggestions to keep this from happening. Here are the details. OS: Windows XP with Service Pack II (all patches installed) Microsoft Money 2 ...Show All
SQL Server Display a KPI need the same Dimension on its Value and Target?
I mean, I have a KPI, it's value is set to a measure of a measuregroup based on a facttable A. and it's Target is set to a measure of another measuregroup based on another facttable B. Now I want to display the KPI, with a given dimension's slice. My question is, is it needed that the dimension I chose must be shared by both the measures of KPI's Value and Target For an example, If I dispaly the KPI with the Promotion Dimention, and the Promotion Dimention has a relation to the KPI's Value's related measure(There's a PromotionKey column in facttable A; ), but it has no relation to the KPI's Target's related measure(There's NOT a PromotionKey column in facttable B). Could I do so Thanks! that's what i am looking for! Th ...Show All
Visual Studio Express Editions Is this function ok
Hello, Is this the most efficient way to write the function below Regards, Ken Friend Class form1 Dim A As Boolean Public Function Inpt_State( ByVal A1) If A = True Then A = False Return A Exit Function End If If A = False Then A = True Return A Exit Function End If Return A End Function Public Sub PictureBox1_MouseDown( ByVal sender As Object , ByVal e As System.Windows.Forms.MouseEventArgs) Handles PictureBox1.MouseDown Dim x As Integer = e.X Dim y As Integer = e.Y If x > 0 And x < 20 An ...Show All
.NET Development Just not understanding the transition from old AxMSWinsockLib to .Net
Ok, I'm just not getting it...I'm totally missing something. The 101 examples haven't helped me at all. I've got an app that was written in VB6. I used AxMSWinsockLib My current load looks like this: udpSocket.Bind(LocalPort) Then, I have an event driven sub: Private Sub udpSocket_DataArrival( ByVal eventSender As System.Object, ByVal eventArgs As AxMSWinsockLib.DMSWinsockControlEvents_DataArrivalEvent) Handles udpSocket.DataArrival Dim Stn As Short If eventArgs.bytesTotal = 1 Then Exit Sub End If Do While eventArgs.bytesTotal > 0 udpSocket.GetData(Packet) [...snip] Here's what I don't understand. How do I go from udpsocket.bind to .Net where ther ...Show All
SQL Server Need to prevent database assembly creation
On certain servers, I don't want developers to be able to create assemblies. Unfortunately, the command sp_configure 'clr enabled', 0 only prevents the CLR-type from being executed, not its creation . I am unable to rename nor put triggers on sys.assemblies, sys.assembly_modules, sys.assembly_files, and sys.assembly_references . I would prefer the user know the boundaries well before implementation. Has anyone succeeded at this Thanks, that helped quite a bit! CREATE TRIGGER trg_CLR_Alert ON DATABASE FOR CREATE_ASSEMBLY, ALTER_ASSEMBLY AS BEGIN PRINT 'Assembly implementation is not supported on this machine.' ROLLBACK END I will p ...Show All
.NET Development is it possible to interrupt fill method of the data adapter?
Hi all, is it possible to interrupt fill method of the data adapter Case : Suppose while filling the dataset using data adapter , say i have a button which says "Pause Loading" , it will pause the data loading and whatever data is loaded is saved into the dataset again i have resume loading button which will again rsume loading of the data from the point where adapter has been interrupted is it possible to do in .net without using looping on the dataset becoz i have a lot of data to work with thanks Saurabh There are methods in which you can sequential read data and stop and resume...but I'm not sure you are going to be able to do that with the fill method of the ad ...Show All
Visual Studio 2008 (Pre-release) Returnvalue from server is null
I have a problem when making a call from a client to the server. The call is supposed to return a custom object for the client to do some work on, but the object doesnt seem to reach the client. Here's my setup: Service Contract: [ ServiceContract ] public interface IClientControllerServiceContract { [ OperationContract ] TestStructureElement ClientReady(); .... } Contract Implementation: [ ServiceBehavior (InstanceContextMode= InstanceContextMode .PerSession,ConcurrencyMode= ConcurrencyMode .Multiple)] public class ClientControllerService : IClientControllerServiceContract ..................... public TestStructureElement ClientReady() { List <System. Ty ...Show All
Visual Basic Array of Buttons
I want to create rows and columns of buttons in my code using an array. If anyone know how to do this please respond. Private Sub ButtonClickHandler( ByVal sender As Object , ByVal e As EventArgs) Dim btn As Button btn = CType (sender, Button) If btn.Text = "CANCEL" Then end 'the test could also be for the Button.Name or Button.Tag data End If End Sub One of the buttons that is displayed automatically is a button with the text cancel on it. I want that when someone press that button it ends the program or do what ever else i want it to do, for ex go back to a previous screen. Any thoughts Thanks!! ...Show All
Smart Device Development Initiate synchronization from device
I have written a C# application for Windows CE, VS2005. What I want to do is to transfer files from the Device to the Desktop PC. It has to be done exactly when I want it to, and I need to know that the sync went alright before my app continue to run. I have looked at "repllog.exe /remote" but it is dependant on the customer clicking the sync button on that dialog window, and not everywhere else (like disconnect). Also, it is one extra step to do for the customer, which should have been done automatically. I also tried importing the rapi.dll from the application on the device like this: [ DllImport ( "rapi.dll" )] public static extern void CeRapiInit(); When I call the function CeRapiInit at ...Show All
