Anthony Tarlano's Q&A profile
Visual Studio Sandcastle - System.NullReferenceException related to interface implementation
Firstly, I should note that I have found the solution to the problem I am about to describe, and that what I am querying is if the behaviour I have found is a bug. I am receiving the error message below from BuildAssembler during the processing of several of my assembly's type information. Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object. at Microsoft.Ddue.Tools.CSharpDeclarationSyntaxGenerator.WriteNormalMethodSyntax(XPathNavigator reflection, SyntaxWriter writer) at Microsoft.Ddue.Tools.CSharpDeclarationSyntaxGenerator.WriteMethodSyntax(XPathNavigator reflection, SyntaxWriter writer) at Microsoft.Ddue.Tools.SyntaxGeneratorTemplate.WriteMemberSyntax(XPathNavigator reflection, Synt ...Show All
SQL Server File System Task Error
Hi, I am using the 'File System Task ' to create a directory structure (e.g ..\DB; ..\DB\LOG; ..\DB\BACKUP; ) I set following properties for the single tasks: UseDirectoryIfExists = True; Operation = Create Directory; The task works fine before installing SP1 on the server. Now it creates an ERROR if the directory already exists and it is not empty. SSIS package "testcreatedirectory.dtsx" starting. Warning: 0xC002915A at Create DB Directory, File System Task: The Directory already exists. Error: 0xC002F304 at Create DB Directory, File System Task: An error occurred with the following error message: "Das Verzeichnis ist nicht leer.". (The Directory is not empty.) Task failed: Create DB Directory ...Show All
Visual C# Spell Checker using word.
I came across this code on the net and was wondering if anyone could help me tweak this to search more than just one textbox. Thanks protected void Button1_Click( object sender, EventArgs e) { Word. Application app = new Word. Application (); app.Visible = false ; object template = Missing .Value; object newTemplate = Missing .Value; object documentType = Missing .Value; object visible = true ; object optional = Missing .Value; object saveChanges = false ; object originalFormat = Missing .Value; object routeDocument = Missing .Value; Word. _Document doc1 = app.Documents.Add( ref template, ref newTemplate, ref documentType, ref visible); doc1.Words.Firs ...Show All
Software Development for Windows Vista Rehydrating instances persisted in previous execution
Hello, My project is similar to expense reporting. Someone sends an order, it is stored into a list in memory, and then the workflow waits for an event (Reviewed). I've just added the default SQL persistence service and it works fine. I've subscrived to the idled, unloaded, persisted and loaded events and I see that once it receives the order and it starts waiting for the reviewed event, the instance is unloaded, and once the event arrives it is rehydrated and completed successfully. What I want to do now is: say I start the host, and I receive 2 orders. One is reviewed and accepted, so its removed from the persistence database. The other isnt, so its still kept inside the DB. Then the host closes. Later, the host is re-opened a ...Show All
Software Development for Windows Vista Using AVIStreamWrite seems to be corrupting AVI headers on Vista (RC2 build5744)
I am using the Video for Windows (VFW) API to create AVI files. My code works fine on XP Pro SP2 and Windows 2000. However, the same code running on Vista creates the AVI files with bad headers. The corruption begins after the video and audio stream format headers starting at the JUNK chunk. Example: //Stream header info comes before this Low rate size 00000294 (660) 00000000000000D4 JUNK 00000000 00000000000000DC LIST 0002200E movi 00000000000000E8 00000000 00000000000000F0 00000000 00000000000000F8 00000000 Notice the JUNK chunk has an invalid size of 00000000. And the 'movi' tag falls within the junk chunks. This throws off the indexes. I found that this "junk" gets wri ...Show All
.NET Development Search an Access database while typing information in a textbox
Hello! Here's the situation: I've created an Access database containing several product's names. I have binded the database with my application. Here's what I want to do: I want to type the first letter of a product's name and on a particular list to be shown all products starting with that letter, after typing the 2nd letter the list shall contain product's name starting with those two letters, etc. I hope you can give me a little clue! Any help appreciated! If you used a combobox it has two mebers that can be used for databinding .DisplayMember //the text displayed in the list .ValueMemeber //a hidden value associated with that list item when you bind to combobox from the dataview set its .DisplayM ...Show All
Visual C++ Napster Visual C++ Runtime Error
When starting Napster I now get an Error that says Microsoft Visual C++ Runtime Library Runtime Error Program E:\Program Files\Napster.exe The application has requester Napster to terminate in an unusual way. I have contacted Napster and re-installed it along with updating Media Player 10 and in line with other mentions on these forums I have deleted Google toolbar and Mozilla Firefox. I have AVG free and Zone Alarm as firewall and antivirus and i am running XP student with SP2. I have also deleted DivX video software and Itunes and run spyware tools, MS update and Ccleaner. I still get the above error. Can anybody suggest what has happened or what I may do to get Napster working again. Thanks Tony ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Forcing GraphicsDevice creation before Game.Run
In order to incorporate Xna into an existing engine without a lot of ugly hacks, I need to force the GraphicsDevice to be initialised before the program loop starts (Game.Run). Can this be done Assuming this isn't possible (as seems likely), I'd need to ditch Game and handle device creation myself. This looks straight forward enough, except that it requires a handle to a window. This is no problem in windows, but what about on the xbox 360 Is there some sort of factory available that returns a GameWindow implementation for the platform it's running on Has anyone manually created a graphicsdevice on the 360 Michael Hansen wrote: can you get is to work on xbox can you please post a sample ...Show All
SharePoint Products and Technologies Auto create a workspace - event handler or workflow designer?
Hi - what would be the quickest way to have a workspace automatically created when a check box column is ticked for a list item Basically we need to replicate the functionality available in a calendar list where you can tick the checkbox to create a workspace when adding a new item but we need it for a Task and Issue list. From what I can tell, some level of coding is required but if anyone knows a way of creating this functionality without code that would be ideal. Otherwise whats the best design for coding this Thanks Ishai - thats some good info. I was thinking along the same lines - everything we need to do in the workflow can be accomplished in Sharepoint Designer except this one stage. Using the ...Show All
Visual Studio Problem using SandCastle with ASP.NET 2.0 WebSite
Hello, I have all the pre-compiled dlls of the asp.net 2.0 application, I trying to use Eric Woodruff's sandcastle GUI While building the build fails asking for System.Configuration unresolved assembly reference: System.Configuration (System.Configuration, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a) required by App_WebReferences BUILD FAILED: Unexpected error in last build step. See output above for details. Does it necessary that i should include all the namepaces used to build documentation for a project. Can anyone point me who to use sandcastle with asp.net web applications. thanks!! sqlnew Use the Dependencies property of the project to add Syst ...Show All
Windows Forms Catch all Exceptions
Hi I have a program with several Forms. What I need is to log all exceptions (save them into a database). Is this possible without having to write a "try{ ... } catch(...) {...}" everywhere (and call a static log-method within the catch-body). Kind Regards Well, the best way to be able to catch every exception in your application is by running it in debug mode via Visual Studio. When it runs into a(n) exception, it will display the error, and the type of exception it is. Then you can just implement the code for that particular exception. So if you select a value of -1 and it presents you with an exception, run it in debug mode and find out what exception it is, then implement the catch statemen ...Show All
Visual Studio 2008 (Pre-release) Wrap panel will not wrap
I am trying to populate a list box with x number of buttons. I have it in a ListBox wrap panel but it will not wrap. Below is how my window is set up. No matter what I try it will not wrap the buttons, they are always in a straight horizantal line. It wraps the the size of the window but when the windows is resized the buttons do not change their wrapping. < Window x:Class = " TestCOMCall.Window1 " xmlns = " http://schemas.microsoft.com/winfx/2006/xaml/presentation " xmlns:x = " http://schemas.microsoft.com/winfx/2006/xaml " Title = " TestCOMCall " Width = " 500 " Height = " 500 " > < Window.Resources > < DataTemplate x:Key = " SourceButtons " > < Button Content = " {B ...Show All
SQL Server Trouble logging in to SQL Server 2005 Express with domain user account
Hi all, I have a SQL Server 2005 Express edition instance set up on one server, and IIS on another server. The SQL Server process account is a domain user account, which I have added to the local groups that SQL Server created during installation (I originally used a local user account instead of domain account; however, the problem occurs with both). SQL Server runs fine, and if I set my IIS application pool identity to a domain admin, my web app can access the database and retrieve the data necessary. However, I have a domain user account that I want to use to run the app pool and retrieve the data. The domain user account is added to the IIS_WPG group on the web server. On the database server, I have created a login for the ...Show All
Windows Live Developer Forums mouseover mousedown NEW API AND MAP CONTROL
Hi all- I'm happy to announce that the latest VE map control went live last night! You'll notice we rolled up some of your suggestions and bug reports into this latest release, and added a couple of really nice new features. Here's a quick summary: 1. Custom tile layers: use MapCruncher or some other tool to create map tiles, and now you can easily add them to your mashup! I've got an example on the interactive SDK that adds a LIDAR image over the map; it took me 10 minutes in MapCruncher and 5 minutes with the APIs. 2. Polygons. We added a VEPolygon object that's a lot like the VEPolyline object except that it also supports polygon filling. 3. Address disabmiguation. We've added a VESearchResult object that returns when you do ...Show All
SQL Server Database connection problem
Hi I have installed a named instance of SQL Server 2005 Express (.\SQLEXPRESS) and successfully restored a database that is running on SQL 2000 on another machine. I am trying to connect via ADO to the database and have used a DSNless connection and a system DSN to connect to the database and get the error "Data source name not found and no default driver specified". However, when testing the system DSN connection, the test completes successfully. The SQL express service is running under the Local System account, SQL Express is configured to use Windows authentication and the user connecting to the database is a local administrator. Any assistance would be appreciated. Alex Hemantgiri, This ...Show All
