Sandro Haupt's Q&A profile
.NET Development Connection closed by a proxy between http requests
I have a runtime remote configuration in my client/server application that use server side activation objects – Single Call activation and I have an http channel configuration on client and server config files. A proxy server exists between the client and the server, When made a first call to server and get the results. I made a second call later, after the proxy server connection timeout and I promptly get the exception: Type: System.Net.WebException Message: The underlying connection was closed: A connection that was expected to be kept alive was closed by the server. Its look like that the proxy server closes the connection, making the second call failure. What can I do to deal with ...Show All
Visual C# Error CS0554. user defined conversion to/from derived class
I have come across a most peculiar compiler error. When I try to define a cast operator to convert from a base class to a derived class I get this error - apparently according to the help "User-defined conversions to values of a derived class are not allowed; you do not need such an operator." Is this as insane as it appears to be or am I missing something somewhere Of course I need to define a cast operator, how else can the compiler know how to create a derived type from a base type Any explanations appreciated. Dave Well, I'll ante up on this. I'm attempting to control the proliferation of type instances to conserve memory use (remember those days :D) I have a generic id factory with id subtype ...Show All
Software Development for Windows Vista Windows Card Selector
It seems to me that when the Windows Card Selector is opened, the whole computer is locked down. But we have to planned to implement a local STS with its own authentication mechanism (displaying a digital signature with PIN entering window). So my questions now: 1. Is there the possibility of any UI interaction during the CardSelector <-> (local) STS communication 2. If yes, is it possible to bypass the definition of UserCredentials in an InfoCard, as we are providing our own authentication mechanism! Maybe you can help me guys. I'd like to know that too, since our target is to configure a setup where after inserting a smartcard, the middleware needs some GUI interaction ...Show All
Visual Studio Express Editions difficult - Keyboard hook
Hi, I need to do the following: A barcode scanner is connected to the PS/2 input using a split cable (so, both the keyboard and the barcode scanner are connected to the same PS/2 port). The barcode scanner uses "keyboard simulation" to send it's code to the currently active application. If you open a texteditor and you scan a barcode, the number is send to the page. You can add a "prefix" to the barcodescanner of maximum 10 keycodes or characters (like A, #, NULL, SOH STX ETX EOT ENQ ACK BEL etc...) I want to use the barodescanner on the background, so I was planning to use a system wide keyboard hook which detects if there was a NULL-NULL send to the PS/2 input, and in this case takes the 13 following charact ...Show All
Visual C++ error LNK2019: unresolved external symbol
I am using visual studio 2005 express edition and am having trouble linking a tutorial code from a book that I use. I have directx SDK(August 2006) installed with the Microsoft platform SDK. All the lib files are linked properly and I have followed the step to enable win32 applications in visual studio 2005 express. However when I build the code I get 2 LNK2019 errors 1>D3DInit.obj : error LNK2019: unresolved external symbol "int __cdecl d3d::EnterMsgLoop(bool (__cdecl*)(float))" ( EnterMsgLoop@d3d@@YAHP6A_NM@Z@Z ) referenced in function _WinMain@16 1>D3DInit.obj : error LNK2019: unresolved external symbol "bool __cdecl d3d::InitD3D(struct HINSTANCE__ *,int,int,bool,enum _D3DDEVTYPE,struct IDirect3DDevice9 * *)& ...Show All
Visual Studio 2008 (Pre-release) How to set up WCF Service on IIS
I have written a WCF Service. It works well, and is a CLR .exe file I want to use this service on IIS. How do I do that Also, I dont see a configuration file on WCF, would that be the .application file Thanks - I assume that the new folder is under /inetpub/wwroot Is that correct ---> The new folder does not have to be under /inertpub/wwwroot - How do I insure the ASP.NET has access to the contents of this folder ---> The identity of worker process, in IIS5 is ASPNET, in IIS 6 and IIS7 by default is Network Services but configurable, should have read priveledge to this folder. This normally is not a problem, unless you have configured specially. - How do I use the IIS management tool ...Show All
Internet Explorer Development Wrap selection or IHTMLTxtRange in Font or Span tags of a given class
I am trying to wrap the users selection (or a IHTMLTxtRange) with font or span tags that have a given class. The best that I can do now is: pRangeToRender.execCommand("BackColor", false, SOMECOLOR) I then use IHTMLElementCollection allEls = doc.getElementsByTagName("FONT"); and check each tag if it's SOMECOLOR. If it is, I clear the color and set the font tag's class. This is quite slow on large selection. Is there some better way to do it The solution suggested does not work for large selections as span (or font tags) cannnot span certain element tpyes. The good thing about using IE's execcommand is that it wraps the selection with the proper SPAN (or Font) tags in the proper places. ...Show All
Visual Basic Exporting Excel to an access table.
Hi, I have an access db called TablePeople. This table has the following fields: PeopleID FirstName LastName UserName I have an excel spreadsheet called People.xls that has the same fields as TablePeople. What I want to do is to import all the data in the excel spreadsheet to TablePeople using VBA that is shipped with access. Can somebody point out what are the steps I need to take in order to automate this process Thanks Thanks a lot for the response but what I want to do is to do the importing via an access form. So the way it works is I click on a button on the form and a file browser pops up, I specify the location where my .xls file is and once I click ok the import of the data ta ...Show All
Visual Studio Version of Visual Studio 2005 Professional
I'm considering buying a copy of VS 2005 Pro from a co-worker, and I'm attempting to find out how different this copy would be, if at all, from a full retail version. The part # is X11-70630, he said he received this copy for participating in a usability study. I know such things do happen, but I'm trying to find out before I pay him, is this a fully-featured version Can it be registered the same as any retail version The package is marked "Ready to Launch", and includes VS2005 Pro, SQL Server 2005 and Biz Talk Server 2006. There are 4 DVD's total, including 1 which is labeled MSDN library. Product keys for both VS and SQL Server are included. What would the real difference be, if any, between this version and a ...Show All
Visual Studio Tools for Office Multi-threading in VSTO
I have read throught many texts and i am not able to get to a conclusion. I have an excel application. The application queries various tables. After data is obtained through each table it is processes. Doing everything serially takes a lot of time. Is there any way i can put each task on a separate thread. None of the threads will be calling the Excel COM server. The tasks will perform data access/processing operations and once all the threads are done, the MAIN thread will do the writing on the workbook. In other words "Is is possible to do multi threading in VSTO solutions, assuming that threads won't interact with the office object" Thanks1!! A good place to discuss this (and search for pa ...Show All
Visual C# What is the purpose of a private constructor?
What is the purpose of a private constructor For which purpose we use it i think to Prevent the creation of instance for a class use the private constructor, but can any body explain it in better way Private constructors are useful to prevent creation of a class outside the class when there are no instance fields or methods, such as the Math class, or when a method is called to obtain an instance of a class. It is commonly used in classes that contain static members only again like Math class. If a class has one or more private constructors and no public constructors, then other classes (except nested classes) are not allowed to create instances of this class. ...Show All
SQL Server problem deploying SSIS to another server.
Hello, I am trying to deploy a SSIS package (using deployment utility create at build time) to a different server and ran into problem wonder if someone and direct me to the right path. development environment: WIN XP, SQL 2005. package is built using server buisiness intelligence. Package content: connect to a "target"SQL2005server using OLE DB using SQL Login authentication to process data. The SQL 2005 DB is on a Win 2003 server (R2) as OS platform. The package was built, install ( SQL not file system)and ran fine on the development environement; when attempt to deploy the package to the SQL 2005 server where data reside and should be processed (also install to SQL), I receive error " 0x80004005 ...description TCP P ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Multiple Lights on a scene
Hello ; I want to learn an important technique which I can not figure out till today. Even in old games (such as Half-life ) we can see several lights in a scene. But when I look my graphics card capabilities it suppports max 8 active lights. Considering the time which Half-life built the graphic cards were less capable. So I wonder how they can achieve this effect. (Can they be using different textures for each face to imitate real lights if so the game should require too much resources.) Thanks Thanks very much. One more point I think the levels in games (such as buildings, walls and all static objects) are stored in one mesh object and other objects added later (I don't know if this is true) . ...Show All
Visual C++ Extensible Storage Engine Sample and documentation
Is there any sample applications for the ESE API. The existing API reference is nice but it takes time to undersand the API and write an application that use ESE. I found the best documentation on Wikipedia, very interesting. Does MS have any tool to view data in an ESE DB. That would be very nice, even if it was a unspuported tool. Anyone else out there that has been using ESE Experiences Hello Such questions are outside the scope of this forum - for the scope of the VC General forum please look at: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=19445&SiteID=1 For such issues please use the newsgroups at http://msdn.microsoft.com/newsgroups where these types of questions are answered. ...Show All
Visual Basic Question about Deleting Files
I have a VBScript file that I needed to code into VB I can understand some of how this is done but I'm unable to found any information on some of the problems I'm having. Here is the code for the VBScript file the main problems I'm having with some users for some reason there login name and the folder that windows uses isn't named the same so I needed to ask is there a way to delete files in VB basiced on there Extension and how can I point to a Directory using a variable Thank you for any help. 'This script will delete the CSV file in the users temp folder, this was created to fix a problem that we were 'having with windows displaying the wrong information once some many of these file were created. 'Version: 1.0 ...Show All
