xishan shigri's Q&A profile
.NET Development DataSet serialization problem through remoting (VS2005 release)
Hello, I have a problem with a client/server application using remoting (TCP channel on the same host) and DataSet. The server loads successfully an xml file using a typed DataSet (built by xml schema designer and MSDataSetGenerator), it also writes data back to the xml file without any problem. Everything seems to work fine on the server side. But, when the client tries to get the DataSet via remoting I get an exception: - $exception {System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Data.DataException: Invalid 'Key' node inside constraint named: ErrorStatistics_Event. at System.Data.XSDSchema.HandleKeyref(XmlSchemaKeyref keyref) ...Show All
Smart Device Development ASP.NET Mobile form in Visual Studio 2005 professional ??
Can anyone let me know how to create a Mobile ASP.NET application, I am using the Visual Studio 2005 If you're talking about hosting ASP.NET on mobile devices than it is not supported. If you're talking about consuming ASP.NET applications on devices than you don't need to do anything for devices. Manav ...Show All
Visual Basic Visual Studio 2005 - VB Compiler crashing
Visual Studio 2005 - VB Compiler crashing: Operating system: Windows Server 2003 SP 1 msvb7.dll version: 8.0.50727.73 Event Type: Error Event Source: Microsoft (R) Visual Basic Compiler Event Category: None Event ID: 1000 Date: 5/18/2006 Time: 10:05:16 PM User: N/A Computer: *** Description: Faulting application devenv.exe, version 8.0.50727.42, stamp 4333e699, faulting module ntdll.dll, version 5.2.3790.1830, stamp 424377d2, debug 0, fault address 0x000396d0. For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp. Data: 0000: 41 00 70 00 70 00 6c 00 A.p.p.l. 0008: 69 00 63 00 61 00 74 00 ...Show All
Visual C++ error LNK2019: unresolved external symbol
I'm having trouble with the LNK2019 continually popping up when I try to build my project. I'm using VC++ .NET 2003 and the libraries that I'm using were created by another company and I do not have the ability to edit them. Also, I have experience with C++, but it is all in the linux platform, so I'm not familiar with all the settings for Windows or VC++. Here is the code I'm having trouble with: void CGrablinkHfrDoc::Callback(PMCSIGNALINFO SigInfo){ positY = positY + (height + gap); EROIBW8 Roi(&finalImage, 0, positY, width, height); EImageBW8 copyImage; PUINT8* pData = NULL; MCHANDLE hSurface = (MCHANDLE) SigInfo->SignalInfo; McGetParamInt(hSurface, MC_SurfaceContext, (PINT32) &pData); switch (SigInfo->Signal ...Show All
Visual C# Cast <IList>
I have something like this... public static IList < AbstractKeyValueEntity <T>> Values<T>( ListBox listBox) { IList < AbstractKeyValueEntity <T>> results = new List < AbstractKeyValueEntity <T>>(); foreach ( ListItem item in listBox.Items) { if (item.Selected) { results.Add( AbstractKeyValueEntity <T>.GetLookupByEntityID(item.Value)); } } return results; } I make a function call something like this something is of type IList something = ( some ) CallFunction .Value< some >(DownList); I get an error saying Cannot implicitly convert type ''some' to 'System.Collections.IList'. An explicit conversion exists (are you m ...Show All
Microsoft ISV Community Center Forums MS Office document and image writer print driver
Besides removing this feature from Office during setup, is there a process to remove this virtual printer from 300 users with roaming profiles on an active directory network We are having an issue with this printer assuming the "default printer" selection for our users. As a work around we have changed their default printer, but after they reboot or log off / on it has defaulted back to the MS Ofc doc and image writer printer. Per our support engineer: Thanks for using ISV Community Forum, according to your problem, I’m wondering whether you can simply log on the machine as administrator and delete the virtual printer (just select the icon and press del key) in Control Panel -> Printers ...Show All
Visual Studio Syntax error when using Online MSDN
Hi, I have a problem with the Visual Studio 2005 help. Every page that loads i get a "line 1 syntax error" message box. It is DRIVING ME INSANE! I have tried to repair of the Document Explorer tool. I have looked for updates or KB articles and i can't find anything. I have tried turning off IE debugging but just the shape of the message box changes (and it doesn't ask me to debug), and the syntax error moves to line 2. A sample source for the page starts with XML so i thought that might be the cause but I am running the latest updates. Has anyone else had this problem Thanks in advance for any tips, Nathan Hi lyc, Thanks for the reply. Yes, with the way the markup for these particular pages ...Show All
Software Development for Windows Vista Backward compatibility with win32 API with function within advapi32.dll
Hi, I need to use the following functions which defined in the advapi32.dll: 1. LsaOpenPolicy 2. LsaAddAccountRights 3. FreeSid 4. LookupAccountName 5. IsValidSid 6. LsaClose 7. LsaNtStatusToWinError I am using these functions in order to add privileges to a user account (privileges in the local security policy). I want to know whether or not Microsoft is committed to keep backward compatibility for the win32 API in their next versions i.e. Vista, etc. Thanks. ...Show All
Visual Studio 2008 (Pre-release) Root object(class) in Domain Object Model
I have a question, the question is: In the ADO.NET vNext Entity Data Framework how do I solve the problem of having a root object in my domain model Let's say in my domain object model I have to have a root class from where every other class will be inherited. Obviously the root class does not need to be persisted, it simply adds some behavior to all the objects that I am going to use in my application. While playing with the August CTP, I noticed that I could not make this work. Maybe I'm missing something. Maybe there are ways to get around this problem, can anyone please shed some lights on it What you can do is define an Entity Type in your Entity Model (in the CSDL file) and declare al ...Show All
Visual C# amigious operator == when testing for null
I have data class that should be equatable in many ways. Sort of like the following: class MyObject : IEquatable<MyObject>, IEquatable<MyOtherObject> { ... private MyOtherObject otherMember; public MyOtherObject OtherMember { get { return this .otherMember; } } public bool Equals(MyObject obj) { return this .otherMember == obj.OtherMember; } public bool Equals(MyOtherObject obj) { return this .otherMember == obj; } public override bool Equals ( object obj) { ... } ... public static bool operator == ( object obj1, MyObjec ...Show All
SQL Server Arkhan: putting dbo explicitly in select staetement
I have witten a lot of stored procedures in my project where I did not put dbo before the user tables.My colleague told me that I have to put dbo for all statements other there could be a problem. Any thought , Please assist. Specifying the owner can help the system find the stored procedure faster. It also prevents issues if someone creates the same name procedure with a different owner (or schema in 2005) by mistake. At least if everyone uses two-part names, they will be less likely to make mistakes. As for the compile locks, I have reproduced recompile locks in my stored procedures. I'm not 100% how I did it, but it seemed to be with temporary tables stored procedures. I added dbo in the f ...Show All
Visual Studio Express Editions How to use my self-made browser to open html files by default
Hi, How can I make all files (file types associated with IE mozilla) to open in my self-made browser I have made a self-made browser and what I want to happen is that when everytime I click a link or a url, instead of opening the url in IE or Mozilla browser, I want it to open in my self-made browse by default. Thanks and more power! Ichi Now that you have solved the 'association' problem, the issue is how to pass the link or filename to your program (browser). Here is the technique: When a file associated with an application is opened, it is passed to the target application as an 'argument'. You need to make your program accept an argument. To do this, change your Program.cs file as follows: static void Main( string ...Show All
SQL Server Url Question
Is there a way to access the url of the page that you are on in a report I notice that you can access the report server url, but I need to read a page url and access it in the report. Is this possible No, I don’t think do, but what you can do is to compose your current URL via the ReportServerUrl , ReportPath, ReportName and Parameters that were called. YOu would have to put that in one complete expression. HTH, Jens Suessmeyer. --- http://www.sqlserver2005.de --- ...Show All
.NET Development read xml file in avery special way
I want to read an xml file in Avery special way let me explained it: Xml life is build like tree I want to read a special value from node by giving the number of the node and child like this: node 1.1.5 node 2.3.4.2 node 3.4.2.5 I don’t want to read the values by giving the nodes names Can some body help Hi, The following code will give you some idea about the approach that you need to follow. You might need to make some changes according to your specific needs. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ protected void Button1_Click( object sender, EventArgs e) { XmlDocument xdoc = new XmlDocument (); XmlNode xNode; string [] txtStyle; ...Show All
Visual C++ Include header not found
Hi I have Visual C++ 2005 express edition and I try to add these headers and it said cannot be found. #using < mscorlib.dll > using namespace System; What do I need to include for it to work, please help!! Thanks in advance Jason I appologize, I mean the .dll file, sorry about the confusion there, my fault. And the IDE give me this error: fatal error C1190: managed targeted code requires a '/clr' option What do I need to add Thanks ...Show All
