Dallastower's Q&A profile
.NET Development Handling multiple web requests parallely
Hi friends, Can anybody share with me code snippets of handling simultaneously multiple http requests from different clients I'm using the HttpListener for this purpose. Have used the BeginGetContext model but it does not seem to work. Requests are still being handled sequentially. I tried code from msdn, other developers who faced similar problems, innovated on my own but no success. Can somebody be of help please Thanks, Kunal P.S. I'm new to C#..... ...Show All
SQL Server xblkld4.dll and SSIS....
I have created a VB.NET solution that includes a dll and a tester. The DLL has a refrence to a wrapped version of xblkld4.dll, which is created with TLBIMP, moved to the GAC with GacUtil and registered with RegAsm. From within the framework of the project everything runs smoothly, but when I try to use the DLL from within an SSIS script task I get the following error... [Void LoadData(System.String, System.String, System.String)] Error: Unable to cast COM object of type 'Interop.XBlkLd4.SQLXMLBulkLoad4Class' to interface type 'Interop.XBlkLd4.ISQLXMLBulkLoad4'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{88465BA7-AEEE-49A1-9499-4416287A0160}' failed due to the following err ...Show All
Visual Studio Express Editions error connecting to database
I am using VC# Express and trying to connect to a SQL 2000 database. The error message when I compile the application is as follows: An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified) Is there anyway to connect to SQL 2000 with VC# Express or is this a waste of my time. using System; using System.Data; //ADO.NET namespace using System.Data.SqlClient; //Use SQL Server data provider namespace using System.Collections.Generic; using System.Text; namespace Da ...Show All
Visual Studio How can I edit the C.R. Layout?
Hello, I have crystal reports in my project as a standard layout (invoices, recipts ... etc), my customers like to fit the layout depend on their needs. I mean just change the positions of the output. Is there any way to do this thanks ...Show All
Windows Forms control into component tray (non-visual area)
I have a class that inherit from control like; public class MyClass: Control {...} This makes it visible in the toolbox and ready for use - nice! But, how to make it drop to the "component tray (non-visual area)" and not to the form at designtime Just like when dragging a normal "Timer" from the toolbox to some form... I guess there is some Attribute to set at class level... but what I can't find any answer on the net... Tanks for any help! ...Show All
Windows Live Developer Forums Trying to get address from a map
Hello to all, I have used in the past MapPoint web service and I must say testing VE is more than great! I would like to ask this: I am creating a new map with specific Lat Long info that I have. The map is generated fine, and I have managed to create custom pushpins. The issues is that I want right next to the map to have a small area that will show there some basic information for the Lat Long point, like Country name, City name and Address. I am reading the reference but can't find something specific yet. Can you help me on this Thanks! Well it seems a one-way road.. I've almost complete my .net page that talks with MapPoint. I strongly believe however that reverse geocoding sho ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Camera Mouse-Look Algorithm
Hi, I'm writing a camera class and have gotten just about everything laid out. But for some reason, when doing the Mouse Look method (basic first person shooter look around), I get completely screwed results. The camera never seems to properly orient itself and something is very wrong. I've checked my algorithm a dozen times and I can't figure out what's wrong. If anyone can tell me, I'd appreciate it. Here are my MouseLook and Orthonormalize methods: public static void MouseLook(float x, float y) { // Rotation speed is always 0.001f and I've also substituted the Object's 'Up' and 'Right' Matrix xRot = Matrix.CreateFromAxisAngle(Vector3.Up, x * rotationSpeed); Matrix yRot = Matrix.CreateFromAxisAngle(V ...Show All
Visual Studio Conditionally setting the AssemblyVersion at build time
I have a need to build a project and only increment the version number if and only if the project has changed, is there ANY way to do this other than build the project twice Can this possibly be done with a custom MSBuild task So far I have seen that you can update the AssemblyInfo.cs from the MSBuild process but doing so before the build makes it so that it will produce a new assembly, which I don't want to do unless something else changes which causes the build to produce a new assembly, then and only then do I want to apply a new version number. Any help would be greatly appreciated! Thanks, Jim "output be all the assemblyinfo files" Does this mean the output of the project If it is an exe or dll I c ...Show All
Visual C# How to use the calendar of an Exchange Server
Hello everybody, hope you can help me. I'm in research for how to program an Exchange Server. The main problem is that I simply don't have enough background on this and don't know where or for what to search. The problem I'm trying to solve is that I want to respond to an entry in the calendar. For example, I have a meeting at 12 o'clock. When it is 12 o'clock I want my program to react and do some things, like blocking my telephone line for the duration of the meeting and unblock it when the meeting ends or something like that. I simply don't know how to interact with the Exchange Server in such a situation. Are there some events fired when the meeting starts or is there some other mechanism which helps me to detect such things I don't ha ...Show All
Visual Studio 2008 (Pre-release) Why LINQ and C# 3.0?
I have read a little bit the C# 3.0 overview. Most of the new extensions seems very, very confusing. For example keyword var, what is the purpose of that Is it just to make the anonymous types possible Well, in real life commercial project enviroment, I doubt that anyone would allow that kind of types. Well at least in the projects that i'm familiar with, the type definitions must be strict. And the var keyword sounds too much like Visual Basic or javascript to me. It only confuses. Lambda expressions make the code a hell to read, as well as var keyword. I have thought that the strictness has been the strength of C#; you define all and you cast all, so you know what the result is. Those kind of anonymous and blurred structures seems to tak ...Show All
Visual C++ How do I activate the console and the GUI at the same time?
Hello comunity. How can I show the console and the GUI (Forms) at the same time .. it's for debug propouses.. Thanks. Thanks about the interest Peter, and thanks to the last sir to answer. That's SubSystem option works fine for debug. Best Regards ...Show All
Visual Studio Team System TFS Instalation of VS80sp1-KB926738-x86 failed with Error 28002.Error Unknown.
Hi, I try to install the SP1 of TFS on our server, and after installing the required KB919156, i get at the end of setup process "28002 - Unknown Error " I analyze the msi log file but i don't find any issue that can give me an hint. what's happened I saw a lot of issues regarding SP1 including on the connect bugs database, is any workaround for it And after the setup, i can not access the team system any longer from the tfs clients, it raise TFS31001, even after restart of the iis or whole machine. The TFS is an Workgroup edition, an i remove one of the users before installing KB919156 because of 5 users limitation. regards cosmin Did you remove the 5th account from the "Licensed Users" group ...Show All
SQL Server how to deploy a solution created onto different system
Hi, I have a solution with it packages, and the solution is running. Now, I want to deploy the same solution onto other server machine. What would be the best way to do this Any suggestions regarding this Use package configuration to change connection strings and other values at run time, so you don't have to re-visit all packages: http://msdn2.microsoft.com/en-us/library/ms141682.aspx Make sure to check: Protection level property in your packages. Permission of the user running the packages in the new server (if different from current user) Enable package logging so you have a clue if something goes wrong. ...Show All
Internet Explorer Development Three problems with IE 7 - rollovers, cut-off text and cut-off images
Hello all, I thought I'd finished designing a new site which works fine in IE6, Firefox 2, Opera and Netscape - until I tried it in IE 7! Problem 1 (most important) - Tabbed CSS menu moves on rollover URL = http://www.toucanmusic.co.uk/test/index.php CSS = http://www.toucanmusic.co.uk/test/toucan.css The tabbed menu at the top works fine in all other browsers I've tried, however in IE 7 the menu initially loads up correctly then, when you rollover the tabs, a white gap appears between the tabs and the blue bar underneath. Refresh the page once and the gap remains, but refresh it a second time and it disappears! Not being an expert at CSS, I'm using a variation of the "fitted doors" menu found at http://www.cssplay.co.uk/menus/do ...Show All
Windows Forms webservices call from backgroundworker fails...
hi I have a peculiar problem with a background worker component. I have a webservice which will return a bulky dataset and the dataset is stored into the sql server express database. since it is bulky i wanted to run it as async, so when i call the webservice from the background worker thread , the data is not being populated into the db. I tried to debug, but the control comes back to the form (from the worker thread) the moment the web services is called (there are few statements present after the call). I did not get any error. The webservices function works properly when called from the form. please help :( Wouldn't you expect control to return to the form immediately, since yo ...Show All
