esgargs's Q&A profile
Visual Studio 2008 (Pre-release) Can't get OperationContext.Current from within UserNamePasswordValidator
Hi, I’m writing a WCF service, and I’m using my own UserNamePasswordValidator class in order to validate my clients (this mean I’m working in custom validation mode - userNamePasswordValidationMode = " Custom " ). I’m trying to retrieve OperationContext .Current from within the validate method - Validate( string userName, string password) but it is always null. Is there a way to get OperationContext .Current from within the Validate method And if not, is there any way to retrieve message sessionId of the current message from within the Validate method Thanks, Dror. I beleive there is no OperationContext created until you are authenticated; same for session. Als ...Show All
.NET Development Unrecognized attribute 'key' error when call a value from app.config
I keep getting this error when I run my project. "Unrecognized attribute 'Key'. Note that attribute names are case-sensitive." I'm trying to call some values that are stored in app.config. Here's the app.config code < xml version="1.0" encoding="utf-8" > <configuration> <configSections> </configSections> <connectionStrings> <add name="Test_tempConnectionString" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\test_temp.mdf;Integrated Security=True;User Instance=True" providerName="System.Data.SqlClient" /> </connectionStrings> <appSettings> <add key="emailAddress&q ...Show All
Windows Search Technologies Vista 64 Search preview pane only shows icon
In Vista 64 I only see an icon of the item in the preview pane. If it is an email I see an envelope or a Word Document you see a Word icon. Agent86oz, I think I know what the problem is here. Please click on "Views" on the toolbar in the search window. Once there, move the slider to "details." This should reveal more information about each search result. Paul Nystrom - MSFT ...Show All
Visual Studio Tools for Office Word Addin: Event for new Document object
I want to get event when new Document object is added into Application.Documents collection. I was looking for this event for a while and was unable to find it. I found Application.NewDocument event, but it's fired only if you click on New... button in Word (it isn't fired if you just run Word.exe). Am I missing something I know that in Oulook Addin there is an event ExplorersClass.New for new Explorer, but in Word there is no DocumentsClass class (only Documents interface and it doesn't have any events). Ok. But the problem with those events is that if I just open MS Word (by clicking on icon or launching word.exe) neither of those events are fired (even though new Document is created). The same p ...Show All
Microsoft ISV Community Center Forums Making connection from one Access database to another.
I have a mdb file called the CustomReportsModule.mdb, and a Data.mdb file. I am trying to create a module within the Customom Reports Module to connect to the data.mdb (which is used only for data storage), and execute a select query. Then I want to create a table based on the query's results. I've been trying to use ADODB, but can't seem to really wrap my head around what to do. I have been searching the net, but haven't found what I think I'm looking for. Any help is appreciated -Thanks! I found my own answer, but can't remember where exactly. I know I found some in the help files in the visual basic editor, but also found some on the net when I searched for "adodb.connection recordset". Anyhow, I hope this he ...Show All
Game Technologies: DirectX, XNA, XACT, etc. GSE and Vista
So I heard on letskilldave (and the FAQ mentions it too) that there will be no Vista support for awhile, but I was really curious as to what the policy of GSE on Vista was. Is there some technical reason that it will not run, or is it something discouraged due to lack of testing e.g., will I be able to convince it to run by fooling/mangling the installer, or will it explode when I try to do anything with it Having just installed Vista 5536 on my best machine (the one sitting next to my 360 and the one with a new video card) and loving it, I don't think I could stand switching back to XP. I also need to do some ‘real’ dev under Vista, so that makes things difficult too ;( Thanks for any info anyone knowledgeable can ...Show All
SQL Server Virtual Cubes
Hi, I am working on creating virtual cubes in Analysis Services 2005. I dont know where to create virtual cubes from a regular cubes. I searched the internet to know more but all they say is Analysis Manager Tree pane, right click select virtual cube. I dont understand where the Analysis Manager Tree is is in SQL Managment Studio or in MS Visual Studio I even tried in SQL Server Managment Studio 2005 by connecting to Analysis server, then selecting the cubes under databases and right clicking it. But only a REFRESH option appears. Please guide to how to create it... Thanks in Advance. Somu Hi Somu, Virtual cubes don't exist any more in AS2005 - I suspect on your internet search you fo ...Show All
SQL Server How to Exract SQL minute data to houly data?
Hi I have a SQL table that has data filled with million records and the date is in minutes it looks like :- RowDateTime Meter 1 Meter 2 Meter 3 25/05/2006 02:49:00 1220 450 489 25/05/2006 02:50:00 1223 470 500 25/05/2006 02:51:00 1227 490 511 25/05/2006 02:52:00 1230 510 522 25/05/2006 02:53:00 1233.5 530 533 25/05/2006 02:54:00 1236.9 550 544 25/05/2006 02:55:00 1240.3 570 555 25/05/2006 02:56:00 1243.7 590 566 I want to make a query to the above table and convert the data to houlry by summing Meter1,Meter 2 and Meter 3 to be the average. I want to import all the hourly da ...Show All
Visual C# Typing in Visual Studio 2005 Text Editor is extremely slow
Has anyone else noticed that typing in Visual Studio 2005 is extremely slow Whey I type it seems that the screen is always 2 words behind where my hands are. It makes it extremely frustrating to get anything done. I'm mainly referring to C# code. It seems like Intellisense is going nuts trying to guess every word I'm going to type and never actually prints the characters to the screen. Has anyone else experienced this Is there an option I can turn off to get my text editor back ! By the way, I have a very fast computer with Dual 3.0 GHz Zeons with 3GB memory and everything else that should make "typing" very fast. Wow, word wrap causing this!!! Is there a hot fix to fix both of these issues yet Cause man, ...Show All
Game Technologies: DirectX, XNA, XACT, etc. XNA with languages different than C#
Will XNA express run with other .NET languages different then C# For example, VB or Managed C++ ... I don't care about supporting other languages as I use c# on a daily basis, not that learning a new language is that big of a deal, what was the reasoning to not allow the plugin to run in VS Pro I would assume that express is more extensible than pro or you guys were just trying to keep it simple, but I think it has caused more confusion since there is no reason that I can see offhand that you cannot use the GSE to work with pro. Just curious. Thanks, Chad ...Show All
SQL Server Service Pack
How would one determine the SP for Reporting Services. Is it different from the SP of SQL Server itselves. This is for 2005 There might be an easier way to do this, but here's one way to do it. In SQL Server Management Studio's object explorer, connect to your Database Engine and Reporting Services instances. The Database Engine connection will show the version next to the name. Or, you could connect a query window to your database engine and run 'select @@version'. Right click on the Reporting Services instance in object explorer and go to properties. In the bottom left of the Server Properties window, click the link 'View connection properties'. The version number is listed in the product version. ...Show All
Visual C# converting problem
What would I have to change in the following code to make it work At the moment when I try to debug I get the messages "Cannot implicitly convert type 'object' to 'int'. An explicit conversion exists (are you missing a cast )" and "Cannot implicitly convert type 'object' to 'bool'. An explicit conversion exists (are you missing a cast )" xarray[xnum] = Application .UserAppDataRegistry.GetValue(regxarray); yarray[xnum] = Application .UserAppDataRegistry.GetValue(regyarray); rightclickarray[xnum] = Application .UserAppDataRegistry.GetValue(regrightclickarray); leftclickarray[xnum] = Application .UserAppDataRegistry.GetValue(regleftclickarray); xarray and yarray are of type int, rightclickarray and l ...Show All
Visual Studio COM Exception while using CrystalEnterprise library
I want to try silent login to BO Server XI. But while trying code I am getting following exception Code: ----------------------------------------------------------------------------- Imports CrystalDecisions.Enterprise Partial Public Class _Default Inherits System.Web.UI.Page Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load Try Dim serverName As String = "Server1" Dim logonToken As String = "" Dim infoViewURL As String = "" Dim mySessionMgr As SessionMgr = New SessionMgr() ------------------------------------------------------------------------------------------ Exception: ------------------------------------------------------------- ...Show All
Visual Studio Team System Similar page url
I have a webtest, and the webtest has some link with similar page url. My qns is, will the loadtest link add those pages of similar url into one response time or it will split the response time to individual response time in each of the user login If the url's are different it will count them as unique pages in the timing details. To store individual timing data for each page make sure you set "Timing Details Storage" property to 'AllIndividualDetails' option in the Load Tests run settings. ...Show All
Visual Basic 2 Pics Transparant with each other
I was wondering how to make two pictures transparant with each other. In other words when one picture is slightly over the other how do you make the top one transparant so you can see the other one as well, Instead of seeing it being blocked out. I am working on a game and when you move the character around I don't want every object to appear as a box. I am using .gifs because of their transparancy. I have made the .gifs transparant and the picture boxes background color transparant, but everything is still a box Thanks, White Hawk So I would paint the graphics on the form, moving and animating them as needed I also would need to dispose the graphic before I paint the next frame, correct So ...Show All
