ckrepps's Q&A profile
SQL Server Windows integrated security issue
I have two SQL 2005 server ServerA hold the database ServerB hold the report server. While I using "Credentials stored securely in the report server" option in the data set the report generated without a problem while I'm using "Windows integrated security" in the dataset I'm getting error message An error has occurred during report processing. (rsProcessingAborted) Cannot create a connection to data source 'MYDB'. (rsErrorOpeningConnection) For more information about this error navigate to the report server on the local server machine, or enable remote errors In the ServerA (SQL databse) I see event log Event ID 18456 Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'. I configure ServerB (Report Server) com ...Show All
.NET Development How to create KeyContainer for access by Local System account
1) I have an application that can be run by any user account and will be encrypting a file. As part of that process a KeyContainer will be created to save an RSA key that will be used to later decrypt the file. I have discovered that the KeyContainer is saved specific to the user account it is created with and this is problematic. 2) What I need is a ways to make the KeyContainer created in 1) available to the "Local System" account. This service will be required to decrypt the file created by the process in 1). Since this is not an ASP.NET application I am not sure how to accomplish this. Any help would be appreciated. Thanks M.D.A I have tried the following to give permis ...Show All
.NET Development XmlSerialization with Interfaces
I'm trying to serialize a class that exposes a property as an interface. When I try to serialize the instance of the class the XmlSerializer throws an InvalidOperationException with the following message: {"Cannot serialize member SerializationTest.ParkingLot.MyCar of type SerializationTest.ICar because it is an interface."} This may seem like a silly question but is this true I've never ran into this before and I use interfaces pretty extensively in my designs. Can the .NET XmlSerializer not handle interfaces Thanks! Jeremy A few things which might help. First, I would try and do a "reader.Read()" at the very beginning of the Deserialization code. In the code above, it does a "GetType(.. ...Show All
SQL Server Silly question about BIDS
Hi guys, When you get an warning from, i.e, OleDb Destination you see an exclamation mark in yellow and then, when you move the mouse over you can't see never the whole message (If long) Is there any way to see the entire tooltiptext Thanks in advance and have a good weekend! Good question, When that happens to me I go to the advanced editor of the component, some time it shows up there. If you execute the package in debug mode; the warning will show up in the progress tab and in the logging table/file if logging is enable. But to be honest it would nicer if you could see it right in the tooltip Rafael Salas ...Show All
Visual Studio Express Editions If lost my forms!
I have lost all of my forms in my program i can now only code, i need to be able to see them this all happened when i had to restart and load the pproject up agian now i cant find design veiwe again help any one sorry for spelling im in a rush thanks thats whatwent worng i had to do that beacause it was confused with a button and it wouldent delete in designer view and i must of edited the file too much thakns ...Show All
Windows Search Technologies Unable to initialize the filter host process
Installed WDS and Outlook 2007. Everything works fine. Uninstalled WDS. Installed it again from the Outlook 2007 prompt. WDS refuses to index. Essentially, the index dialog says that there are 2 items left to scan but it never completes. Instead, I get the following events in the Windows Event Log. Meanwhile, my Outlook search is not functional. Any ideas how to to solve this Some things I tried unsuccessfully include installing/uninstalling, removing the Program Files/ Windows Desktop Search folder, using RegMon to find what key is causing the issue. Event Type: Error Event Source: Windows Search Service Event Category: Gatherer Event ID: 3100 Date: 1/8/2007 Time: 11:51:39 AM User: N/A Computer: NOR15279 Description: Unable to initializ ...Show All
SQL Server My Query is broken and I don't know how to fix it...
I am trying to set up a filtered paging ObjectDataSource for a gridvoew control. My code works, my query doesn't... This is OK: Get all rows of data: "SELECT UCO, country_code, country_name, enabled, concurrency FROM CountryCodes " Returns all records as expected This is OK: Getting rows of data with no Filter: "SELECT UCO, country_code, country_name, enabled, concurrency FROM (SELECT ROW_NUMBER() OVER (ORDER BY country_name ) As Row, UCO, country_code, country_name, enabled, concurrency FROM CountryCodes ) As TempRowTable WHERE Row >= 0 AND Row <= 10" Returns expected data This is OK: Making sure my WHERE filter works: "SELECT UCO, country_code, country_name, enabled, concurrency FROM CountryCode ...Show All
Visual Basic Adding an AD User to local System by using WMI
Hello, I have a ADSI script that add an AD user to local system group (below), It works fine. I would like to convert to WMI and C# ( I can't find any function in WMI can add user to local system.) anyone knows how to rewrite to WMI or C# please let me know Thanks for your help Danny Dim DomainName Dim UserAccount Set net = WScript.CreateObject("WScript.Network") local = net.ComputerName DomainName = "US" UserAccount = "dan10468" Group="Guests" set group = GetObject("WinNT://"& local &"/"& Group) group.remove "WinNT://"& DomainName &"/"& UserAccount WScript.Echo"DONE" Thanks ...Show All
.NET Development XML file edit
I have a c# program that needs to update an XML element's data. I need to change the value in element lastRun. <program> <lastRun>14.11.2006 10:33:17</lastRun> <logPath>C:\Temp</logPath> </program> ... ... ... Do I need to create a copy of the file to edit it and then save it as the original name Or can I use one of the .NET tools to do this update more quickly I'm pretty new to .NET and using XML, so any help is much appreciated. Thanks. If you need to edit an XML document then you can use the XML DOM implementation in .NET, System.Xml.XmlDocument: XmlDocument xmlDocument = new XmlDocument(); xmlDocument.Load(@"file.xml"); // use XPath ...Show All
.NET Development vs2005, c#, db
I am create with help msdn project. Is wrote in msdn : Creating the ColumnChanging Event Handler To create the validation event handlers Open the NorthwindDataSet in the Dataset Designer by double-clicking the NorthwindDataSet.xsd file in Solution Explorer. Double-click the Quantity column in the OrderDetails table to create the OrderDetailsDataTable_ColumnChanging event handler. (In C# only the data table's partial class will be created.) //-------------------------------------------------- In result created this code : namespace ValidationWalkthrough { partial class DataSet { partial class DataTable { } } } but don't created ColumnChanging handler how to create one //---------------------------------------- ...Show All
Smart Device Development Control Scrollbar with keys
Hi, I'm using windows mobile 5, and need to know if there is a way of to control the scroollbar in order to simulate a "page up" "page down" behaviour, with 2 keys How can i do this Thanks Nuno, If you just want to control the scroll bar, it's pretty easy. Create a scroll bar. In this case, name it: vSBVertical Make sure the Maximum is 100 and the minimum is 0. Then, use the KeyPress property of either your form or whatever control has focus to capture a keypress event. In this case, I am using my main form as the keypress event. So when I detect a keypress event I change the vSBVertical value by a factor of 10, although you can make it whatever you would l ...Show All
Software Development for Windows Vista State Machine Workflow with Parallel Workflows: How do I signal a particular state?
Context I have a reasonably complex state machine workflow implemented (and it works). Each of the 10 StateActivities in the root StateMachineWorkflowActivity has an EventDrivenActivity, HandleExternalEventActivity and SetStateActivity. In the client application, I've implemented an ExternalDataExchangeService local service and I can use it to signal the StateMachineWorkflowActivity to advance through each of the 10 states. No problem. I now want to add a ParallelActivity to one StateActivity add parallel execution of some new StateActivities in the root StateMachineWorkflowActivity . Questions 1. What do I do in my ExternalDataExchangeService local service to signal a particular StateActivity/EventDri ...Show All
Smart Device Development Scaling control problem
Hi, I have a problem when I programmatically add controls to a user control. This all works fine when the device is 96 dpi but when the device is 192 dpi the controls do not scale correctly. The method I'm using is Create the control, set the x, y, Width and Height and then adding it to the control array. Thanks in advance Andy Hough Hi Andy Your issue is very similar to the question in the following thread: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=1081850&SiteID=1 My answer does apply to your problem as well. Michael ...Show All
Microsoft ISV Community Center Forums How do I open CSV using Excel without deleting leading zeros?
Hello, Whenever I open up a CSV file or a Text file, Excel treats string like 05710 as a number and turn it into 5710. How do I open up a CSV file and still keep the leading zeros Thank you very much. Thank you very much. That sounds like a good idea because it skips the screen refresh slowness. Maybe I can create a Range object and then swap that with Cells. That will be so fast. ...Show All
Audio and Video Development ACA Explorer
Hello, Don't know if anyone has created one yet but I figured I'll share this small tool i made with everyone. AcaExplorer allows you to view the content of unencrypted Advanced Content Archives and extract files. Usage: Run acaexplorer.exe > Click on [Open Archive] > Select an *.aca file and click [Open] > Select one or more files from the listbox > Click on extract and choose the destination > Click [Choose] and voila! Tip: use [CTRL] to select multiple files The tool is free and can be downloaded from: http://www.levelx.eu Notes: The program doesn't warn if there is already a file with the same name in the destination map and overwrites. Currently there is a max 16MB limit. ...Show All
