Vhradice's Q&A profile
SQL Server Yet another "Cannot create a connection to data source" error
I am experiencing the same problem that many, many other people have experienced. The dreaded An error has occurred during report processing. (rsProcessingAborted) Cannot create a connection to data source 'TradingDb'. (rsErrorOpeningConnection) For more information about this error navigate to the report server on the local server machine, or enable remote errors error. I have read through the suggest solutions and the number one point seems to be that when using Integrated Security you need to enable Kerberos Impersonation in the domain. But this makes no sense to me and here is why. * If I launch my browser and connect to the report server it does not work yet if I remote in to report server (using the same lo ...Show All
.NET Development What is the connection string to write for importing mixed data from excel sheet to data grid
Please help me about this issue, so that I ll be glad to u.I used IMEX=1.but it is working for some limited rows Hi Paul, IMEX=1 is working fine if column of excel sheet contains as below 1 2 3 4 5 6 7 8 a b c d here imported successfully bcz upto 8 rows ,only numeric value.But problem occurs when only numeric values present in more than 8 rows as below 1 2 3 4 5 6 7 8 9 10 a b c d Here 1-10 are imported successfully but a-d are ignored.This problem occurs bcz the default machine value of registry key TypeGuessrows=8.If i change this value to 0 means no problem.But my client wants to not to change the registry key value. Please see my sample code ...Show All
Visual Studio Express Editions problem with \ in string c#
Hi all, we have product developed in non microsoft technology which invode a c# exe passing the required parameter as command line argument. I am getting a file path say "c:\test.rpt" as commnad line argument when I receive it in c# it is appending @ at the beginning of the string like @"c:\test.rpt" . What could be the reason and how to resolve it. Thanks Girish I'll move this to the C# forum for you. Are you sure this is the case As a string literal, you'd show that string in C# code as you've rendered it, or with a \\, @ in front of the quotes means that \ means \ and not an escape character. So, are you seeing this in a debugger, or are you writing it to a f ...Show All
.NET Development Serial I/O Problem
I have an issue regarding the following code extract:- string s = string .Empty; if (_Port.BytesToRead > 0) { byte [] read = new byte [_Port.BytesToRead]; int bytesRead = _Port.Read(read, 0, _Port.BytesToRead); // Sometimes get an exception s = System.Text. ASCIIEncoding .ASCII.GetString(read, 0, bytesRead); } The above code is taken from a real-time application that interacts with a GSM Modem. The application uses the Serial Port class in .NET 2.0. Occassionally though I get an exception on the second line in the if block. The problem is that between that statement and the previous one, the value of BytesToRead changes, so the size of the byte array reserved is no longer adequate. ...Show All
Visual C# input data to website
Ok right now I have to configure routers manually by inserting the exact same data into a router's configuration panel (website on router) then swap out the configured router with one that needs the exact same setup and redo this process over and over. I would like to write an application that fills in all the needed boxes,selects values from drop down menu's and fills in any other information and presses the save & restart button for me is this possible I initially though about trying to find the file on the router that its writing to thinking making its one config file maybe if thats the case I could just write to the file but im not entirely sure. you wont be able to write to the file. its highly ...Show All
Visual Studio Express Editions WinForms: skinning non-client areas
Hi, I found this great free skinnable dll for VB6 and was wondering if this would work with VB2005e. Free skins are also available. As I don't know enough yet, could you gurus please help check it out and let me know if it will fail http://www.vbaccelerator.com/home/VB/Code/Controls/Skins/article.asp My thought would be to try it - if its a COM DLL then potentially it may work - but you have the article and the DLL. And I'm pretty sure you'd do an damage to your system try to follow the article. If you run into any issues such as a property not being there then you can search, ask. Something like in VB6 hwnd property on a form is now handle property in a .NET Windows form. These things we ...Show All
Visual Studio 2008 (Pre-release) WPF Bug or What????
While debugging throught WPF (NO COM) I am running into this again and again. I had posted this earlier too but nobody responded back. Just wanted to know where exactly is COM coming into play. Since we are aiming for production release of our app too, wanna make sure where exactly the things are going sour. Managed Debugging Assistant 'ContextSwitchDeadlock' has detected a problem in 'C:\XYZ..\bin\Debug\NoGen.Sandbox.WPF.vshost.exe'. Additional Information: The CLR has been unable to transition from COM context 0x1a1598 to COM context 0x1a1708 for 60 seconds. The thread that owns the destination context/apartment is most likely either doing a non pumping wait or processing a very long running operation without pumping Windows m ...Show All
Visual Studio Crystal Reports: How to make Parameter fields optional
Hi, Im a newbie at both C# and CR10. Im converting a M/F report to CR10, which actually contained 3 different layouts and selection criteria. I've got the selection criteria working except it needs to be optional. How do I make the CR parm fields optional thxs, drc i created a parm field that i loaded from a column w/ discrete/multiple values that the user may select from to filter the report. they should also be able to skip this drop down and include all rows. the dialog box requires an entry in this field. "Please enter a string". i tried modifying the record selection formula but w/no success. thxs for asking drc ...Show All
Visual Basic counting letters in a textbox?
Is it possible to count the number of letters in a textbox OR label e.g >textbox1.text = "thesister" would return a value of 9 letters is this possible You could use this method. It would probably be faster with much larger strings. Imports System.Text.RegularExpressions ' input text Dim inputTxt As String = "_() letter _+=" Dim totalLetters As Integer = 0 'fetch the total number of letters - 6 in this case... totalLetters = Regex.Matches(inputTxt, "[a-zA-Z]" ).Count ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Creating Effect Classes From Pipeline
Hey, I have a BasicPaletteEffect, which is like basiceffect, except it also contains a matrix palette. In my processor, if mesh has bone index and vertex weight channels, and if it doesn't already have an external reference to another effect, I want to set it's effect to an instance of BasicPaletteEffect (inside the content pipeline). Is there any way I can do this Thanks. Alright, thanks. I had figured out that I can just load the file, but was using the filename attached to the external reference. effect.Texture = input.ReadExternalReference< Texture2D >(); Is a neat trick though. ...Show All
Software Development for Windows Vista New Sample: Simple STS
I've posted another sample, this time a Simple STS! With that you should be able to do complete end-to-end scenario testing with CardSpace. It's pretty darn lightweight, and doesn't provide a whole lot of anything, but it's simple enough to understand without too much effort. http://cardspace.netfx3.com/files/folders/samples-july-ctp/entry5204.aspx g Garrett Serack | Program Manager |Federated Identity Team | Microsoft Corporation blog: http://blogs.msdn.com/garretts ARRG! <hangs head> I must now wear the stone of shame </hangs head> I must have missed that aspx as well. Sorry folks, Softwaremaker's right. Garrett ...Show All
Visual C++ MS Visual Studio 2005 - VC++ - pausing output to screen
I am working on an assignment for my C++ class and have hit a snag, I hope someone here will be able to help me with this. The program is a Mortgage Calculator, which I have working for the most part. However, I am supposed to display the information for each payment over the term of the loan. I also need to pause the screen after so much information is displayed and wait for the user to press any key before the screen continues. My question is: How do I pause the screen after so many lines of code are displayed This is what I have tried before, but is did not work at all. bool anyKey = false ; if ((i+1) % 12 == 0) { getch(); cout << "Press any key to continue " ; cin >> any ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Who is using XACT?
If you are using or considering XACT for your product, could you let us know Recently we heard from a developer who was about ready to ship an XACT title, and we had no idea. We try to provide as much direct support to early adopters as we can, help them with any problems they bump into, etc; we can also adjust and prioritize our features based on real-world usage. So, if you're using XACT "secretly", please come out the woodwork and let us know, and maybe we can help. Thanks! Dugan Porter - Game Audio Team - Microsoft This posting is provided "as is" with no warranties, and confers no rights To summarize the earlier posts for those without time to read everything, it would seem as though the general consesus here is that ...Show All
Visual C# Windows Serial No
Apologies if this is the wrong forum. I posted on the "Where is the forum.." but no answer yet and I need to push on with this. I can obtain the Windows serial no from WMI (Win32_OperatingSystem.SerialNo) which provides me with the serial number that is diplayed on "My Computer" properties. My question is this: How unique (or not) is this serial number I would hope that this be unique to each copy of Windows. Does anybody know And what about OEM editions of Windows Can any MS guys looking in help me out on this one In case you are wondering I was thinking of using this serial number as part of a computed key. I have discounted using CPUID, MAC, and hard disk serial number, for various reasons. The Win ...Show All
Visual Studio Visual Studio 2005, MPI, CCS
I'm looking for a way to single step SOME of the processes in an MPI application. I have the following MS documents: a) Parallel Debugging Using Visual Studio 2005 White Paper b) How to Debug a Remote Cluster Application c) Using Microsoft Message Passing Interface I am aware that I can right click in the Threads Window to freeze one or more threads in order to single step the unfrozen ones. There doesn't seem to be an analogous feature for processes, which would suit my needs. document b) says "The Processes window. [sic] You can use this window to set an active process. To step only the single active process, use the step buttons at the top of this window." However, this window only has three buttons: Detach, ...Show All
