blemos's Q&A profile
Software Development for Windows Vista mcms - VA Error please contact site Administrator
Hi I got a error in mcms db.( VA Error Please Contact site Administrator ) In my application, i am using Sharepoint 2003, mcms 2002 and SQL server 2000. I using mcms placeholder in portal and retrriving the data's from mcms. in production i got a VA Error some times. Once this error comes full production stop. we have a temperature solution. i.e, There were two process on the mcms db that were bloked. These two were both owned by vzh/rc_admin - one was select command and other a DBCC. When the two processes were killed, the application retured to normal functioning. i need a permanant solution. Please do the needfull Thanks Jenkins Try the “ Where Is the Forum For... ” forum. ...Show All
Windows Forms Can't get DrawItem event any more, in some special case
This interesting thing was found by use of DebugView to monitor the all events. Suppose that there are 2 controls, one is propertyGrid, one is myListBox, which is a subclass of ListBox. myListBox uses OwnerDrawFixed mode, so it has to draw all items manually. However, in some mysterious case, I found that when I repeatedly opened and closed the propertyGrid, myListBox may never raise any DrawItem event. I output all events to DebugView, then found that WM_PAINT was there, but didn't WM_DRAWITEM. Also it can't restore from this bad status no matter what I did (move, refresh, resize, maximize, minimize...), until I recreate another myListBox. I think WM_DRAWITEM is nowhere to be manually emitted, since it's managed by control. ...Show All
Visual Basic Difference between C#.net and VB.Net
Hi What is the difference between C#.net and VB.net Hi, In the sense of producing code, lots, but they can both be used to produce a final project or solution. I've heard that the C# or C++ .net versions can do a few tricks easier than you can do in VB.Net, possibly the reverse applies in some scenarios. Some folk going into a programming career end up learning more than one .Net programming language. Visual Basic (VB) .Net code is far easier to read for most people as it is using more English words. Take a look at http://www.programmersheaven.com forum areas to see code samples etcetera to see what i mean. C# area >> http://www.programmersheaven.com/zone30/index.htm C ...Show All
Visual Basic microsoft.data.connectionUi
i want to know if i can redistribute this dlls: Microsoft.Data.ConnectionUI.dll Microsoft.Data.ConnectionUI.Dialog.dll These files are located in the directory where your VS.NET is installed under \Common7\IDE And the long answer is You seem to be implying that the long answer is maybe or unknown. It seems silly to limit .net developers to using old activex connection dialogs when a perfectly good one is available with visual studio. The most perplexing part of this limitation is that the dlls are freely available as part of Visual Studio Express. So I can redistribute them but by getting my customers to install Visual Studio Is there a re ...Show All
SQL Server Excel Source Returning NULL
I've a package that has a excel source. But i'm having a strange problem with it. One of the columns in the source file have a lot of null values but not all of them. But when i run the package a put a data viewer right after the source and i can see that it's showing that the few fields that should have values are also null. I've tried a lot of things but they didn't work. I need some help and fast if possible. Example: Source file.xls Name Grade OtherGrade John 30 30.23 In the DataViewer Name Grade OtherGrade John 30 NULL thanks Adriano Coura I have never heard of decimal points being stripped out. Are you in fact in a locale that uses the comma rather than the period as in US settings (One of your ...Show All
SQL Server how do i use if inside sql task editor
hi, lets say i have an input param calld x. i want to use it inside sql task: i try to put if( = 0) begin do somthing end but i get an error. the variable is configured correctly in the mapping input as i have succeeded to do the same with insert: insert into y values( ) why it does not work with if statment how can i use it thx, Tomer I recommend you use an expression to build the SQL statement as this is not susceptible to the vagaries of using parametes. This may help: Using dynamic SQL in an OLE DB Source component ( http://blogs.conchango.com/jamiethomson/archive/2005/12/09/2480.aspx ) -Jamie ...Show All
Smart Device Development PDA Device throws exception
I am developing a chat application using bluetooth, first i made a sample application where classes that i used to read & write the Com port were part of the application.It was working fine After that i pick the classes & put them in a dll & create reference of that dll in my final application. But here on one of mine HP PDA i am getting error. it is that whenever i pass the recieved data from dll to the application the Data comes to the application function, here if i show that data using Messagebox, it shows that data, but if i try to put that data in a text box, it gets hung. . It Works fine with other PDA. Please help me to find out a good solution. Please see this, items 7, 9 and 10: http://www.danie ...Show All
Windows Forms beep generates no sound
the Beep method generates no sound, the volume is on i checked Remco try this: Dim a As System.Media.SystemSound = Media.SystemSounds.Beep a.Play() Even though Beep() should work ok, the reason could mainly be (and ive just tested it) is that you need to make sure that the default beep sound is set in the sound settings of sound devices! Otherwise no sound is given. ...Show All
Visual Studio Express Editions Problem when installing .NET Framework
Well, my setup file is continually stalling when I try to install Visual C++ 2005 Express, so I saw in the FAQ that installing .NET Framework 2.0 sometimes helps. So I try that. However, my install process freezes at this point in the install: http://img.photobucket.com/albums/v280/Cheesy74/curses.png Anyone know why Nevermind, I got it working. It seems all I had to do was deactivate my firewall during setup. ...Show All
.NET Development CAS and role based security implementation
Hi all, I am bit confused in role based security and CAS while implementing the same in .net. As per my understanding , Demand() function is used by code for demanding the getting the evidence and whether it has permission for certain resource.So it is part of CAS. Whereas Principal object is a part of Role based security to autheticate and authorise an user based on its identity and role. now i have a fucntion which has following attribute on its top [PrincipalPermission(SecurityAction.Demand, Authenticated=true)] public class Authors { // Methods } So can somebody please explain whether this is an role based security implementaion or code access security. kindly explain a b ...Show All
Visual Basic SQL Error: Table doesn't have a primary key
Hmm... Could anyone guide me in the right direction .. Code: Private Sub AddHublist(ByRef sMyinfo As String) Dim s() As String = sMyinfo.Split("|", 7, StringSplitOptions.None) 'parse Dim Dr As DataRow = DixwebDataSet.Hubs.Rows.Find(s(2)) ' <----Error: Table doesn't have a primary key. If Not IsNothing(Dr) Then ---------------------------------------------------- I've set the first row as Primary Key (done from SQL Mangement Studio) Do I have to do anything else to make it "show up" as primary Thanks, Nilysg ...Show All
SQL Server groups in reports
I have grouping in my report... when the user selects print...is there a way of opening expand all the grouping Thanks Hi- I don't believe there is a way to control the toggle state when printing. A suggestion might be to add a parameter, name it "Expand All" and set the initial visibility state of the group to the value of the parameter. Users would need to set the parameter to true and then print. -Jon ...Show All
Visual Basic Reading/Writing Arrays
I have searched quite a bit on this without finding an answer, so maybe I'm asking the wrong question....but here it is Is there a simple way to write out an entire array (or portion) to file As an example, define an array and initialize it: Dim Test() as String = {"a","b","c"} then write it to file: File.WriteAllText("C:\Test.txt", Test) Obviously this does not work for array Test, tried Test(), Test(0 To 2) etc, but all give errors. Must be missing something. Dim somestuff As String = Nothing Dim ArrayTHingy(xxxxx, 2) As String Dim FileName As String = "C:\somefile.txt" For I As Integer = 0 To ...Show All
.NET Development SerialPort Class Help DataReceived
I'm using the DataReceived from the V.2 .NET SerialPort class. I'm communicating with a microprocessor board and i can write to it fine. I'm having trouble reading from it. It sends a single byte at a time without an EndCharacter. I can see the byte being sent on my oscope and with an older Turbo Basic program it does read the byte. My problem is that my DataReceived event isn't being thrown. I have my ReceivedBytesThreshold set to 1 and i still can't see anything. Here is my code just see if the event can be thrown: Private Sub SerialPort1_DataReceived( ByVal sender As Object , ByVal e As System.IO.Ports.SerialDataReceivedEventArgs) Handles SerialPort1.DataReceived MsgBox( "here" ) End Sub Here is my code to t ...Show All
Windows Forms transfer all data
I am working on a Windows Forms application (C#) that has two databases, an odbc database(Paradox) and a Windows mobile database (sdf). I need to copy all records from the CUST table in the Paradox database to the Clients table in the Windows Mobile database Clients table. Is there a way to do this using the tableAdapters or in SQL I am more familiar with Borlands QBE queries so SQL is pretty new to me. Is something like this possible from one database to another Or will I just have to loop through each record in the CUST table and then insert each row into the Clients table in the windowMobile db in code in my app. INSERT INTO "Clients.DB" (CODE, LINK) SELECT D1.CODE, D1.LINK FROM "CUST.DB" D1 Thanks Jon Str ...Show All
