lamont_23's Q&A profile
Visual Studio 2008 (Pre-release) Username credential without windows account
Hi, I'm looking at the SupportingToken sample. The sample uses client and server certificates and then add a username password "on top" of this. The username and password must be those of a user on the client machine. My "users" will not be the a windows user on their machines.I s it possible to use an arbitrary username/pass Thanks If you want a username/password pair that's not a Windows account then you will need to subclass the UserNamePasswordValidator and override the Validate method: public class MyPasswordValidator : UserNamePasswordValidator { private ...Show All
SQL Server Counting weekdays in a month
I am trying to create a query that has a bunch of billing information in it. Everything is billed monthly. They want a column that calculates the count of days of the week only in each month. Does anyone know how to do this SELECT count(weekday ), (p.serv_mo_dt, count(distinct c.Pgm_Clnt_ID) as Client_Count, c.site_id As SiteID, b.brd_nm, avg(unit_billed_qy) as Avg_units, avg(ccms_line_am) as Avg_Amount_paid FROM VCCS_CLIENT c INNER JOIN VCCS_Paid_claim p ON c.Pgm_Clnt_ID = p.Pgm_Clnt_ID AND c.Site_ID = p.Site_ID, vccs_site_brd_xref b WHERE (c.Pgm_Clnt_Katrina = '1' or c.Pgm_Clnt_Rita = '1') and p.inactv_fl = '0' ...Show All
Visual Studio Team System Where is the extensibility kit of TFS beta3?
I installed VS2005 SDK october and December version, I can't find the part on extensibility of Team Foundation server What kind of SDK should I download The API docs are in a sub-directory of Program Files. In the following post, I mention the location of the version control API docs. The rest are in nearby directories. http://blogs.msdn.com/buckh/archive/2005/12/09/502179.aspx Buck ...Show All
Visual Studio 2008 (Pre-release) Scroll a ListView dynamically?
I have a ListView that has to scroll to bottom on every item insert. Is this possible ListView displays scrollbars automatically when not all items can be displayed. If you are still having problems with this you might check out this xamlxaml.com entry which includes an example xbap and source code. ...Show All
Visual Studio Open a C++ header file in custom project crashes VS2005
We create a custom project type in C++/COM. There are some C++ header file in our project. When open them from our project, after click the the type or member combo box on the top of teh editor window, VS2005 crashes. As I understand, the combo box should be provided by C++ language service and should have nothing to do with our project type. But directly open the header file from file->open menu works fine. I also tested with the IronPython sample, when run under the EXP hive, we met the same issue.(add a c++ header file to project-> double click the node in solution exploer->click the combo box-> VS crashes) The call stack when ...Show All
SQL Server creating users in sql eypress
Hi, wanted to add a login in via c# to sql server express. Is this possible I treid this: String connString = "data source=xtrlt027;Initial catalog=master;Integrated Security=true;"; SqlConnection conn= new SqlConnection();; conn.ConnectionString = connString; try { System.Console.WriteLine("Opening Connection..."); conn.Open(); System.Console.WriteLine("Connection opened!!!"); SqlCommand cmd = new SqlCommand("create login tommtk with Password='tomm2tomm'; use master; create user tommtk;", conn); cmd.ExecuteNonQuery(); ...Show All
.NET Development ss:Formula in excel saved in xml format
Hi, I have a have a excel file in XML format. In the first cell I want to have a exact formula not a reference formula, meaning instead of formula="=RC[1]+R[1]C[2]" I want it to be formula="=A1+B1". Is there anybody how can help me in this case Here is the file. You just need to save it as xml and open it with the excel. < xml version="1.0" > < mso-application progid="Excel.Sheet" > <Workbook xmlns="urn:schemas-microsoft-com:office:spreadsheet" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:x="urn:schemas-microsoft-com:of ...Show All
Visual Basic Handling of unsigned values?
Why is this code not compiled Const UnsignedValue As UInteger = &H80004005 To make it more strange this compiles: Const UnsignedValue As Integer = &H80004005 The value is larger than Integer.MaxValue but smaller than UInteger.MaxValue. In VB, literals (including hexadecimal literals) are considered to have type integer - as such &H80004005 is actually a negative number (representation in two's complement) - so in your first statement you're trying to assign a negative integer to an unsigned variable, and in the second statement you're assigning a valid negative ...Show All
Visual Studio Express Editions CSC command line options if using Microsoft.DirectX.AudioVideoPlayback
Hello, Quick question : How to compile from the command prompt, if application is using Microsoft.DirectX.AudioVideoPlayback. I have attempted the following .... csc application.cs csc /reference:Microsoft.DirectX.AudioVideoPlayback.dll application.cs The first attempt results in error CS0234 : The type or namespace name 'DirectX' does not exist in the namespace 'Microsoft' (are you missing an assembly reference ) The second attempt results in error CS0006 : Metadata file 'Microsoft.DirectX.AudioVideoPlayback.dll' could not be found Thank you for your time. Best regards, James Look at the /reference compiler ...Show All
SQL Server SQL Server 2005 Reporting Services on Windows Vista
Hello out there! I've tried to install all features in the SQL Server 2005 to run on Windows Vista. The Reporting Services failed to install. I think it is because of the IIS 7.0 that 's not recognised by SQL Server. Is there anyone who have had the same problem and is there anyone who have a suggestion to solve this problem Hi Kjelle, We found that Vista is not running IIS as we know it. If you parse the data in the HTTP stream from Windows 2003 Server for example, (use Fidler or something similar) you will find the server to be Microsoft IIS 6.x Server. Now parse the stream in Vista. It comes back Microsoft HTTP AP ...Show All
Visual Studio Team System Access Denied: User needs the UseSystem global permission
Sorry this is a little long. I wanted to provide as much detail as possible, so someone can tell me where I am being stupid. I'm trying to set up an Active Directory group who can create Team Projects. This would allow me to manage who can create Team Projects from one place. I am running TFS Beta3 and VS2005 RC in a dual server configuration. I created a AD group, called TFS Project Users. I added a generic user, Developer2, to this group. I created a Team Foundation Server group called Team Project Creators. This group is automatically added to the [SERVER]\Team Foundation Valid Users group when you create it. I added my AD group ...Show All
Microsoft ISV Community Center Forums Lack of mouse scroll wheel support in VBA
Folks The mouse scroll wheel does not work in VBA. This has always puzzled me as to why this support does not exist since Office 2000. This problem was originally caused by a MS Mouse driver change that I'm told was communicated long in advance to other MS folks. This problem has existed for several versions of Office. As far as I'm concerned this should've been fixed in the Office SPs. And yes, I'm quite aware of the workarounds VBScroll and Freewheel. Tony I agree with Tony. This is something that ought to be fixed. In fact it ought to have been fixed some time ago. I hope that whoever is responsible for fixing th ...Show All
Visual Studio Express Editions HtmlElement.OuterHtml.Replace() fails with COM exception
I've tried asking this on microsoft.public.dotnet.languages.csharp, but I am getting no response. Maybe I'm getting lost in the traffic. So, let's try it here. Dev env: VS 2005 C# Express, .Net Framework 2.0 I am trying to programmatically select an item in a listbox on a web page. The first thing I do is go through and de-select any selected items. The OuterHtml field of a selected element in the listbox looks something like this: <OPTION value=* selected>Default item</OPTION> I want to simply remove the the term 'selected' this way: elt.OuterHtml = elt.OuterHtml.Replace("selected",""); ...Show All
Visual Basic Generics and Enterprise Development
I'm trying to think how to implement Generics into an Application, in the past i'd do something like this: (example) MiddleTier: - User (class) - UserCollection (class) - LoadAll (populates all users) - LoadAllActive (populates all active users) - LoadFromCountry(CountryID as integer) (populates all users from a given country) 'etc... DataTier: &nbs ...Show All
Visual C++ LNK2005 ERRORS
I tried to Convert my MFC Project to .NET and I am getting the following linker errors libcimtd.lib(ifstream.obj) : error LNK2005: "void __cdecl operator delete(void *,int,char const *,int)" ( 3@YAXPAXHPBDH@Z) already defined in nafxcwd.lib(afxmem.obj libcimtd.lib(ofstream.obj) : error LNK2005: "void __cdecl operator delete(void *,int,char const *,int)" ( 3@YAXPAXHPBDH@Z) already defined in nafxcwd.lib(afxmem.obj) libcimtd.lib(ifstream.obj) : warning LNK4006: "void __cdecl operator delete(void *,int,char const *,int)" ( 3@YAXPAXHPBDH@Z) already defined in nafxcwd.lib(afxmem.obj); second definition ignored libcimtd.lib(ofstream.obj) : warning ...Show All
