Rajeshsv's Q&A profile
Windows Forms Runtime error, File Format is not valid in RichTextBox.LoadFile()
Hey, I have a starnge runtime error, when I run my program and click ont he load option it opens up the load dialog, so then I click on Text FIle(*.txt), and then click on a text file to open and then when it is opening it, it gets a runtime error, it highlights this line of code: RichTextBoxPrintCtrl1.LoadFile(openDialog.FileName) This is the load code: Private Sub openMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles openMenuItem.Click openDialog.Title = "Open File" openDialog.Filter = "Rich Text Files (*.rtf)|*.rtf|Word Files (*.doc)|*.doc|Text Files (*.txt)|*.txt|All Files ...Show All
Visual Studio Team System Where to get load test controller and agent software?
We downloaded VSTS2005 beta3 refresh and VS2005 release version. we can't find the test controller and agent installastion package. Where are they Controller and agent are licensed separately and are not available through the MSDN subscription. Load agent info here: http://msdn.microsoft.com/vstudio/products/vsts/load/default.aspx Pricing how to buy info here: http://msdn.microsoft.com/vstudio/howtobuy/Default.aspx Ed. ...Show All
Smart Device Development Can not browse to local websites using VS2005 Beta2 Device Emulator.
I created a very simple web site using asp.net 2.0 mobile forms/controls and all I wanted to do is see what it looks like in one of the device emulators (Pocket PC 2003 Emulator). After working on this for a few days I was able get the emulator to do the everything except the one item I need it to do (Browse to my local websites) VS 2005 connects to the device emulator just fine after I installed the DMA update. The device emulator scyronizes with my desktop PC just fine after I installed activeSync. The emulator can browse the internet just fine. How do I get it to browse my local websites. Any help would be appreciat ...Show All
Software Development for Windows Vista How can I start instalation a Windows Vista os
How can i start instalation of Windows Vista OS. I burn a DVD image, but i can not open it. I can read only a README file. What shall I do What does the Readme file say ...Show All
Software Development for Windows Vista Custom activity: setting value of bound parameter fails
Hi all, We have created a DSL and from that we generate a workflow definition using XOML. All activities in the workflow 'work' on a private member of the workflow. The private member is derived from a base class 'DomainObject'. The workflow accepts a parameter (input and output) of the same type as the private member. We created a custom activity containing 3 properties for binding the parameter, binding the private member and a boolean indicating whether to assign the parameter to the member or vice versa. At runtime, when the activity assigns the 'property bound to the private member' to the 'property bound to the value of the ...Show All
SQL Server DHCP Service fails to start after installing SQL Server 2005 April CTP
I have a Windows 2003 Server SP1, Active Directory, Application Server and RIS installed on my computer. After installing SQL Server 2005 April CTP my DHCP Service fails to start. In the Event Viewer I see the following Events. Event Type : Error Event Source : Service Control Manager Description : The DHCP Server service terminated with service-specific error 20013 (0x4E2D). Event Type : Information Event Source : Application Popup Description: Application popup: Service Control Manager: At least one service or driver failed during system startup. Use Event Viewer to examine the event log for details. Event ...Show All
Visual Studio Team System How to get the name of a .vb file
Hi Guys, I developed the rule below to get the name of all *.vb files that are inside a projet and wanna verify if the name has an especif construction. But, when I debug the rule method, I get the name of the .dll of the project and not the files inside it. How can I verify each file in a project I am analysing in fxCop the project dll. Is it correct Public Overloads Overrides Function Check( ByVal Modulo As Microsoft.Cci.Module) As ProblemCollection Dim failed As Boolean = True Dim fileName As String = Path.GetFileName(Modulo.Name) Dim filePrefix As String = fileName.Substring(0, 3).ToLower If fi ...Show All
SQL Server Attempt to fetch logical page error
Hello, I have recently moved some packages I had been working on from my development to production environment. Having come across many configuration related errors, I believed my latest one to be of this type. However I'm recieving one I've never seen before: "Attempt to fetch logical page (1:95152) in database 8 failed. It belongs to allocation unit 72057594043301888 not to 72057594045661184.". Possible failure reasons: Problems with the query, "ResultSet" property not set correctly, parameters not set correctly, or connection not established correctly" This package works fine on the development db, however I don't even know wh ...Show All
.NET Development xml document to navision via socket
Hello. I'm trying to send a xml document to navision application server through a socket connection. The document contains orders, where some customers have names with norwegian characters as 'a', 'o' and 'a'. Have tried many different encodings, but somehow the norwegan characters dissapear on the way... This is the code i'm using: Encoding enc850=Encoding.GetEncoding(850); //I've been told that navision uses oem850. xtw= new XmlTextWriter("D:\\test\\"+orderid+".xml",enc850);//to write the xml to disc.. StreamReader sr = new StreamReader(FILE_NAME,enc850); //To open the xml file after it's been saved ...Show All
SQL Server SQL Server 2005, Parameterized Filter: Snapshot could not be applied
Hi My merge replication (over Web) has been working fine. But since two days, I've got the following error: If I'd like to reinitialize a subscriber or add a new subscriber, the following occures (on the client side): Client connects to the (Web) server All the snapshot files are loaded down to the client The client tries to apply the snapshot (to a blank database), but then, the following error occures: (Translation from German) Microsoft SQL Server 2005 (KIS:KisAussendienst(XE4500\SQLEXPRESS)): A dynamic snapshot could not be applied, if no dynamic filter for the subscribed publication exists. But, there's definitly a dynamic filter on ...Show All
Visual Studio Team System Question about the GLOBALLIST
Hi, I want to create a new combo field who contains all of the WI (ID) numbers that created on my project, the motivation for this is to give my QA team the option to mark duplicate bugs. How can I publish all my WI numbers in automate way (for example to publish the number of the WI after saving the new WI)into a global list and then get the values from it by naming the globallist name Thanks in advance, Shmulik. Hi If you use the current UI to create new work items, then it is not possible to add the bug to the allowed list of the "Duplicate WI" field. However, you can hav ...Show All
SQL Server I am not able to load two different images dynamically in an Image control
HI, Base on pagenumber, i need to display a particular image in first page and another image in next page. there are two images and has to be displayed alternatively in the pages. but, it is displaying only one image everytime. I am using Exteranl and URL based concept and using parameters to pass the values from the front end to the report One more thing I did was, I place two image controls and passing the URL through two parameters having the URL as the value. but still the both the image controls display only one image. it should be possible to use expression to show image conditionally. set image v ...Show All
Visual Studio 2008 (Pre-release) Linq newbie FK ref question
Hi, I've started using Linq rather than Nhibernate in some tests/personal apps I'm using. Linq is fantastic and far more natural to use than Nhib, with as much power. c# 3 features allows us to fully utilise these persistable graphs to the most, with interesting set-based processing capabilities. However, in my Unit Tests I retrieve a particular object graph (Customer -> Client) whose FK relation (Customer.ClientID -> Client) is non-null. If I add several of these objects to a parent collection (Customer Groups [] -> Customer -> Client) and persist (db.CustomerGroups.Add) I get unusual behaviour. If I run the test on it's own i ...Show All
Visual C++ MS C++ 2005 express database mismatch error when compiling
Every time that I attempt to compile a c++ program I get a database mismatch error. When I looked this error up in the included documents, it said that I needed a newer version of dbi.dll. Where can I find this file I know that my programs work because they compile with ms vc++ 6.0 and the gcc complier. Here is the artilce where it told me "how to fix it," but I still cannot find the file that I need. Visual C++ Concepts: Building a C/C++ Program Fatal Error C1902 program database manager mismatch; please check your installation A program database file (.pdb) was created usin ...Show All
Windows Forms using GDI+ resources...
I am making a vector drawing program, but I don't know the best practice for using GDI+ resources in my application. First some questions: How much resources are objects like pens, graphics objects, and brushes actually taking up Does resources refer to RAM or something else Why are resources limited How expensive are allocating and disposing for GDI+ objects I have a graphics object for a bitmap and a few pens allocated for the life of the app. The reason they are static is because they are used constantly in the onpaint event. I read this would increase the memory footprint of my app. I haven't tested it, bu ...Show All
