Nightowly's Q&A profile
Windows Forms VS2005 MyApplication_Shutdown not getting fired.
We are developing windows application in VS2005 (VB.Net). I have placed resource clearing and audit entry in the "MyApplication_Shutdown" event. But this event is not getting fired when our application exits. When I tired with the sample application, in our system it works fine. I don't know whether I have disabled any setting so that this event does get fired. Note: I have checked application framework checkbox in application settings. Looking at the WindowsFormsApplicationBase class, the Shutdown event is fired right after Application.Run() exits. Not seeing this event means that Application.Run() doesn't exit normally. The only thing I can come up with: an unhandled exception. Do you trap the UnhandledException event ...Show All
Visual Basic Online help doesn't prompt for Proxy Authentication
Hi, If I want to access external web pages through my company's LAN then I have to go through a proxy and that proxy prompts me for authentication before I can continue. This is true for any application accessing the internet including IE, Windows Media Player and RealOne Player. However, not for Visual Studio 2005 Express Online Help it seems! When trying to access online help, instead of being prompted for my internet username and password, I get the following error: 'Search Failed The request failed with HTTP status 407: Proxy Authentication Required.' Why can't the help system prompt me for the authentication details as other applications do Is there a work around for this Thanks Oli I just encountered t ...Show All
Windows Search Technologies how I can get Vista to index Office 2007 Outlook instead of Windows Mail?
Hi there, Now that Vista and Office 2007 have been RTM'd, I have installed Windows Vista and then opened Windows Mail to check an installation issue on a Vista Newsgroup. I then installed Office 2007 and connected to our company Exchange server. Unfortunately I now find that Vista Search only finds indexed Windows Mail items and not any Office 2007 Outlook items. I have followed the suggestion of changing Start Properties menu to point to Microsoft Office Outlook and then rebooted and have even rebuild entire search index again, but it still only indexes Windows Mail items instead of Microsoft Office Outlook! I have also opened the control panel - Index Options - Advanced - File Types tap and ...Show All
Visual Studio 2008 (Pre-release) Validation of inbound data with WCF
Hello, I have run across an interesting problem with validating inbound data and (in this case) using WCF. I have a data object which has two integers, latitude and longitude which i am expecting as part of a call. In this case, the value that the integers initialize to, 0, is also a valid coordinate in terms of latitude and longitude, so my valiations on the server side can not test for 0 as an invalid value. What i had done on the business object validation is compare the incoming data against int.MinValue which works great for unit testing the local business process (which is what the service is calling when it receives a request) because i can assign that value to the member variables of the local business entity when those member v ...Show All
.NET Development ZIP File Creation Using C# and Shell32.dll
Hello, I'm trying to create a zip file in C# using the Windows Shell API (Shell32.dll) with essentially the same code as in the thread titled ("Problem creating Zip File using Shell32.dll" by user "Jeyaraj" - see provided link below) http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=396110&SiteID=1 The code works completely fine on one workstation, but fails in another. I receive a "File Not Found Exception" on the call Shell32 . Folder DestFlder = sc . NameSpace ( TempPath + "\\" + ZipFileName ); I can verify visually that an empty zip archive is available in the specified target destination directory, but the above command consistently fails. I am running Windows XP Pro ...Show All
SQL Server How to check whether SSIS is installed
I'm using the import wizard to create a new table from a flat file source. The table gets created but no data gets copied. What's wrong Here's the report: Operation stopped... - Initializing Data Flow Task (Success) - Initializing Connections (Success) - Setting SQL Command (Success) - Setting Source Connection (Success) - Setting Destination Connection (Success) - Validating (Error) Messages * Error 0xc00470fe: Data Flow Task: The product level is insufficient for component "Source - inSsrc_txt" (1). (SQL Server Import and Export Wizard)   ...Show All
Smart Device Development how to play mp3/wma in my program?
With the API, PlaySound and sndPlaySound, it only play waveform file. I try to use DirectShow with WM 5.0 but still can't play mp3 or wma file. My code is maybe wrong, anyone has good sample with DirectShow to play mp3/wma I think the another way to play mp3/wma is using Media Player control. But I can't find the way to make this work. Could anyone guide me to the right way Thanks... I have a problem like this. I am trying to embed windows media player to my C# windowsCE project but it is impossible now. I think I can do this with the functions of wmp.dll but I can't see them with dumpbin.exe. Is there any solution to embed it to my project without extra program like cfcom. ...Show All
Visual FoxPro Error when opening Foxpro build-in database application: Open File - Security Warning
Hi I upgrade the latest version of Internet Explorer. I received the error (as mentioned in header) when opening the database system. In the box, The publisher could not be verified. Are you sure you want to run this software Name: job000.exe Publisher: Unknown Publisher Type: Application From: \\Server\documents\Jobsys How to verify the publisher Thanks / millbear. http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=971214&SiteID=1 ...Show All
Windows Forms Thread Pools
I'm using thread pools to update multiple windows forms. The question i have is that when i close a form the thread doesn't get disposed and eventually the app locks-up when i open and close to many forms and won't display any data unless the app is restarted. What happens is the threads are getting stuck trying to update the closed form and when it hits that section of code its stays there trying to find the form but can't. It won't get deleted or die it just stays there until all the available threads are used then i get no more updates. Is there a way to delete the threads as the forms are closed or are they supposed to stay and i just need to add more threads to support what i need to get done Control ...Show All
Visual Studio Team System TF31002 unable to connect on 2 different client machines
We are just starting to roll TFS out at our shop. However, we are experiencing the TF31002 error on 2 seperate client boxes. I have already tried the following with now success. Any suggestions I have seen problems similiar to this. This type of connectivity to the Team Foundation Server problem is usually resolved by clearing the client side Team Foundation Server cache. To clear the cache perform the following: 1. Close Visual Studio. 2. Delete the contents of the folder: %USERPROFILE%\Local Settings\Application Data\Microsoft\Team Foundation\1.0\Cache\ 3. Start Visual Studio. 4. Connect to the Team Foundation Server through the Tools menu Connect to Team Foundation Server option. T ...Show All
.NET Development How to improve CPU usage time?
Hi, I am executing a server socket program (Multithreaded). It takes more than 90% of CPU time. This is not allowed in production environment. I would like to keep CPU usage as small as possible. Suggest some ways to achieve it. Thanks & Regards, kalai Hi, Problem lies in the while loop. My program is a TCP Listener, control is checking for incoming data in while loop. while loop is started as a thread. while loop takes away 100% CPU time. Pseudo code ----------- Method 1 -------- Method1() { Thread thread = new Thread(new ThreadStart(ListenForMessagesThread)); thread.Start(); } private void ListenForMessagesThread() { try { while (!_endListenerLoop) ...Show All
.NET Development Cannot Connect to SQL Server 2005
Hello, I have been stuck on this problem for a couple of days. The sys admin gave my username access to a database on sql server 2005 using windows authentication. I try to connect to it using this and it says that my username cannot access the db. What can be wrong, the sys admin said that all looks well on his side. SqlConnection myConnection = new SqlConnection(); myConnection.ConnectionString = "Data Source=serverName;Initial Catalog=DBName;User Id=MyUsername;Password=myPassword;"; myConnection.Open(); Thank you, Karina All you need for integrated security is: Data Source=serverName;Initial Catalog=DBName;Integrated Security=SSPI;"; Try this and let us know if it works. You should never enter your ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Runtime platform determination?
What's the suggested way of determining, at runtime, whether we're on Windows or the 360 Getting the PlatformID & if WinCE then we're on the 360 I saw this line in SpacewarGame.cs currentPlatform = System. Environment .OSVersion.Platform; Spacewar doesn't actually seem to do anything with this value but I wonder if you will get back a different value on xbox than you will on PC ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Error - Spacewar Starter Kit (GSE Beta2)
Hello, I can't run Spacewar Starter Kit, I get an error: Error 1 Error code: -1 encounted when initializing FBX file loader. The file is either corrupted or it is not a valid FBX file. C:\Documents and Settings\ma o\Dokumenty\Visual Studio 2005\Projects\MySpacewarWin1\MySpacewarWin1\Content\Models\p1_pencil.fbx MySpacewarWin1 Eli Tayrien - MSFT wrote: The FBX Importer doesn't work with unicode paths. Trying moving spacewar to a different directory, without the ma o. Does this solve your problem Yes, Thanks a lot. You've helped me so much! :) ...Show All
Visual Studio 2008 (Pre-release) How to combine data from two tables into one EntityType?
Using the vNext August CTP and Linq May CTP LINQtoEntities Sample I would like to include the CategoryName of the Northwind Categories table in the Product EntityType, to be able to do following query: var products = from p in db.Products orderby p.CategoryName select p; foreach ( Product p in products) Console .WriteLine( "{0}\t{1}" , p.CategoryName, p.ProductName); What does the entity model have to look like Thanks! Hi nakrian – The issue Entity Services has with your scenario, is that in Entity Services, Entities need a unique key to define their identity and trying to define an Entity encompassing tables with different keys is not supported ...Show All
