Syed Imam's Q&A profile
.NET Development Monitor Downloads
Hi all, I need to find a way on how to monitor downloads using ASP .NET. What would I need to insert in the link that is used to download a file in order to send a request to a class which will increment an XML database Any help would be most appreciated. Eric Cann ...Show All
Software Development for Windows Vista Rename file, Error "MoveFile" failed. But file gets deleted
I am currently seeing an error 183, file couldn't be moved because a file already exists. However, after this error appears the destination file is deleted anyways, only leaving the orginal source file. This is in a directory in program files and the files are not being virtualized ( I played with the permissions on the directory). The rename works perfectly fine in PrgoramData. Is this a problem with rename, or is one of Microsofts ways of getting applications to not write to program files The same results can been seen in C:\ProgramData. Do the following: Create two files: test.txt and test1.txt Create an app that deletes test1.txt Check the return value of the delete Then do a move from test.txt to test1.txt The "MoveFile&qu ...Show All
.NET Development Error occured when reuse the socket after Socket.Disconnect(true);
Error text: Only one usage of each socket address (protocol/network address/port) is normally permitted. I have to compare speed of Socket.Accept() vs speed of Socket.Select() in multithread server without using internal thread pool (Socket.BeginAccept/Socket.EndAccept) for accept incoming connections. And I found nothing useful about .NET alternative for DisconnectEx() + ConnectEx() for client side. Can anyone help me with right way for use Socket.Disconnect(true) Server code: class Program { static ManualResetEvent waitHandle = new ManualResetEvent ( false ); static int connectionsCounter = 0; static void Main( string [] args) { IPEndPoint localEP ...Show All
Internet Explorer Development Css not applying.
i am creating a text area (multi line text box) but its not applying css to it..... any ideas 2ndly i have created a required field validator dynamically and applying the css on it but it is still showing error in default red color. for record css is applying on all other controls on the page. I have this too. The problem is that the asp:RequiredFieldValidator outputs style="color:Red" and so it overrides any color you may have in your CSS. eg. < style type ="text/css"> .errorText { color: green; } < /style > <span id="ctl00_cphBody_RequiredFieldValidator" class="errorText" style="color:Red;">* Required</span> I see why this is a problem but don't know how to fix it.... We nee ...Show All
Visual Studio 2008 (Pre-release) msmqIntegrationBinding error generating proxy using svcutil
Hi Guy I have problem building the proxy fo msmqIntegrationBinding I have the following classes and interfaces: [ ServiceContract (Namespace = "http://Microsoft.ServiceModel.Samples" )] [ ServiceKnownType ( typeof ( PurchaseOrder ))] public interface IOrderProcessor { [ OperationContract (IsOneWay = true , Action = "*" )] void SubmitPurchaseOrderMessage( MsmqMessage < PurchaseOrder > msg); } public class OrderProcessorService : IOrderProcessor { [ OperationBehavior (TransactionScopeRequired = true , TransactionAutoComplete = true )] public void SubmitPurchaseOrderMessage( MsmqMessage < PurchaseOrder > msg) { PurchaseOrder po = ( ...Show All
SQL Server Integration Services and Teradata as source
Hi All, Please let me know whether we can use Teradata as Source in SSIS (Target is SQL Server 2005). ie. Do we have oledb driver for NCR Teradata to connect to it. Our SSIS will be hosted in 64 bit SQL, but for development we use 32 bit. Any inputs is really appreciated. Regards, kart Kart, I think it would be better if you did the research. I don’t know your business requirements, technical constraints, your budget, or quantities you would require, all of which may effect the cost and eventual product selection process. Talk to the suppliers and find out what they can do for you. ...Show All
Visual Basic TabPage Header Question
Is it possible to change the color of just the header of a tabpage If so, can someone please assist me with this Any ideas Thanks all... jb Absolutely...set the drawmode to owner draw and then draw the tabs in the drawitem event: Private Sub Form1_Load ( ByVal sender As Object , ByVal e As System . EventArgs ) Handles Me . Load With Me . TabControl1 . DrawMode = TabDrawMode . OwnerDrawFixed End With End Sub Private Sub TabControl1_DrawItem ( ByVal sender As Object , ByVal e As System . Windows . Forms . DrawItemEventArgs ) Handles TabControl1 . DrawItem Dim g As Graphics = e . Graphics Dim p As ...Show All
Smart Device Development VS openes the wrong emulator
Hi, I am using VS 2003 with PocketPC 2003 SE emulator. I have reinstalled the .Net framework and the .Net Compact Framework. Since than, whenever I try to open the Pocket PC 2003 emulator, VS opens the Windows CE .Net emulator and inside it shows the screen of the PocketPC 2003. Since there's a resolution difference between the two, it puts the PocketPC screen on the left side of the emulator and paints white the other half of it. How can I tell VS where is the right emulator file located BTW, I tried to unistall / reinstall the PocketPC 2003 SDK - didn't help. Thanks, Sagy Sorry, but this forum is for the Device Emulator, which is new in VS2005. Please post your question to the micro ...Show All
Visual Studio 2008 (Pre-release) How to get a child's rect
After an ArrangeOverride, how do I get the rect given to the child by the parent in some other ocasion Something like: child.GetRect(); Thanks. :) ...Show All
.NET Development Update myself
I learning WSE. My Web service not authenticate UsernameToken with password SendHashed. Error text: System.Web.Services.Protocols.SoapHeaderException: Server unavailable, please try later ---> System.Configuration.ConfigurationException: WSE032: There was an error loading the microsoft.web.services2 configuration section. ---> System.Configuration.ConfigurationErrorsException: WSE040: Type myWSE.CustomUsernameTokenManager could not be loaded. Please check the configuration file. at System.Configuration.BaseConfigurationRecord.EvaluateOne(String[] keys, SectionInput input, Boolean isTrusted, FactoryRecord factoryRecord, SectionRecord sectionRecord, Object parentResult) at System.Configuration.Base ...Show All
Visual Basic how to copy a datarow to a dataset(typed)
i am having a dataset( ds : type DBx ) from which i am getting a row (x) and i am having another dataset( DSnew : new one of the same type - DBx ) now i need to get the row(x) from ds and copy it to the DSnew as a new row(nx) can anyone please help me. its urgent... Thanks in advance.. I've not tried this but give it a shot... Dim theDataRow as DataRow = ds.Tables (index ).Rows (index ) DsNew.Tables( index ).Rows.Add(theDataRow) Does this work for you it will take that entire row of data on a given index (row index) on a given table and then add it to the other dataset table row ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Beginner shader question - I'm missing something obvious
Hello, all: I'm working on a simple space sim, and I'm trying to render a weapon shot using an HLSL shader. I haven't used a shader before, so I've read through a bunch of code samples, and picked up a couple of books, so I *think* I (kind of) understand what's going on with vertex and pixel shaders. The problem I'm having is that when I enable the vertex shader the mesh I'm rendering is drawn in black. If I disable the vertex shader (comment it out), the pixel shader outputs the color I expect. I've tried it with a mesh I created and with a mesh created via Mesh.Sphere with the same result. Here's the shader code (it's almost an exact copy of the simple pixel shader code from MDXInfo). As you can see, it's totally simple: uni ...Show All
Windows Live Developer Forums cannot deliver messages to MSN bots
i've been hosting 2 bots with the Incesoft bot provider for the last 2 months. after the Messenger service problems (on Wednesday ), i have not been able to reliably host the bots ( MobileRecordBot@hotmail.com and TextAdventureBot@hotmail.com ). the message i get when trying to communicate is : "The following message could not be delivered to all recipients" i've been trying the last 3 nights to get them working again, and have run out of ideas. the bot program seems to be connecting fine to Incesoft's servers, and using the Incesoft admin tools seems to log the bots in and out properly. also, a small # of sessions will work properly when i leave them running overnight. my own user experience is that i can start a session with ...Show All
Visual Studio Team System Profiling web sites under IIS server
I have solution with website "GridViewTest". In start options I specefied "Use custom server" and location http://localhost/gridviewtest/ . When I start application normaly all works nice. When I start profiling from "Perfomance explorer" I get error. --------------------------- Microsoft Visual Studio --------------------------- The web site could not be configured correctly; getting ASP.NET process information failed. Requesting 'http://localhost/VSEnterpriseHelper.axd' returned an error: The remote server returned an error: (404) Not Found. --------------------------- OK --------------------------- I have no errors when starting website from perfomance explorer with option in "Start Options" ...Show All
Smart Device Development mtom
Is MTOM a viable option for client server communciations between Server and a Win Mobile 5.0 device. I was unsure whether WM50 had WSE 3.0 support. Apologies if my question is imprecise. Thank you. You essentially answered my question. Ic ould not be certain if WSE was available on WM50. However, in the event I was unclear, causing the post to be unhelpful, see below: MTOM is a successor to DIME. My question, or the reason for it, was based on a question of whether this method is available to be used on Smartphone devices. The interest to the forum would be applicable in the development of client-server applications using web-services that send sizable data files. In addition to providing easier security, WSE 3.0 provides the ab ...Show All
