Markus Feirer's Q&A profile
Software Development for Windows Vista InfoCard and CardSpace Self Issued STS
Hi, I would like to know how can my service communicates with the built-in Self Issued STS service when using CardSpace: do I still need to provide my WCF service with a certificate or can it work without Thanks, Amadrias Relying Party should identify itself and support secure communication otherwise client has no reasons to give away his identity. However, theoretically, client app can take the whole responsibility, itself request a security token and send it wherever it wants. In this case client app is actually a RP itself. But anyway I'm sure that Windows CardSpace card selector and its built-in STS will not issue a token without identifying the RP. ...Show All
Visual Basic modify data, and update datagrid!
Hi, I am having a problem updating and displaying data. On a form, i have a data grid which, when the user double clicks on a record my data table updates. For this i am using the following commands: dt = Me .FantasyDataSet.Draft dt.Rows(position - 1).Item(Team) = player & ", " & pts dt.AcceptChanges() As i step through my program, i can see that my datatable, dt, is being updated with new values. i have another datagrid which i want to display the datatable i just updated, but it never updates. I have another routine which i call just after dt.AcceptChanges(): Public Sub updateTeamGrids() Dim oCon As OleDb.OleDbConnection Dim oCommand As OleDb.OleDbCommand Dim ...Show All
Visual Studio Tools for Office VSTO assembly for multiple word document
Hi All, In our application we generate multiple word documents and the user can preview one or more documents through the application. We attach a VSTO assembly to the word document when the user tries to preview/open a generated document. We currently are creating a new Winword.exe process using the code snippet as given below : objmoword = New Word.Application We then attach the VSTO assembly to the word document using the code snippet given below.We do not face any issues in attaching the VSTO assembly and it works fine. If Not Microsoft.VisualStudio.Tools.Applications.Runtime.ServerDocument.IsCustomized(sFilePath) Then Microsoft.VisualStudio.Tools.Applications.Runtime.ServerDocument.AddCustomization(sFilePat ...Show All
Visual Studio 2008 (Pre-release) Databinding XAML
I have a problem in Databinding. Please see this Class Structure: Class aCollection inherits Collection(of bClass) public shared GetAllData end Class Class bClass Inherits BindableParentClass Property A Property B end Class Now I want to fill a ListView by using ObjectDataProvider ObjectDataProvider < ObjectDataProvider x:Key = " Coll " ObjectType = " {x:Type aCollection} " > </ ObjectDataProvider > < ObjectDataProvider x:Key = "CollMethod " MethodName = " GetAllData " ObjectInstance = " {StaticResource aCollection} " > </ ObjectDataProvider > < DataTemplate x:Key = "my ...Show All
Visual C# save then clear event logs
Hello, i'm a freshman on C#... currently, trying to save the eventlogs of Windows to specify location then clear it. how could i save the logs of system & application thanks for your assistance Richard Hi, As the EventLogEntry class implements ISerializable you can serialize your object into a binary object and save it to a file. The way to do it is the following one: 1) You must use: using System.Runtime.Serialization; using System.Runtime.Serialization.Formatters.Binary; 2) Create a binary formatter BinaryFormatter _BinaryFormatter; _BinaryFormatter = new BinaryFormatter (); 3) Optional (if you want to use a simple serialization so if your version cha ...Show All
SQL Server Creating sql server table from dts
I am trying to design a SSIS DTS package that imports an Excel named range (acts as a table) into a SQL Server 2005 database table. The direct import (using the import/export wizard) works fine, but I need to use a DTS package with a data transformation step. The DTS fails to create/replace/or update the SQL Server table. Suggestions Kirk, Thank you for the response. Your book will arrive tomorrow and I expect it to answer my many questions. I am trying to use the SQL Server 2005 SSIS designer to produce a package (SSIS or DTS ) to copy a named range (proxy for an Excel 'table') from a network drive; convert the data types to what I want on the SQL Server 2005 server; delete the database table if it alrea ...Show All
Software Development for Windows Vista Question on an old 16-bit application
We have a legacy 16-bit application that we still support. It was originally designed for Windows 3.1 (remember that ) and its architecture requires a "feature" of 16-bit DLLs where different applications could share the memory space of a common DLL. In the example, the central admin.dll stores the state of the logged in user to the application. Other "modules" can then call that DLL and read and update the state. This has worked all the way up to Windows XP. As we know, in the 32-bit world, and the more secure world of application programming, we wouldn't want to allow different applications to "borrow" the memory space of a DLL, so each application gets its own instance of the DLL, but it seems there was ...Show All
.NET Development inheritance and overidden methods bug?
Hello, today I found some strange behavior in .Net Framework. Lets assume we have a class called Person. This class has the following method: public string getPersonsNameLowerCase() A second class called CarThief inherits from Person. This class also defines the following method: public string getPersonsNameLowerCase() without the override keyword. Why doas the compiler only gives a warning instead of an error Thanks, Richard Thanks, didn't know that. But why than an asp objectDataSource throws an exception, if i follow this scenario Here is the sample: Designer gerated code from a TableAdapter: public partial class GamesTableAdapter : System.ComponentModel.Component { ... [System.Diagnostics.Debugge ...Show All
Windows Live Developer Forums Bug? Pushpin text gets misplaced if pushpin located at the bottom of map
Popup cloud gets misplaced when the pushpin located at the bottom of a map AND the browser window is smaller that the “height” value of the map’s DIV (there needs to be some space below the map’s DIV to reproduce the bug in IE). See the code sample to reproduce the bug. The code sample provides a map in a DIV with “height:500px” and some extra space below the DIV. There is a single pushpin in the very bottom of the map. If browser window height is bigger than 500 pixels then everything works fine. To reproduce the wrong behavior change your browser window height so that it is shorter than 500 pixels in height and scroll the content to the bottom of the page. Now, if you move your mouse over the pushpin the pushpin text appears way below th ...Show All
Visual Studio Tools for Office MS-WORD AUTOMATION ERROR : "The message filter indicated that the application is busy."
Hi, I am getting this error while creating word application instance from vb.net/c# for web applications. Dcomcnfg is configured as per microsoft instructions for the same for the permissions. But still I am getting error: {"The message filter indicated that the application is busy." } If any one can provide the resolution for the same that will be a great help. Thanks and Regards, Ashish Complete Exception detail as below: - exc {"The message filter indicated that the application is busy." } System.Exception + [System.Runtime.InteropServices.COMException] {System.Runtime.InteropServices.COMException} System.Runtime.InteropServices.COMException System.Object {System.Runtime.InteropServices. ...Show All
Commerce Server creating catalogs
I cannot create a catalog for either the CSharp or StarterSite from the CS Catalog Manager on my development server. In Tasks there is no option to create a new catalog and the menu item under File..New is grayed out even though the connection was opened successfully Here's what I did (e.g. for Catalog Service-did same for Orders,Marketing and Profiles). This was not the ideal security scenario but I am just trying to get this product up and running so I can show my boss how it works. Installed MSCS2K7 pre-requisites installed SQL2k5 Installed MSCS2K7 on my windows 2K3 box unpacked both the CSharp and StarterSite Created a local admin acct for MSCS2K7 (call it locadmin) which I used for all 4 services Assigned w ...Show All
Visual Studio Team System Unable to Debug Unit Test
Hello, I am relatively new to writing unit tests with VSTS and I have been unable to figure out how to get a test to run in Debug mode. I've set several breakpoints in the test and run it in debug mode, but none of the breakpoints gets hit - the test runs without stopping at a breakpoint. Is there a secret to getting this to work that I'm missing Thanks, Chuck Thanks for your response. I am starting a debug session the way the MSDN article suggests to start it, but the breakpoints aren't being hit. I think what is going on is when I attempt to run in debugging mode, the breakpoints are highlighted with an exclamation point that says: "The breakpoint will not currently be hit. No symbols have been loaded for this ...Show All
Visual C++ count the number of occurences of an item in a binary search tree
hi, i am currently implementing a binary search tree which stores double numbers in his nodes. now i want to write a function which counts the number of occurences of a specific item. i tried it in that way: [code] template <class Item> typename bag<Item>::size_type bag<Item>::count(const Item& target) const { size_type answer = 0; binary_tree_node<Item> *cursor; cursor = root_ptr; /* STUDENT WORK */ while(cursor != NULL) { if(cursor->data() > entry) cursor=cursor->right(); else if (cursor->data() < entry) cursor = cursor->left(); else if(cursor->data() == target) ++answer; } return answer; } [/code] Is that the right way or ...Show All
Visual Studio Express Editions Removing characters from a string
I am importing a string into a database. I have noticed that from the text file I can see a Square Character. How do I remove these characters from the string Here is some Very early code that I am working on, Dim linenumber Dim theReader As IO.StreamReader = IO.File.OpenText( "test.txt" ) ListBox1.Items.Clear() Do While theReader.Peek <> -1 linenumber = theReader.ReadLine If linenumber.Contains( "MeridianMail" ) Or linenumber.Contains( "No Activity" ) Or linenumber.Contains( "Services Detail" ) Or linenumber.Contains( "Interval Start-End" ) Or linenumber.Contains( "Service" ) Or linenumber.Contains( "Accesses" ) Or String ...Show All
SQL Server Database diagrams
I have just installed SQL server Express and am trying to create a database diagram. When I right click on database diagram, I just get the options to use help or to refresh. There is no option to create a new diagram, Thanks, Sarah i currently have the managemet studio express on my machine and there is support for creating database diagrams. if your are connecting to a remote server through the management studio it could be because of the security settings server side that will disallow the option. if you set up a local server it will give you the option ...Show All
