Software Development Network Logo
  • .NET Development
  • Visual C++
  • Visual C#
  • Game Technologies
  • SharePoint Products
  • Smart Devicet
  • SQL Server
  • Visual FoxPro
  • Windows Forms
  • Microsoft ISV
  • Audio and Video
  • Visual Studio
  • Windows Vista
  • Visual Basic
  • IE Development

Software Development Network >> Hans Preuer's Q&A profile

Hans Preuer

Member List

omarmhd
anshuman_atri
lyosha
Mike Aleksiuk
jiterbug
dumbo
Barry Martin Osprey
xyzt
Noogard
Simon_X
Hoakie
TheMaj0r
kemal
okiebugmv
Alan.Hill
Bloom326984
Steve from adzac
OC
altamash
Will Merydith
Only Title

Hans Preuer's Q&A profile

  • Visual Studio Team System TeamFoundationServer.EnsureAuthenticated() appears to hang in ASP.NET app

    I have the following code in the code-behind C# file of an ASP.NET application: TeamFoundationServer tfs = TeamFoundationServerFactory.GetServer(m_strTeamSystemServer, new UICredentialsProvider(); tfs.EnsureAuthenticated(); Works fine when in my development environment inside the Visual Studio solution. Well, the connection to tfs works anyway. I don't get prompted for credentials. The problem is when I copy the website to my deployment environment. When tfs.EnsureAuthenticated(); is called, the site just "hangs". It sits there in a loading state (this code is called in my Page_Load) forever, or at least until I got tired of waiting (5 minutes or so). Any ideas what could be the problem here Why don't I get a crede ...Show All

  • Software Development for Windows Vista Where should I store Global Application data on Vista?

    I have some files which should be accessible for all users for read and write. Where should put this type of files on Vista In XP I would put it into Program Files\[MyApp] folder, but in Vista you need to have Administrator rights to write into Program Files. I thought about putting files into All Users folder, but not all users can write there. If you are using Windows Installer (which it seems you are), it's trivial to set permissions on your AppData directory by using the LockPermissions table. That avoids you having to write any ACL code at all and is the recommended way of doing things. ...Show All

  • Visual Basic VB.Net SQL Server 2005 Accessing a stored Procedure via a datagridview

    Hello, I've created a datagridview from a table in SQL server 2005. In the table I have one text field and two bit fields that I'd like to be updated from the datagridview during runtime. I need to know how to do this with in line sql as well as by hitting a stored procedure. Dim cmd As New SqlClient.SqlCommand() Dim param As SqlClient.SqlParameter Dim dr As SqlClient.SqlDataReader Dim conn As New SqlConnection() conn.ConnectionString = "Data Source=xxxx;Initial Catalog=xxx;Persist Security Info=True;User ID=xx;Password=xxx" cmd.Connection = conn cmd.CommandType = CommandType.StoredProcedure cmd.CommandText = "makeuncallable" param = New SqlClient.SqlParamet ...Show All

  • Visual Studio 2008 (Pre-release) How: Menu with predefined items AND bound items?

    I have a menu with a menuitem that should contain 2 items which are the same all the time and then it there should be a separator after which data bound items should be placed. here is the pseudocode of what i want to make: <Menu> <MenuItem Header="Attachments" ItemsSource="{Binding Path=ListAttachments}"> <MenuItem Header="New..."</MenuItem> <MenuItem Header="Delete selected..."</MenuItem> <Separator /> <!-- the bound items should follow here --> </MenuItem> </Menu> you can use Composite collection and set the Collection property of the ColletionContainer <Menu Name="menu"> <MenuItem Header="Attachments" N ...Show All

  • SQL Server Currency Variables?

    Starting in my control flow, I execute a data flow that populates a recordset via SQL 2005 Stored Proc. One of the columns in source table is a currency type. Back to the control flow, I have a for each container that includes an execute sql task that updates or inserts records into another table. I get precision or data type issues since I can not assign the package variable to a currency data type. The only way I can get this to work is if I convert the currency column in my data flow to a string and then cast the variable in my update/insert sql task. Any suggestions Thanks....Gary One suggestion would be to map the currency type in the recordset to a variable of type Object in the ForEach contai ...Show All

  • Visual Studio Team System TFS compatibility with Surround SCM in raising post check-in event

    Hi There, Can somebody please let me know if there's any compatibility issues between the Team Foundation server and the 3rd party version control systems I'm finding the following error when i try to get an CheckinEvent notification (through BisSubscribe utility) from the SurroundSCM version control system. The error displayed when assigned the version control system to "Surround SCM" from Tools -> options -> Source Control -> Plug-In Selection (Current Source Contol Plug-In) "There was a failure while initializing the Surround SCM source control provider. You cannot use this provider to perform source control operations." My objective here is to trap the check-in event ...Show All

  • .NET Development System.Web.Hosting or IIS gets Object reference not set to an instance of an object

    Has anyone seen this error before It seems to be in IIS/ASP, not my web service: It just started happening to me with an existing web service on a new PC: request was: Http://localhost/mydirectory/myservice.asmx wsdl error was: [NullReferenceException: Object reference not set to an instance of an object.] System.Web.Hosting.ISAPIWorkerRequestInProc.GetServerVariable(String name) +1618 System.Web.Security.WindowsAuthenticationModule.OnEnter(Object source, EventArgs eventArgs) +593 System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +92 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +64 have you been able to solve ...Show All

  • Visual Studio Express Editions Move pogam

    I wat to take my program to a different computer so i put it on a USB key and took it to the computer then when i go to run it, something happened and errors come up and the program doesn't work. How to i pack it up so i can take it to a different computer and edit the code Instead of just copying the files - Do a click once deployment to CD. This will create a proper deployment setup which you can then run on other machines - one of the requirements in the deployment will be .NET 2.0 Framework so if its not on the machines it will install it. Click Once is really neat. A video that shows a lot of the simple stuff on click once and answers a lot of questions is at http://dnrtv.com/default.aspx sh ...Show All

  • SQL Server Conditional statement with a cast from string to date

    My source file is showing column 10 as string. My destination table is datetime. I am using the derived transformation with a conditional statement. How do I convert the value from string to date. Everywhere I try the ( DT_DATE ) I get an error. [Column 10] == "01/01/0001" " 01/01/1801" : [Column 10] <= "12/31/1801" "12/31/1801" : [Column 10] Where do I check that I only see the input defined in the derived column transformation which is dt_string 50. The column is defined as datetime in the table. ...Show All

  • SQL Server SP2 y SQL Native Client

    Hello. Does anybody knowk if it's necessary to upgrade Sql Native Client to conect to a Server when you has upgrade it to Sql 2005 SP2 That is to say, can you conect to a Sql server 2005 SP1 and to a Sql Server 2005 SP2 from a client with the same Sql Native client or you have also to upgrade it Thanks. Is there a link to only update the sqlncli instead of running the whole SP2 for the update of one file (or the few files for this client piece) Thanks, PaulyDH ...Show All

  • .NET Development Windows Vista x64 Conexant Audio Driver Problem

    I Have a gateway Laptop, Model number MX6437. AMD Turion64 processor, ATI Radeon Xpress 200m Graphics, 1 Gig of Ram (upgraded from 512). I Downloaded The Windows Vista Beta 2 x64 bit Version. It installed ok, but I have Found I have no Sound driver. I have Tried Windows Update, no luck. I Have Also Rebooted my pc and pressed f8 and turned off the Assighn digital signiture. Rebooted, Still no sound. I have tried Drivers that people on here have recomended but still no luck. Even the ati south bridge driver. every time i do an install on thier recommended driver they say worked for them, i get an error message saying: error installing software. The specified file cannont be found. I still have a red x in the sound icon. I have a conexant aud ...Show All

  • Visual Studio Team System Work Item Start/End Date

    How can I update the start/end dates in my work items Wayne Hi Wayne, I understood your question in different way..if it is wrong please apologize....Usually the Start Date field which internally stored in the database...which is under Microsoft.VSTS.Scheduling.StartDate as mind said....but you can't see the same in the workitems UI....if you would like to have some DateTime control which you can customize as START DATE and END DATE...and let the other user to enter those information and you can track the same..for future purpose..or reporting etc... You can customize the process templates...as mind said....adding custom date time controls and displayed in workitems.. Thanks, Kathir ...Show All

  • Visual Studio Express Editions C# almost double as fast as VB.NET?

    Check this out: C# code: using System; class SpectralNorm { // // // // Var Def // static DateTime startTime; static DateTime stopTime; static TimeSpan elapsedTime; static long elapsedMS; static void Main(String[] args) { startTime = DateTime.Now; int n = 1000; if (args.Length > 0) n = Int32.Parse(args[0]); Console.WriteLine("{0:f9}", new SpectralNorm().Approximate(n)); stopTime = DateTime.Now; elapsedTime = stopTime.Subtract(startTime); elapsedMS = (long)elapsedTime.TotalMilliseconds; Console.WriteLine("Elapsed Time: {0}", elapsedMS); Console.ReadLine(); } double Approximate(int n) { // create unit vector double[] u = new double[5000]; for (int i=0; i&l ...Show All

  • Visual Studio 2008 (Pre-release) Deserializing A SAML Token Received From An STS?

    Having received an RST message, an STS serializes a SAML token into the body of the RSTR message returned to the client. In that the RST and RSTR support was pulled from WCF, it would appear that the SAML token need be deserialized on the client side for caching and reuse. Documentation concerning the SamlSerializer, SecurityTokenResolver, WSSecurityTokenSerializer and SecurityContextSecurityTokenResolver classes is sparse, however, and attempts to do so consistenty result in: "The SecurityKeyIdentifier that was found in the SamlSubject cannot be resolved to a SecurityToken. The SecurityTokenResolver must contain a SecurityToken that the SecurityKeyIdentifier resolves to." Little seems to have been written concerning th ...Show All

  • Visual Studio 2008 (Pre-release) Duplex messaging to COM client

    We have a service that uses duplex messaging to provide a callback to the client, which is currently a VB program. However, we are unable to get the callback to the client as there seems to be no way to pass the clients InstanceContext to the service in the GetObject argument that's used get the proxy for the service in the VB code, e.g. Dim searching As SearchingServiceProxy Set searching = GetObject("service:address=net.tcp://localhost:8000/SearchingService, binding=netTcpBinding") searching.StartSearch "SomeSearchString" The call to the service works fine, however the callback doesn't seem to be received by the client as the callback method is never run. Cheers Anthony Unfortunately, with much weaker ...Show All

©2008 Software Development Network