Thornbottle's Q&A profile
.NET Development Requiring authentication using WSE3 and UsernameToken
I am writing a web service that uses WSE3. I want to require that all method calls to the web service have a valid UsernameToken in the SOAP header. Encryption and signing of the messages is not required. (I do not want to use X509 or Kerberos either.) I have created a custom UsernameTokenManager class and it is configured to validate the credentials in the token. I have been able to create a usernameToken and attach it to the client proxy successfully, with a valid password, and have the token manager validate it at the other end. I have also been able to create a usernameToken with a bad password and have the token manager reje ...Show All
.NET Development TextReader or Stream from XmlReader?
My main question: "How can I get a TextReader or Stream object from an existing XmlReader ". Read on for more: I have an existing XmlReader. Let's call it reader1. // customContext and customSettings may or may not make use reader1's properties XmlParserContext customContext = new XmlParserContext(...); XmlReaderSettings customSettings = new XmlReaderSettings(...); & ...Show All
Windows Search Technologies SIMPLE instructions to REMOVE Windows Desktop Search
I have written to MS without receiving a simple, non-MIS/IT description of how to remove this horribly intrusive add-on, that installed itself DESPITE clicking on DO NOT INSTALL. So (and without getting into the politics of who is behind this), all I want is the easy way to remove this program. I have gone into Add/Remove Programs and YES, clicked on Show Updates, but there is NOTHING clearly identified as Windows Desktop Search. ALSO, and most important, I DO NOT want to disable or screwup other programs/software. HELP. What is the point of having multiple users with passwords if ANYONE can access the entire history of EVERYONE ...Show All
Windows Forms Questions on ToolStrip controls
Hi, I have 2 questions regarding ToolStrip controls in .NET 2.0 1. I want to have a drop down menu on a ToolStrip which also enable Checked/Unchecked state. Both ToolStripSplitButton and ToolStripDropDownButton do not have Checked property. Is there any other control in the framework which supports this feature or I have to create my own custom ToolStripItem 2. I write the following code to persist the whole ToolStrip/MenuStrip layout into the user Settings store. // in Form.FormClosed event handler // ToolStripManager.SaveSettings(this); // in Form.Load event handler // Debug.Assert(this != null); ToolStripManager.LoadSettin ...Show All
Visual Studio Express Editions how to remove SQL Server ?
Im trying to uninstall what I have installed before (SQL Server) but i seem unable to remove this file : sqlservr.exe. Im trying to remove everything so i can start again with the installation of VB Express. Its been three days now, still nowhere. I have been able to install both SQL Server and VB Express seperately, but my system went really really slow when using them, it would hang if i tried to create a New SQL Database item. i just would like to start afresh. ANy help is very much appreciated thankyou. DA My advice would be to check MSCONFIG (Start>Run>MSCONFIG) and see if any of the SQL executab ...Show All
SQL Server SQL Server 2005/ ADO.NET 2.0 Begin Transaction Issue
I have an application that was originally built in VS 2003 and was successfully running against SQL Server 2000 and SQL Server 2005 (June CTP). Recently, we migrated to VS 2005 Beta 2 and are running on SQL Server 2005 (June CTP) exclusively. Since the migration, we have some situations where we receive the following exception when attempting to begin a SQLTransaction: Exception Type: System.Data.SqlClient.SqlException Number: 3988 Message: New transaction is not allowed because there are other threads running in the session Stack Trace: StackTrace Information ********************************************* at System.D ...Show All
Visual C# Any Problem in C# & SQL Server 2000 !
I'm a new C# & SQL Server 2000 user. I want to make an MCQ(Multiple Choice Question) type database application with C#(Visual Studio 2003), SQL Server 2000 in Windows XP. I will distribute this software through a Multimedia CD. When the client will use it what softwares they will have to install in their machine They may use Win98, Millenium, 2000 and XP. Please help & encourage me. hi, they will need .net framework on their computer , also they will need MSDE http://www.microsoft.com/downloads/details.aspx familyid=413744d1-a0bc-479f-bafa-e4b278eb9147&displaylang=en hope this ...Show All
Visual Studio VSS 6c database lost all checkins and checkouts
We are using VSS 6c (Build 9238) on a modestly sized Powerbuilder project. We have PB integrated into the source control database so that we can run source control at the PB object level. All was fine until this morning when we discovered that all of our checkout information, and all of the checked-in files were missing from VSS Explorer and from the PB IDE (Powerbuilder 8.0.1 Build 8004). The VSS database appears as though it has reverted to the day it was created, and lost all of the subsequent changes. We have checked the VSS database files on the filesystem, and the change files that we checked in (*.a and *.b files) ...Show All
Visual C# How to get the Windows Username/login
Hi all Any Idea how to get the windows login/username property in C#/.NET environment thanks Hi, I just got the solution from: System.Security.Principal. WindowsIdentity .GetCurrent().Name; I guess I can work from there :) cheers ...Show All
Visual C# Please help InitializeLifetimeService
I created a child AppDomain. I success to create instance from child AppDomain. But I have a issue that the object will be diconnected after 5 min..... I search some post that I need to overrid InitializeLifetimeService method to extend life time... So I try to overrid InitializeLifetimeService method and set the InitialLeaseTime to TimeSpan.Zero But object still be diconnected after 5-10 min... public abstract class ApplicationBase : MarshalByRefObject { public override object InitializeLifetimeService() { ILease lease = (ILease)base.InitializeLifetimeService(); if (lease.CurrentState == LeaseState.Initial ...Show All
SQL Server SQL2005 [264] An attempt was made to send an email when no email session has been established.
[264] An attempt was made to send an email when no email session has been established. The message is from a job which will send email to an operator when it is completed. In the operator notification setting, I'm sure the correct email address has been input for the 'Email Name' text box, such as abc@xyz.com SQL Server 2005 Std Ed, Windows 2000 SP4. However the Database Mail is configured and I can send/receive a test email. Thanks! emil address is virmag192yahoo.com why did you charge me $39.95 when your add says $10.00 off by signing up today ...Show All
.NET Development Assembly and Assembly file version numbers
Hi everyone. Here's an email I recently posted to a respected guy at MS named Vincem ( http://blogs.msdn.com/vincem/ ). I'd like to post this same mail here to see what other people are doing with regard to .Net assembly version attributes. I'm doing a spot of research in an attempt to make an informed decision regarding versioning of .Net assemblies. I've read (and re-read) the blog entries you kindly posted ( http://blogs.msdn.com/vincem/archive/2005/04/01/404441.aspx ) as part of this research. It seems to me there is little consensus on whether to keep the assembly and file version the same or different for .Net assemblies. Looking at a ...Show All
Windows Forms The windows controls suck!
Well I guess the subject of this post sums up what i wanted to say really. How can MS expect developers to make great apps, when they provide all but the simplest controls! Its really in MS's best interests to provide more advanced controls - they should want to make it easy for developers to make great applications on windows. What with Linux&nbs ...Show All
Visual Studio Load remote file to Crystal Report
Hi, I have many reports in many computers inside Intranet, and I like to show the reports in a ASP .Net file, I have this code: string sPath=""; sPath= this .Request.Params[2].ToString(); DataSet ds= new DataSet(); System.Data.SqlClient.SqlDataAdapter dap = new System.Data.SqlClient.SqlDataAdapter(); DataTable myDataTable; Database CRDatabase; Tables crTables; TableLogOnInfo crTableLogOnInfo = new TableLogOnInfo(); ConnectionInfo crConnectionInfo = new ConnectionInfo(); reportDocument1.Load(sPath); But when I run the asp, it show me an error: Load report failed Error of beginning of session: name of unknown ...Show All
Windows Forms DataGrid Questions
I have some questions about the datagrid control. 1. Is there a way to programmatically adjust the column widths equivalent to double clicking the column headers 2. Is there a way to format one of the columns to percent 3. How do I hide one of the columns Here is my code (VB.NET) in case it helps to answer these questions. Dim dt As New DataTable Dim strName As String = cboStudents.Text 'Display the query in the data grid Dim sqlStr As String = "SELECT RunningRecords.Date, " & _ "[FirstName] & "" "" & [LastName] AS Name, " & _ "Books.BookTitle, Books.Level, 1-[Errors]/[Words] " & _ "AS [% ...Show All
