Software Development Network Logo
  • Game Technologies
  • Visual Studio
  • Visual C++
  • Windows Forms
  • .NET Development
  • SQL Server
  • Visual FoxPro
  • Microsoft ISV
  • Visual C#
  • Audio and Video
  • Smart Devicet
  • IE Development
  • VS Team System
  • Visual Basic
  • SharePoint Products

Software Development Network >> MMMalik's Q&A profile

MMMalik

Member List

Tomas Restrepo
tnichols333
JamesMitchell
cgraus
Hoodwinked
joeydj
Secsi
Scienter
KipK
Priyananth
JDeciple
VOC
KSuresh
shayc
WPF Fan
cbpd86
abuck
epicblue
Sébastien Nunes
Dirk Stoermer
Only Title

MMMalik's Q&A profile

  • Visual Basic Unable to cast COM object of type 'X.YClass' to interface type 'X._Y'.

    Dear all, I'm getting this nasty error and I cannot find any answers (google didn't help either). Here's the thing: I'm calling a VB6 DLL from a VB.NET (VB2005) application. This is the error I get when I call the DLL: Unable to cast COM object of type 'X.YClass' to interface type 'X._Y'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{780BDA61-8169-4A5D-AD31-59A902BC3B84}' failed due to the following error: No such interface supported (Exception from HRESULT: 0x80004002 (E_NOINTERFACE)). Strange thing is, sometimes my code works properly, and the next hour I get this error. I rebuild the DLL, unregistered and re-registered the DLL, swept through the internet and the ...Show All

  • SQL Server SQL Server 2005 Data Restore Problem

    Dear Frends I have taken a backup for my database and trying to restore it on another computer .....but its showing me error while i m restoring this database... error is Too many backup devices specified for backup or restore only 64 are allowed . pls give me a solution if someone knows abt that... Dinesh Sharma I suggest you try the SQL Disaster Recovery and Availability forum here: http://forums.microsoft.com/MSDN/ShowForum.aspx ForumID=744&SiteID=1 You are more likely to find someone who can help you there. ...Show All

  • Visual Studio Team System TFS SP1 and problem with get latest version

    Hello, I have installed TFS SP1 and have got the problem with VersionItems table. When I try to do "Get Latest Version" operation the error occures in rpc_Get stored procedure. It says that there is a collation conflict (SQL_Latin1 and "normal" Latin1). The stored procedure is encrypted so I cannot know what it tries to do. All other operations (check in, change workitems, etc) seem to work notmally. Can anyone help me and explain how to fix the problem Thank you. This was a bug which we fixed in SP1 RTM. It would occur if your TFS version control database collation was different than the collation of your tempdb. Alexey - did repairing SP1 work out ...Show All

  • .NET Development Avoid serializing base class members

    Hi, I have extended System.Windows.Form.Label control and I also implement one additional interface containing some properties. public class MyLabel: System.Windows.Form.Label, IMyInterface { //... } What will be the simplest way to serialize an instance of MyLabel class to include only IMyInterface members. I do not need to serialize any of base class (Label) members. Thank you. Thank you Daniel, Of course I can apply your solution if the number of properties for the base class is relatively small. But for classes deriving from a Label control there is a lot of work... Trying to save some time by using IXmlSerializable ... I was just wondering if there is something in .NET Seri ...Show All

  • SQL Server can service Broker talk to informix

    Hi, I am very new to Service Broker. Can I have a Service Broker which will Exchange Message from Informix and service broker sitting on SQL Server Box. If this is possible, How can we achieve it. Any Pointers will be very helpfull. Thanks Hello Remus, This seems fine for Informix installed on Windows, but in my case, I can have Informix on Unix Machine also. Therefore I want to have a generic design for both the cases, So that I don't have to do much of change when Informix is on Unix or Windows. That is the reason why I did not try to use Linked Server. Can a Service Broker Communicate with a service running on informix box. Thanks Dharmbir ...Show All

  • .NET Development .NET remoting rookie. Need HELP! Unhandled Exception

    Hi, I'm just getting into .NET remoting. I've got my rmotable type,, the listener/server and the client. No compile errors, but i get this run error Unhandled Exception: System.Net.Sockets.SocketException: No connection could be made because the target machine actively refused it Server stack trace: at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddre ss socketAddress) at System.Net.Sockets.Socket.Connect(EndPoint remoteEP) at System.Runtime.Remoting.Channels.RemoteConnection.CreateNewSocket(EndPoint ipEndPoint) at System.Runtime.Remoting.Channels.RemoteConnection.CreateNewSocket() at System.Runtime.Remoting.Channels.SocketCache.GetSocket(String machinePortA ndSid, Boolean openNew) at System.Runtime.Remoting ...Show All

  • Visual C# C# Remoting on PDA alternative

    I've just done an exam job on remoting on a PDA but I realized that this is not possible.. So therefor I need to know how I can make the same effect in another way.. I mean I can't make a remote connection on a PDA so what can I do to control my object on the server i've been in a similar situation, my best advice would be to use a webservice.. there are a few ways to accomplish this.. if IdeaBank, Subject, and Idea are all coming from a database somewhere, you can have your webservice call return a DataSet with with a DataTable for each.. This is the most painless way to do it, but isn't necessarily the best. A better way would be to ensure that IdeaBank, Subject, and Idea all support Xml Serial ...Show All

  • SQL Server How to retrieve Top 3 records in the group level

    Hi all, I have a report which is grouped by a field called R_ID, which gives me a list of records for each R_ID. So here is the thing, I want to get only top 3 records for each R_ID. Is there any way to do this thing in the report level. I tried it from the query level, but the result is not like what I wanted. Please let me know if some body has any idea. Thx. Doing this in a report wouldn’t be the best way as you would get all the data from the server and then only would display a part of it. better filter the data on the server and send only back the appropiate results, then you would have no problem on the client / reporting service. Anway, if you want to do this, you might have a look at ...Show All

  • Visual Basic Changing System Environment variables from VB6

    Hi All, Does anyone know of a way to change a system environment variable from within a VB6 program I have tried Environ() and SetEnviromentVariable - they only set/change environment variable that are visible to the application NOT the system. The reason I need to change them is that their is inventory info stored as environment variables on the PC - when the PC is moved to a new location the Inventory info needs to change. Any help offered will be greatfully received! Thanks in anticipation. Ed These forums are for questions regarding .NET programming. VB6 is not supported here. Please see the following links for help: Useful Links Visual Basic 6.0 on MSDN Library ...Show All

  • Visual Basic how to get modified default filename when saving, based on the first line

    hello, i would like to create a system for a rather large amount of univ books, that i would name based on the section name and number them (eg: 0001_physical-clock.doc). this section name is usually the first line after the header. how can i create a form ( at the beginning of the word document ), so the contents of it would be added to the filename when saving ( saving me from typing it, much less finding it ) thank you hello again, thank you for your replies, i now know what i'm looking for. @spotty: yes, i am looking for a solution that would be entirely contained within word and hopefully, again entirely, automated. since i'm totally new to this kind of scripting, could you please point me to the f ...Show All

  • Visual Studio 2008 (Pre-release) Unlimited LifeTime of WCF Services

    My client stops working if I leave it unattended for sometimes. I do not want this to happen. What is the way I can do I create a static field, and then create the field once and the use use for as many as I want. Here is the code: if (iCustomerInvoice == null ) { iCustomerInvoice = new ChannelFactory <Company.Common.Interfaces. ICustomerInvoiceSystem >( Binding, GetEndingAddress( "ICustomerInvoiceSystem" )).CreateChannel(); SetToken(iCustomerInvoice);//to set the token of the login for the customer! Is there a better way } I use iCustomerInvoice for the lifeTime. But this iCustomerInvoice stops working after a while. I am using PerSession. Set the ReceiveTimeout on your Binding to som ...Show All

  • Visual Studio 2008 (Pre-release) Extension Methods / Property conflict when they have the same name

    I have a question regarding how properties of the same name as an extension method are resolved. In the following example, i'd like q3 to compile. I understand the compiler might have issues with the name conflict, but there is a valid extension method, and the compiler is getting hung up because there is also a property. It can resolve it if i explicitly supply the generic type as in q4 - Why can't it be smart enough to do it for q3 List < int > nums = new List < int > { 0,1,2,3,4,5,6,7,8,9 }; int q1 = nums.Count; // works - uses the property on List<T> int q2 = nums.Count(); // fails: 'System.Collections.Generic.List<int>.Count' is a 'property' but is used like a 'method' - doesn' ...Show All

  • SQL Server Creating A tab delimited export

    Hello all, I am trying customize the CSV rendering extension with different device information settings. I would loke to change the CSV extension to a Tab delimited output. However, whenever I add a new extension line to the RSReportServer.config file I run into problems. 1. What is the correct character to use in the delimiter to specify a Tab character I seem to be unable to get this correct 2. Why when I override the name in the rendering extension does it still show up as the CSV (comma delimited) name in the export dropdown. Here is my customized rendering extension. < Extension Name = " TXT " Type = " Microsoft.ReportingServices.Rendering.CsvRenderer.CsvReport,Microsoft.ReportingServices.CsvRend ...Show All

  • Visual Studio Team System Email notifications stop working after a while

    I have some email notifications which are to be sent out on events (buildqualitychanged, buildcompleted, etc.) These work fine for a while, but every week or so they stop working and I have to reboot and then they start working again. I have to do this at least every week (more often recently). Are there any known issues about this Hmmm....I suppose that it could be something to do with the SMTP server since all of the other non-mail subscriptions continue to work. However, the SMTP server is on a different server and everything starts to work again after rebooting. (i.e. all emails which were not previously sent out are now sent out after a reboot). ...Show All

  • Visual Studio 2008 (Pre-release) Abstract Classes As DataContract

    Hi Dears, I have 4 projects with Me. Service, Client, Data and IData ////////////////////Data public class MyContract : IData. IMyContract { private long _property1; public override long Property1{ get { return _property1; } set {_property1 = value ;} } } /////////////////////IDATA [ DataContract ] public abstract class IMyContract { [ DataMember ] public abstract long Property1{ set ; get ; } } //////////////////////////////Service [ ServiceContract ] public interface IMyService { [ OperationContract ] IData. IMyContract GetContract(); } public class MyService : IMyService { public IData. IMyContract GetContract( ...Show All

©2008 Software Development Network