Tony Bater's Q&A profile
Architecture Should a good business tier provide async methods?
Hello Forum I have developed a business tier that in some cases is located remote and sometimes located on a web server with the web frontend. I have frontend developers requesting that I make async versions of all methods or at least of some in the business tier. They want to use this so they can use with the new "Asyncronous Pages" in ASP:NET 2.0. (See links - the last one includes an impressive benchmark) I'm not experienced in providing async methods from a business tier. I have 2 questions. Should a good business tier provide async methods I'm wonding what issues there can be My setup is like this: - The business tier can sometimes be located remote using single call remoting. - The identity must be on ...Show All
Visual Studio 2008 (Pre-release) Getting Error when try to publish the exe with XML file.
Hi, When im trying to publish the exe, im getting 'System.Security.SecurityException: Request for the permission of type 'System.Security.Permissions.FileIOPermission' error. Actually im reading a XML file inside the code behind. If ill remove that then it wont create any problem i think. Please, can anyone help me to publish it I think you can first publish the xml file on your web server, and use XBAP to read it, actually XmlDataProvider can read the xml data from the remote web server. for example: <XmlDataProvider x:Key="xmlData" Source="http://www.cnblogs.com/sheva/Rss.aspx"/> Sheva ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Can I dispose of instances without explicitly removing all references to them?
As I understand it, because C# is a managed language, I shouldn't need to dispose of any instances I create, as they are removed by the garbage collection when there are no more references to them. I have all my instances of game objects (enemies, projectiles, etc.) stored in lists (System.Collections.Generic.List), so that more objects can be added on the fly, and they can all be updated and drawn with foreach loops. Is it possible to dispose of one of these instances without explicitly removing the instance from the list For example, from within the class itself I suppose this could be done indirectly, by having a boolean property on each object that flags the object for deletion from the list by another loop, but this seems a bit messy. ...Show All
Windows Forms Copy paste from excel to datagrid view
Dear All,I am creating a datagridview to update the database.Some user input directly to datagridview, but some user prefer copy paste from excel directlyto datagridview and modify as necessarily.But when i try i can't copy paste from excel directly to datagridview as i used to be with microsoft access.Can anyone help me to solve this issue Any help would be very appreciated.ThanksRegards,Freddy Halim Freddy, This is a tricky situation but here's my approach: 1. Add a button --> Paste From Excel 2. Sub PasteFromExcel_Click() 3. Grab item from clipboard (API) 4. Paste into another blank spreadsheet 5. Loop existing values into an array 6. Place array values into datagridview via &quo ...Show All
Visual C# VS2005 IDE Crash!
Hi folks! I have an "interesting" problem with the IDE of VS2005 which crashes with no warning or error messages! Below I send info from my PC. The crash happens very often (every 15min) but I have not seen a pattern yet that causes the crash. It happens when I do simple things like clicking at the IDE's menus. I run WinXP SP2 and develop asp.net solutions in C#. I heard that there is a SP for VS2005 but it is still in beta phase and I am a bit reluctunt to install it. I know all of the info below is overwhelming... if you have time please let me know what I can we do to solve this crash. Thanks in advance! George I. Below is my system information: Microsoft Visual Studio 2005 Version 8.0.50727.42 (RTM.050727 ...Show All
Visual Studio Express Editions A message of thank.
Hello. I have completed and finished my first 2 projects. I want to thank every one who who helped me, I can't remember all your names, but you know how are. I especialy thank Wellnowletssee who gave me a lot of help with my first project, and my thanx also to Andreas Johansson who helped me with my second project. Being an absolute beginner I realy do apresiate the help you all gave me. Thank you very much i deed to you all. Thank you. ...Show All
Community Chat updated browser
removed This browser would not suite me. It has too many displayed options. Most of the time that I browse internet I work on what the webpage displays to me and not any menues, addressbars, toolbars that the browser displays to me. Probably your target audience isn't users like me but a general tip is to try to keep the data view (web view) as large as possible ...Show All
SQL Server SQL Server Manager Studio: Error when loading
All of a sudden I am getting this error when I run SQL Express Server Manager Studio. any Ideas whay and how to fix it ------------------------------------------------------------------- See the end of this message for details on invoking just-in-time (JIT) debugging instead of this dialog box. ************** Exception Text ************** System.BadImageFormatException: An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B) at Microsoft.Win32.Win32Native.SHGetFolderPath(IntPtr hwndOwner, Int32 nFolder, IntPtr hToken, Int32 dwFlags, StringBuilder lpszPath) at System.Environment.GetFolderPath(SpecialFolder folder) at Microsoft.SqlServer.Management.UI.ConnectionDlg.Personalization.get_ ...Show All
SQL Server Copy Excel sheet to SQL 2005(Dev Edit X64) via SSIS
Ok... This worked on the laptop I had last week. That laptop has ceased to be. I have a new one, which may be my problem. I have a package that takes an Excel Sheet, makes a couple of conversions via the Data Conversion object, and places the rows into my SQL 2005 X64 database. Here are the major exceptions: 1. [Excel Source [2479]] Error: SSIS Error Code DTS_E_CANNOTACQUIRECONNECTIONFROMCONNECTIONMANAGER. The AcquireConnection method call to the connection manager "Excel Connection Manager" failed with error code 0xC0202009. There may be error messages posted before this with more information on why the AcquireConnection method call failed. (THERE WERE NOT) 2. [Connection manager "Excel Connection Manager&quo ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Problem drawing into stencil buffer
I'm trying to draw a alpha-blended texture into the stencil buffer in order to mask a region of the screen. My test stencil texture is pretty simple; it's black with a large white circle in the center (same for the alpha channel). When I render the texture to the color buffer, I see a nice white circle in the center of the screen. However, rendering it to the stencil buffer creates a jagged circular mask region in the center of the screen. It still functions as a mask, but the borders of the circular region are jagged and inconsistant. Here's how I'm setting up the render states, etc.... Any ideas // Setup state to render to stencil buffer only graphics.GraphicsDevice.RenderState.ColorWriteChannels = ColorWriteChannels .N ...Show All
Visual Studio Express Editions open a form desinger
Hi, I am using Visual C++ Express Edition 2005, My problem is that once I've excluded form1.h[design] from the preject. I am not able to reopen the form1.h file with Designer (I can not view designer) even after I include the .h file to the project. Please help, Thanks you... Hello Does this solve your problem: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=1072456&SiteID=1 Thanks Damien ...Show All
Visual Studio 2008 (Pre-release) January 2007 CTP missing WPF templates?
Perhaps I'm completely incompetent, but I do not find any WPF templates in my recently installed January 2007 CTP of Orcas. Perhaps it's because I installed the latest SDK (so I could have a copy of XamlPad) which is for Visual Studio 2005 I am with you EricSchm, I'm not necessarily ticked off, but I found myself very confused like yourself and having to spend way more time than I had anticipated pieceing all these things together. Someonwere on the front of MSDN .NET page should be a post with a high level summary of all these things and it should be made known the January CTP of Orcas does not have the cider components, I like you assumed it did and wasted a ton of time (and bandwidth) pu ...Show All
SQL Server Trace stored proc calling event
I wanna use the SQL Profiler to trace some stored proc. calling events, such callings are originated from an .NET or Java application. Which event, RPC:Starting or SP:Starting, should I use Start with: STMT:Starting SP:Starting Errors eventually audits HTH, jens Suessmeyer. --- http://www.sqlserver2005.de --- ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Where is a Tutorial??
hello, where can i find a tutorial, or a guide step-by-step, some examples It took me a moment to realize that I should check the Help section in VC# express, and then I got to the excellent Getting Started With XNA section. I think a moderator should pin a post with that info and links to the forums above because I have a feeling other people will forget to consult the built-in help. ...Show All
Visual Studio Download Errors
I downloaded the trial version and am not sure it worked right. The stated download size was 2.7 GB, but the IMG file I downloaded was only 2.0 GB. I extracted it using ISOBuster, and received some messages that it could not read certain sectors. I clicked ignore and installed the product, but then received an installation error 2324. How do I know if I have it installed correctly The error message is below. I tried downloading again and got the same file size, so I'm guessing 2.0 GB is correct, even though the web site says 2.7 GB. However, I may try again with a download manager. Can you suggest any download manager products [11/09/06,21:52:56] MSITOSIT: [2] CRootComponent::SetSourcePath() - Failed ...Show All
