timay's Q&A profile
Visual C# Constructor on type 'MYCLASS' not found.
I have 7 classes.. Some of them inherited from non serializable object , some of other inherited from 3rd party components. All of my classes have got [Serializable] attribute , ISerilazable interface and ClassName( SerializationInfo info, StreamingContext context) Most of them have got List of the other as property . Altough everything fine I got error like that " Constructor on type 'myclass' not found." I couldnt understand why Thx for advices.. I think that when you iterate through the types via reflection each type must implement a default constructor (without parameters). Stay cheerful, Dave ...Show All
SQL Server OLE-DB ?
Hai, I have developed an SDI application in VC++ 6.0 version to connect remote MSSQL server through "OLE-DB" in Windows 2000 Proffesional . Through the IDE,i have selected "OLE-DB provider for ODBC Driver ". I have used two threads, one for computation and another for accessing database. In the database thread, for every 2 second the rowset is opened, updated and closed. In the Second thread, for every 10 millisecond data is computed. My Code looks like, xxView.cpp Database Thread() { for(;;) { Waitforsingleobject(x,2000) // Two second event { m_pSet->Open(); // Update data m_pSet->SetData(); m_pSet->Close(); } } return 0; } xxapp.cpp Comput Thread() { ...Show All
Smart Device Development Battery indicator on ToolBar? How to?
I got a requirement to place a battery indicator on the ToolBar of a .NET CF 2.0 form on Pocket PC 2003. I started by assuming that I could derive a custom control from ToolBar, and modify OnPaint to add my indicator. But to my surprise, OnPaint is in fact never called. The designer of the System.Windows.Forms.ToolBar must have gone to great lengths to hide/disable/avoid all the functionality inherited from the Control class. For example CreateGraphics is not supported ! I now have a working method using PInvoke GDI that looks OK, but feels somewhat like a HACK. What is the "correct" way to do it. I will "reveal" my code later. Sven, First of all, your "batteryInfo&quo ...Show All
Visual Studio Team System Work Items attachments maxsize changed, now cannot add attachments
I changed the maxsize for work items attachments from 4Mb to 25MB. I followed the procedure outlined in the forum using the webservice. I have checked the config db and the value was updated. I even rebooted the TFS server. The problem is now whne I attempt to add any attachment I am unable to save and it tells me I exceed the supported file upload size of (0MB). I tried to change the max back to 4096 and still get the message. Is there anything else to check Is this a known problem ...Show All
SQL Server SQL Server 2005 Installation Problems - No Server..
HI all I'm pretty new to SQL Server 2005 and have just installed the Enterprise Edition on my home PC to practice on. The problem is that I don't know how to create a server! I'm on a stand alone machine and just want a dummy database to work on to practice. Please let me know how I can set up a Server to practice on..... Many thanks! dnf999 FYI, SQL 2005 Enterprise Edition is not supported on Windows XP. But since you said you've just installed EE on your home PC (which I assume is non-domain'ed, no Active Directory present), so I assume your OS is either Windows 2000 w/ latest SP, or Windows 2003 w/ latest SP. If you didn't specify anything special, then most likely you've created a SQ ...Show All
SQL Server crystal reports and ODBC getting access denied on pass thru
Hello, Environment - Windows 2003 standard server SP1, SQL 2000 SP4 (installed mixed mode) Goal: To have Crystal reports run via odbc dsn using windows authentication. Big Honkin' Problem: I should say that if the users are local admins on this server then the windows authentication works just great, if not a local admin then it doesn't work. SQL gives an error access denied. (this shows in the logs btw.. to the end user crystal displays a generic database error) Since windows authentication failed, I then decided to use the dbo and switch to SQL auth. This dbo did not have a password and everything ran great. Then the IT dept. asked me to give the user a password, so I did. Then everytime Crystal opened, a window would appear ...Show All
SQL Server SQL Express user permissions?
I'm trying to build a web application using SQL2005 Express and Visual Studio Express. It all works OK on the local machine, but gives an error "Login failed for user xxxx\ASPNET" when used remotely. I can't find where I can set login permissions for SQLServer 2005 Expresss - can anyone help, please Thanks John I think I have made some progress, probably narrowing down the problem, but not complete. I have built a new app with two databases in App_Data. One is ASPNETDB, the other is a test database. I have made xxx\ASPNET the owner of both databases, and mapped the xxx\ASPNET login to both databases, with "user" and "default schema" both "dbo" for both databases. I have two g ...Show All
Visual Studio Express Editions Help for a beginner
I've previously used vb to make some simply stuff with buttons and tab pages, mostly just consisting of me copying pasting stuff lots of times, but now I want to do it the proper way and make instances of things. I've made a panel that has all these customer attributes like name, age so on. As I have a few customers rather then copying and pasting this panel, i was hoping I could instead make a new instance of it and then pass it name and age. Is this possible and does anyone have any sample code of something similar Well - you could do it that way but it would only really be suitable for very small numbers of customers. If you want to give it a try have a look at the following which may give you som ...Show All
Visual Studio 2008 (Pre-release) Custom Control, Converter parameters, Trigger using parent property
Hello all I am trying to create a custom text box which uses the next template: < Style TargetType = " {x:Type local:XTextBox} " > < Setter Property = " Template " > < Setter.Value > < ControlTemplate TargetType = " {x:Type local:XTextBox} " > < Border Background = " {TemplateBinding Background} " BorderBrush = " {TemplateBinding BorderBrush} " BorderThickness = " {TemplateBinding BorderThickness} " > < TextBox x:Name = " txtVal " Background = " Beige " IsReadOnly = " True " Text = " {Binding RelativeSource={x:Static Relati ...Show All
Visual C# Object Not returned to pool with methods that uses c# preprocessor
Hello, I am facing a problem with object pooling in windows server 2003. The object contains methods that uses c# preprocessor like #if . I have used JustInTimeActivation TRUE, Autocomplete attribute and set maximum and minimum pool size to 600 and 700.The problem i am facing is here is the object once activated doesnot returns to pool even though the operation is completed. Then after the maximum limit is reached and get the error suggesting COM+ activation failed. So, i request you experts to suggest on it. Rajan Shrestha. ...Show All
SQL Server Help me: SQL Server 2005 Enterprise Setup Error
I have my computer clean with windows 2000 server SP4 then I install Visual Studio.NET 2005 Professional (With SQL Server 2005 Express Edition) - Everything is OK! after that i try to install SQL Server 2005 Enterprise Edition, but I get an error message at the begining as following: Title: setup.exe - Entry Point Not Found Content: The procedure entry point _encode_pointer could not be located in the dynamic link library MSVCR80.dll so, is there anybody can help me to solve this problem thanks! ...Show All
SQL Server Transmission queue ?
Hi There I have sent messages and they are all sitting in the transmission queue with a blank status, why is service broker not trying to send them They are no errors in the sql log. BOL says this is blank when it has not tried to send the message Service broker is definately activated in the database. How do i force sql server to send anything in the transmission que I have no idea what is wrong or where to check Thanx Dietz wrote: Also i find it odd that these valid erros do not display in the transmission queue The status is just blank in the transmission queue, is this correct The transmission queue can only display errors than happen locally, before the messag ...Show All
SQL Server iif statement problem
hi all, i've browsed some of the smilar iif expression problems but no idea how to solve mine. i get an #Error when i wrote the following expr : =sum(iif(Fields!revenue_type.Value= "R" , Fields!amount.Value,0)) but no error when it's =sum(iif(Fields!revenue_type.Value= "R" , Fields!amount.Value,0) - iif(Fields!revenue_type.Value= "T" , Fields!amount.Value,0)) If i filter the dataset and just take in data where revenue_type = "R" then there won't be error... how come did i do something wrong please help... this seems so simple yet i couldn't get it.. Maybe somewhere Fields!revenue_type is "null", then acces ...Show All
Visual Studio Express Editions RichTextLabel / disable image resizing by users
I create text and images in Wordpad, and then load them into a richtexttextbox, which by itself works fine except for one thing: users can select and even resize the images in the text. And it shows a blinking caret, which I found I can hide by creating a function that uses the user32 lib. But the ability to select and resize the images (just as one would in word/wordpad) is not acceptable. It's set to readonly, and I messed around with every other property of the richtexttextbox. Then it hit me, I need a richtextLabel. Someone created it, but is has the same issue, the image can be selected and resized. I've looked in many forums and documents, and they all cover things like creating your own word-clone, allowing people to edit the con ...Show All
SQL Server Report Builder and optional parameters
Hi, Is it possible to create optional parameters in Report Builder An *ordinary* parameter is created by marking a filter expression as "prompted". At run-time, the user will be asked to provide a value for this parameter (or accept a default value if it is available). This works fine. What I want is to let the user choose whether to provide a value, or leave the parameter empty. In latter case, the reports should not take the parameter into account and display all available data. Example: I have a list of products grouped by the name of the supplier. I want users to be able to see the entire list, or narrow it down to one supplier only. So I create a free text parameter that will contain a part of the supplier's name. I ...Show All
