kuphryn's Q&A profile
.NET Development XmlSerialization problem
I am using XmlSerialization for serializing an object of complex type. The problem is that XmlSerialization makes a lot of 'href' in the output document. Is there is any way to stop XmlSerialization from making serialization. Also it add extra namesapce to ecah element of the body. Does there anyway to abvoid this. The code I am using is: =================== MemoryStream memoryStream = new MemoryStream(); XmlTypeMapping myMapping = ( new SoapReflectionImporter ()).ImportTypeMapping( typeof (SetParameterValues)); XmlSerializer serializer = new XmlSerializer(myMapping); XmlSerializerNamespaces ns = new XmlSerializerNam ...Show All
SQL Server Crashes all over!
Since downloading the released( ) version of SQL and Visual Studio 2005, my Visual Studio environment crashes quite often when doing Reporting Services work(and this was a clean install after a hard drive format). ASP.Net and other VS tasks work fine - it seems to be just Reprting Services that is buggy. Here are the instances in which it crashes: - The most frustrating is when I'm trying to design a report based on stored procedures with parameters, if the parameters aren't wired up correctly and you hit preview report, Visual Studio crashes. This probably happened 20-30 times yesterday - so much that I've had to revert to ...Show All
SQL Server Dependent report parameters help
I have four parameters for my report: StartDate, EndDate, TankID (the ID of a thank going from V01 to V20 and from S01 to S20) and Site (the location of the tanks, for example: the V-tanks are in Belgium (BE) and the S-tanks are in Spain (SP)) The thing I want to do is: If I set parameter "Site" to "Belgium" then only the tanks in belgium will be shown as values in the dropdown of the "TankID" parameter. If site = Spain, only spanish tanks will be shown in tankid parameter dropdown box. I tried adding a new dataset which has as default value the parameter of the "Site". Also tried some other stuff but ...Show All
SQL Server vs 2005 SQLserverexpress without mgmt studio
I have Visual Studio 2005 standard installed and want to add SQL server managment studio can I just install the extras pack or do I need to re-install SQL server express with the advanced options. Thanks Paul ...Show All
Smart Device Development How to use DEBUGMSG macro?
Hi, What is the TRACE like method for Smartphone In debugging process I want ot put some message to Output window, is that DEBUGMSG macro is appropriate one In order to use that macro, what kind of header file I should include I included the dbgapi.h file, but it doesn't work. So how to use this kind of trace method Thanks. Well, there is nothing wrong with your code. The problem is that Windows CE OS seams to ignore the breakpoint exception when there is no debugger attached to the process. I see two option to solve this issue. a) Show a message box telling to attach the debugger to this proc ...Show All
Visual Studio Hosting the VS Web Browser
Hello, I was wondering if there's a way to host the VS web browser inside an editor window. What I'd like to do is use a custom page with links that can interact with the IDE. For instance, if I click on a link that says "show tool window x" it will display a that tool window. It has to be in html and from what I understand, the VS web browser is designed to allow VS automation. Thanks in advance. Yes, you can host the web browser in your own window. The web browser inside of Visual Studio had the ability to give access to the automation model (if you were using a specific protocol), b ...Show All
Windows Live Developer Forums API Questions
I've run into a couple of issues in my development. Both are easy enough to work around but I'd prefer clarification if possible. The first issue is with the response. I seem to be getting a garbage character at the beginning of my response stream. This is preventing me from duming the response directly into the XmlDocument.Load() method. To verify I wrote a console stub and dumped the stream to the screen and it shows as a " " there. I've worked around this by writing the stream to a string then checking for the first occurance of the "<" and passing the substring from there into the .LoadXml() method instead but it feels very hackish ...Show All
Visual Studio Tools for Office Passing excel workbook object
Hi, I have got a form which displays an excel spreadsheet, allowing the user to make selections, which the form picks up. This all works fine. I then have an object which wraps the excel workbook object along with some objects representing the selections that have been made. This wrapper object is passed to another class which uses the information to extract data from the workbook. However, when it attempts to extract the data from the workbook, it throws an exception: System.Runtime.InteropServices.COMException (0x800A03EC): Exception from HRESULT: 0x800A03EC. at Excel.ApplicationClass.get_Cells() i know the code ive written to ...Show All
.NET Development Best Practice for modifying object in collection
Hi. I am just wondering what is the proper way/correct way/best practice to modify an object located in a specific index of an array The way I have looked at it is to do this: object B index = in array, look for object B if index != -1 //we found it! someCollection[index] = objectB someCollection.Sort(); //or whatever else // do whatever end if is this a bad way if so - why how can it be improved please do tell me, I want to know!! :-) using these datastructures, it's probably the best way to do it. bear in mind that changing items in a collection is not thread safe so if you are working o ...Show All
Visual C++ Visual C++ 2003 Standard -> how to upgrade
Hey, I'm really eger to buy Visual 2005. I'm using Standard version now and I want to ask which version should I buy to have the same features I'm afraid that there will be no Visual C++ 2005 Stardard for 150$. Do I have to choose between Visual C++ Express and Visual Studio Standard(including all the languages...) Hi, As stated in the document. VS2005 Standard Edition costs as much as $299 ($199) upgrade. In your inquiry on choosing between VC++ Express and the standard edition, I suggest purchasing the standard edition for the express editions has many limitations. Here is the list of differences. http://lab.msdn.microsoft.com/vs20 ...Show All
SQL Server How to build SQL Commands in a Remote Database Component
Hello, I'm trying to develop a remote database component for the server that interacts with the database directly. I would like to pass in my object to the corresponding add, update, delete methods and have the database component generate the script to do the corresponding transaction to the database. However, I cannot find a viable solution yet. The only method that I have found so far is passing the exact SQL command to the database component for it to execute. This would require making a 3 SQL Statement (one for add, update, and delete) for each class. Thanks, Kiet Quach I would back up a bit here. I thin ...Show All
Visual Studio Team System can't publish test result
The publish operation fails with the error message:Server was unable to process request. ---> Attempted to perform an unauthorized operation. Anyone encountered such problem Is it because I don't have enough perm to publish a test result The following is my publish steps: 1. Build the team project - Success; 2. Run tests and click publish in Test Results window Any idea thanks Are you a Namespace admin in TF You will need to make sure that the user for which you are publishing has been ...Show All
.NET Development Obtain a Stack dump ?
I would like to know if it's possible to perform a full stack dump in .Net Since the VS debugger is basically capable to navigating through the stack granting a visual access to all managed variables of the stack, this must be possible somehow. Such feature would be really useful for various purposes including debugging (post-app crash forensics) but also performance tuning (post-run stack analysis), etc... Does anyone know how to perform a stack dump in .Net Thanks in advance, Joannes A thread can get its own managed stack trace. See System.Diagnostics.StackTrace class, and http://blogs.msdn.com ...Show All
Visual Studio hidden project
Is it possible to have a project in the solution hidden What I am looking to do is create a project and load it into the solution, but have it be invisible to the user. My project would handle the loading and building of the hidden project. Thanks, Mike Hello Mike, It is actually very simple to make your project a hidden virtual project. One you have created your project you must query for the SVsSolution service and then call HRESULT AddVirtualProjectEx([ in ] IVsHierarchy *pHierarchy, [ in ] VSADDVPFLAGS grfAddVPFlags, [ in ] REFGUID rguidProjectID) Omitting the value ADDVP_AddToProject ...Show All
.NET Development Using HttpWebRequest to HTTP POST using Credentials - Underlying connection closed
I am hoping someone out there knows why this is happening: I am writing an application that is going to be making many requests to authenticated web pages - by authenticated, I mean using HTTP Auth (you know, that grey box that pops up asking you for a username and password). I have been using WebClient for this because I don't need much more functionality than simply reading particular pages or posting to a few of them. However, I am willing (and have recoded my app) using HttpWebRequest, with the same problem. My problem is this: I can do GET requests just fine (DownloadData using WebClient or just reading the stream usin ...Show All
