Maaloul's Q&A profile
.NET Development Exception in deserialize object send by network
Hi : I alwayes got an exception in deserialize an object I send it througth the TCP Socket : Socket clientsocket = listner.AcceptSocket(); netStream = new NetworkStream(clientsocket); IFormatter objformatter = new SoapFormatter(); if (netStream.CanRead) { messageClass clinetmsg = (messageClass)objformatter.Deserialize(netStream); } and this exception is : Parse Error, no assembly associated with Xml key a1:http://schemas.microsoft.com/clr/nsassem/client/client%2C%20Version%3D1.0.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3Dnull messageClass The class is : [Serializable] public class messageClass :ISerial ...Show All
Visual C# How to split string into an array of char
Hi all, I had a string as follow : string str1 = "23AB01"; how can I split this string into an array of chars '2' '3' 'A' ...'1' Please help Thanks str1.ToCharArray() Is that it I think you can just also do it like: str1[0] (which is '2') str1[1] (which is '3') etc... ...Show All
SQL Server SP2 Copy Database Wizard better, but still problems
I installed SP2 today and started transfer databases from our old production server with SQL 2000. The Wizard is much better now when using SMO Online transfer and I succeefully transferred several databases. But I now have three databases with a strange error: Here is one error when I try to copy the database OEWRegister. It seems like all objects are transferred and it fails in the end with: OnError,JABBA,VD-ISP-NET\SQLServer,QUI-GON_JABBA_Transfer Objects Task,{FD7EE38E-70E0-4D01-8E4E-9CC1D44BA7B4},{19F9A272-F90C-446D-BF0E-EA333D06ACD3},2/21/2007 9:06:15 PM,2/21/2007 9:06:15 PM,0,0x,ERROR : errorCode=-1073548784 description=Executing the query "IF EXISTS (SELECT name FROM sys.databases WHERE name = N'OEWRegister') DROP DATABASE ...Show All
SQL Server Change version of SQL 2000 on running system
Hi, is it possible to change the installed version on a server from SQL 2000 Standard Edition to SQL 2000 Developer Edition The server has been a production server and is now only used for testing by development, not from end users. Best regards, Stefoon ...Show All
.NET Development .net windows service application architecture
Hi, I need to develop an application which performs a data transfer one data base to another. I can not use DTS as a solution due to the complex requiremtns of the application. This application needs to run every 30 secs. So I decided to go for windows service. I am new to windows serivces and multithreading. I have developed an application design and would like to get feed back on it. General over view of the design : Application contains the following classes - AccountCreationDTS (WInService class), DTSTimer, DTSController, DTSREquestBin and DTS. AccountCreationDTS.OnStart() starts the DTSTimer. DTSTimer._onTimeElapsed() invokes DTSController.startTask() which initiates a DTS. The code for all the classes is given below : ...Show All
Visual Studio Problem with Source Control
Good morning, my problem consists of which I want to add a Web site to source control, but I cannot, it appears to me the following message of error: The solution appears to be under source control, but its binding information cannot be found. Because it is not possible to recover this missing information automatically, the projects whose bindings are missing will be treated as not under source control. Anypeople can to explain to me as I have it to do Thanks What if Source Control is grayed out How do you go about changing the source control and restart the Add to SCC wizard Thanks. ...Show All
Microsoft ISV Community Center Forums Word: How to you determine the current cursor position
For one of my macros to run, I have to ensure that the cursor position is not in a table or in a frame when the user activates the macro. How can I find our the current cursor position Once I can determine that the cursor is positioned in a table or a frame, I can then code a message box to instruct the user where to put their cursor to run a certain routine. Hi, Cursor position Selection.Range.End This will check whether currently in a table or frame. Dim lngTableCount As Long Dim lngFrameCount As Long For lngTableCount = 1 To ActiveDocument.Tables.Count If Selection.Range.InRange(ActiveDocument.Tables(lngTableCount).Range) Then MsgBox "In Table" Exit For End If ...Show All
Visual Studio DSL opens as XML
Hi, When creating a DSL with VS 2005 Pro and the SDK 2006.09 I get following unexpected behavior: create a new DSL using the MinimalLang template transform the templates build and run (Debug) after this a new VS window opens with my DSL, but when I double click on Sample.mydsl1in the solution explorer the XML file is opened and not the diagram design. When I right-click on sample.mydsl1 and select Open with my newly created language is not listed as an option. I guess something must be going wrong with the registration process in the exp hive. I have de- and re- installed VS and the SDK, but still no luck. any help would be greatly appreciated! Thx, Stef I r ...Show All
Visual Studio Post-build event fails with error code 1
I have a simple cmd file that copies some assemblies around after building a solution. It works fine from a command line, but it fails in the VS2005 IDE on build saying "exited with code 1." I haven't seen anything describing what the problem might be. Any clues for me Sean FIgured it out on my own. I was using $(SolutionDir)afterbuild.bat $(SolutionDir) $(OutDir) but I needed to say $(SolutionDir)afterbuild.bat $(SolutionDir) $(ProjectDir)$(OutDir) I guess paths are absolute. ...Show All
Gadgets Detecting Gadget visibility / screen saver & power saving state
Is there anyway to detect if a gadget is visible or covered by other applications or if the screen saver / display power saver is on I'm creating kind of a slide show gadget which will download images from an external server and it's wasting of server bandwidth to keep downloading the images when the gadget isn't shown so I need some ways to detect when the gadget should be suspended. You can detect if it's visible on the Sidebar, see my comments in this thread. You can't however tell if another application is covering it, the screen saver is on, or the display is in power save. This could however be done with an ActiveX COM. For the window overlap, you'd have to step through all the active window han ...Show All
Visual C# Chr (VB.NET) vs char (C#) dagger
I am converting a VB.NET program to C#. One of the features is returning the character code for an ASCII value. The (char) cast or Convert.ToChar seems to work in most situations. However, in some ASCII(134) I get different returns between the VB and C# code. In VB, Chr returns the small 't' symbol alla http://yorktown.cbe.wwu.edu/sandvig/docs/ASCIICodes.aspx . In C#, (char) or Convert.ToChar returns the 'square' symbol alla unrecognizable. I've looked all over but have not seen how to resolve this(other than setting a refernce to Microsoft.VisualBasic which is something I frown upon). Any help would be greatly appreciated. Thanks First of all, the official ASCII Code standard ...Show All
Windows Forms The DateTimePicker is Ridiculous!
Why doesn't the DTP allow you to select a Date AND a Time at the same time Instead, (from what I see) you have to create 2 DTP controls: One to select the date and another to select the time of day. Why can't they be on the same popup similar to how MS Access would let you select both Please somebody tell me I'm wrong and just missing something. I've been Googling around to try and find a custom one, but they are few and far between. Aren't there other people with this problem I thought this was basic stuff... If anyone knows of any custom controls that do this, I'd be greatful if you let me know. Thanks! Hello All. Igore99: You can have the DateTimePicker control select both the dat ...Show All
SQL Server One or more data sources is missing credentials
I am getting the following error when I deploy my drill through reports to the server. "One or more data sources is missing credentials " Each report can run independently but once I try to drill through I get the above error. My data source is a cube. I am really desparate to finding a solution for this. Any help will be appreciated. Thanks ...Show All
Visual Basic Windows service
hi guys, i made a windows service that monitors the time spent on the internet. i can install it, run it, stop it with no problem.but the service doesn't run on windows startup. why even though i told it to start automatically. and in the "Services" window, it shows me that the startup type is automatic. in the event log, everytime i start the windows, i see two errors: -Timeout (30000 milliseconds) waiting for the Time Counter service to connect. - The Time Counter service failed to start due to the following error: The service did not respond to the start or control request in a timely fashion. plz help me. :( what dependencies all my service does is : use a time ...Show All
Visual Basic Make a form bigger than my Screen Resolution
I'm doing a report in a windows form (i'm not using crystal reports because don't have the licence), i need that the form can change it's height bigger than the screen resolution's height; it's there a way to do that Thanks. In the form you can always change the forms Width and Height. Me.Width = 2000 Me.Height = 2000 The user will have problems viewing it so an option is to have a panel that you resize to fit the report and set the AutoScroll property of the form to true. This will add scroll bars to the form if the panel is larger than the visible area of the form. Avoid having a form larger than the screen as the user is not able to view it all, use the scroll bar features of container control ...Show All
