Nadeem_iqbal's Q&A profile
Visual Studio 2008 (Pre-release) Error: ServiceContractAttribute does not contain a definition for 'Session'
Hello, I have just started with WCF, trying to learn the basics of this new tool. I am currently running the class " WCF Advanced Self-Study Lab on Reliability, Transactions and Instrumentation" found at http://wcf.netfx3.com/files/folders/product_team/entry3602.aspx I cannot compile the simple example demonstrating the use of the attribute 'Session=true' in the ServiceContract. The compiler reports: 'System.ServiceModel.ServiceContractAttribute' does not contain a definition for 'Session' Any idea on how I could address this problem Thanks. Philippe using System; using System.Collections.Generic; using System.Text; using System.ServiceModel; namespace Fabrikam { [ServiceContract(Session=true)] public interface ITradin ...Show All
Visual C# Invoke Find Dialog Webbrowser
How do I programmatically invoke the find dialog box for the webbrowser control in C# 2005 I'm not sure you can as it maybe non existant, you would have to make your own. The find dialog box is just another piece of functionality in IE itself, just like favourites or internet options or view source etc.... take a look at this, perhaps this will help however it uses the mshtml control/component http://support.microsoft.com/ kbid=329014 ...Show All
Visual Studio Express Editions Problem with _lseek - Debug Assertion Failed!
I have recently downloaded/installed VC++ 2005 Express on a computer with no previous VC++ software on it. I followed all the instructions listed at http://msdn.microsoft.com/vstudio/express/visualc/usingpsdk/ and can get my solution to build. However, when I run it (F5) I get a "Debug Assertion Failed" Error. Debug Assertion Failed! Program:... File: lseek.c Line: 66 Expression: (fh>=0 &&(unsigned)fh<(unsigned)_nhandle) If I hit Abort it gives the output: ... 'lseek_example.exe': Loaded 'C:\Program Files\McAfee\SpamKiller\MSKOEPlg.dll', Binary was not built with debug information. 'lseek_example.exe': Loaded 'C:\WINDOWS\SYSTEM32\VERSION.DLL', No symbols loaded. 'lseek_example.exe': Load ...Show All
Windows Forms Not getting mail alerts using Windows service
Hi, I am Ravindra,currently learning .net. I wrote a windows service.the main function of this to send email alerts. But even the windows service is started, I am not getting any email alerts. So please help me. The code is................. using System; using System.Collections; using System.ComponentModel; using System.Data; using System.Diagnostics; using System.ServiceProcess; using System.Web.Mail; namespace mailalerts { public class mailalerts : System.ServiceProcess.ServiceBase { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.Container components = null; public mailalerts() { // This call is required by the Windows.Fo ...Show All
SQL Server Cumulative aggregation over time
I want to do cumulative aggregation similar to "period to date", but not to a specific period in the past, but to the earliest record in the fact table. The problem is that I have 20 million accounts that I want to follow up on a daily basis, but they change rarely. After a year, perhaps half a million have changed. What I have done is to create a fact table that stores the balance when the account is opened, then only keeps track of the changes, so that when anyone deposits money a row is added with the increment. After a year that would give me about 20.5 million rows in the table. As an analyst I would like to enter a specific date, say 2005-08-20 and see the balance of all the accounts at that time. To do so, I simply need to ...Show All
Visual Studio 2008 (Pre-release) AJAX-like Data update in Loose XAML
I am wondering if I can do this in loose XAML. I have a simple XAML file that implements a number of text displays, which are data bound to an XmlDataProvider. The XmlDataProvider points to an aspx file, that, when requested returnes some data in XML form. Both the XAML file and the aspx page are sitting on a website, say http://localhost/test The XAML File: <Page xmlns=" http://schemas.microsoft.com/winfx/2006/xaml/presentation " xmlns:x=" http://schemas.microsoft.com/winfx/2006/xaml " > <Page.Resources> <XmlDataProvider x:Key="DataUpdates" Source="http://localhost/test/GetSomeData.aspx"/> </Page.Resources> <Canvas> <Rectangle Fill="Red&q ...Show All
Community Chat Physics Calculators
Hi there, I've created this program which will do A-Level Physics Calculations for you. Oh course you will not use it in an exam, it is just to help you. It tells you the method everytime you do an equation so you learn. The calculators I've put on it are as follows... Velocity Calculator Constant Acceleration Calculator Object Force Calculator Gravity Force Calculator Kinetic Energy Calculator Potential Energy Calculator Mechanical Energy Calculator Momentum Calculator Mass-Energy Equivalence Calculator There is also a error report program built into the program so if there is any problems, they will be sent to me through email. Please no spam Please take note that I am only 13, so if any of the equ ...Show All
Visual Basic replacement for quick-console
After some time thinking I was crazy because I couldn't show a quick console I did some searching of posts to find out that quick console has bee removed in 2005 :(. It seems that a few people have asked what to do in its absence but have received no answer. I will see if I have better luck, because I really need its functionality. Without quick-console, what is the easiest way to quickly display text for debugging purposes without interrupting program flow I have tried using system.diagnostics.debugger, but have had no success and the docs aren't so great. SteveJ I am not sure I understand your question in that I have *no* tabs under Tools | Options. .. In the Visual Studio 2005 IDE there should be a Tools menu. Sele ...Show All
Game Technologies: DirectX, XNA, XACT, etc. FixedTimeStep faster than Variable Time Step
A question for those who know the inner workings of the XNA framework. Whe using FixedTimeStep, if a frame takes longer than 0.016666 ms (th frame time for 60 FPS), what happens is it left to finish it's task I ask this, because, in some condition (lots of details on the scree, and split screen, and post processing) my framerate, when not using FixedTimeStep goes to 15-14 FPS. But if I enable FixedTimeStep, in the same condition, the game runs smoother, no hiccups, everything runs as if it were 60 FPS. I understand that this is what FixedTimeStep is supposed to do: run the game at 60 FPS.... but HOW can it do it, if otherwise the game runs at 15 If you are using a fixed time step and us ...Show All
SQL Server SSIS package fails in SQL Agent
Okay, I see that dozens of posters have this problem, but none of the threads has a solution: Why does an SSIS package run perfectly fine in VS and in Integration Services, but fail with no details in SQL Agent Is there another way to have an SSIS package run regularly Thanks. Have you seen http://support.microsoft.com/kb/918760 (it is also referenced by SQLIS page). There are detailed instructions how to get detailed information about the package execution. ...Show All
Software Development for Windows Vista Installing Required Software For XP Pro Development
I'm knew to the WPF development world. I have a fully patched Win XP Pro SP2 machine and want to use Visual Studio 2005 to create WPF applications. With all the products be rename I can't figure out what I need and what ORDER they must be installed in. I have downloaded : .Net 3.0 Framework Visual Studio 2005 Extensions WF Visual Studio 2005 Extensions WPF, WCF Windows SDK For Vista and .Net Framework 3.0 Runtime Components Blend (New name for Expressions Interactve Designer) Thank you! Karl ...Show All
Visual Studio Team System code churn - ignore binary files?
Is there any way to get the reports to ignore code churn that occurs in binary files For example, we have a custom references directory that contains several assemblies. When the assemblies are checked in, the code churn goes to several hundred thousand lines of code... Which is wrong. What can I do Thanks, In the Code Churn table in TfsWarehouse database, you will see all the entries for the files/changesets that is considered "churn". Could you please run "tf properties" on the binary files That way we can see if the system actually recognizes them as binary. Thanks, Mauli ...Show All
Visual Studio Express Editions Matrix free function problem
Hi everyone, My program creates a matrix with the specified size. And it also some additional function that can free the matrix. However, when I call the below main function, my free function does not work properly so how can I fix it For example the outpt that I gave when I ran the below application; Sorry,we can not perform the add operation since the sizes of matrices are different 1 2 3 4 2 5 6 7 3 6 8 9 4 7 9 10 0134526920134526944134526968 134526920 5 6 7 134526944 6 8 9 134526968 7 9 10 so how can I correct this 0134526920134526944134526968 134526920 5 6 7 134526944 6 8 9 134526968 7 9 10 The codes for .cpp file; #include ...Show All
Visual Studio 2008 (Pre-release) Problem using ObjectContext with MapConnection
Hi, I am trying the code samples in the The ADO.NET Entity Framework Overview document (August 2006) that came with the CTP. I ran this code succesfully. using ( MapConnection con = new MapConnection ( Settings .Default.AdventureWorks)) { con.Open(); MapCommand cmd = con.CreateCommand(); cmd.CommandText = "SELECT VALUE sp " + "FROM AdventureWorks.AdventureWorksDB.SalesPeople AS sp " + "WHERE sp.HireDate > @date" ; cmd.Parameters.AddWithValue( "@date" , hireDate); DbDataReader r = cmd.ExecuteReader(); while (r.Read()) { Console .WriteLine( "{0}\t{1}" , r[ "FirstName" ...Show All
Visual C++ ambiguity of function "min"
I migrated my platform from version 6 to 8. Then the following error occurs. Actually, I can comment out my definition to make it work. I just don't understand why c:\program files\microsoft visual studio 8\vc\include\xutility is included I didn't include it by myself. Is this a system header How can I disable this header Thanks! c:\source\fixedpoint.h(27) : error C2668: 'min' : ambiguous call to overloaded function c:\panliu1\wcdma\hsdpa\wcdma_hsdpa_platform_bs\source\global.h(274): could be 'T min<double>(T,T)' with [ T=double ] c:\program files\microsoft visual studio 8\vc\include\xutility(2951): or 'const _Ty &std::min<double>(const _Ty &,const _Ty &)' with [ _Ty=dou ...Show All
