YoungEngineer's Q&A profile
Visual Studio 2008 (Pre-release) Return value of Interface type
hi all how can i declare Method in service with Interface Type Return value for example [ ServiceContract (Name = "TestService" , Namespace = http://test )] public interface ITestService { [ OperationContract ] IUser [] GetAvailableUsers(); [ OperationContract ] I User AddUser( string userName); } my question is, how i can call this service and receive the value of IUser thanks Gili Does this thread help Cheers, ...Show All
Visual Studio logon question
i've made a report in crxi with an oledb conection, microsoft ole bd provider for oracle then i use vs2005 to take the report to web, everything works fine but when i change the connection of the report to oracle server i received and error of connection . could someone tell me why ...Show All
Visual C# Cannot access a disposed object?
Hi, all In my program, there are 2 forms -- Form1 and Form2 On Form1, there is a button "Start", when I click on it, Form2 will appear and start plotting, and the text on the button will be changed to "Stop"... When I click on "Stop", Form2 will stop plotting, and the text on button will be "Start" again. However, when I close "Form2" and click on "Start" again, the following error will be shown: Cannot access a disposed object(object name: "Form2") So I can not open a form again if I closed it... Is there any way to solve this I hope I can start "Form2" again by clicking "Start"... Now, I just know to disable the "Cont ...Show All
Visual Studio 2008 (Pre-release) Exception with maxConnections > 10
A console application is the testing host of my WCF service. I tried to increase the maxConnections value of the netTcpBinding for the service enpoint, from the default value of 10 to 100 (but the problem occurs with any vaue higher than 10). <netTcpBinding> <binding name="netTcpBindingConfiguration" listenBacklog="10" maxConnections="100" portSharingEnabled="false"> <reliableSession enabled="true" /> <security mode="Message"> <transport clientCredentialType="None" /> </security> </binding> </netTcpBinding> At the ServiceHost.Open I get this exc ...Show All
Visual Studio Express Editions Keycode for '9' key and 'period' key
I am reseting the number '9' key (across the top of the keyboard) to '0'. At the same time, I am reseting the period key to the number '9'. When I pressed the period key, the number '0' appears. Can anyone tell me how to keep this key, the period key, from showing the number '0' and show the number '9' instead My code is below. If e.KeyCode = Keys.D9 Then e.SuppressKeyPress = True If e.Shift Then SendKeys.Send( "0" ) Else SendKeys.Send( "0" ) End If If e.KeyCode = Keys.U Then e.SuppressKeyPress = True If e.Shift Then SendKeys.Send( "1" ) Else SendKeys.Send( "1" ) End If If e.KeyCode = Keys.I Then e.SuppressKeyPress = Tru ...Show All
Visual Studio 2008 (Pre-release) How to create a Popup control that has the look of a callout window in Excel Autoshapes collection
I need to create a popup window which has a bunch of controls in it, when user presses a button control. The look of the popup window needs to be like the Callout box that appears as part of Excel's autoshapes collection. Another example is in Windows the little popup window that appears on the "install update" startup icon on the taskbar. When we startup the machine the popup window appears which has the msg "Updates available" displayed in it. Is there a way to create this kind of stylised popup window in WPF Thanks, If you put your url inside [ img ] tags ( and use the direct link url from imageshack ) it will display inline I think what you are attempting to do is possible - it's very s ...Show All
SQL Server Date out of range?!
Greetings! I have a data source that gets generated based on a variable with the following SQL : "select * from result where deletion_ind = 1 and when_deleted >= '" + (dt_str, 50, 1252) @[User::Last_Run_Date] + "'" But when I run my package I get an error message saying: The conversion of CHAR to DATETIME resulted in a DATETIME value out of range The Last_Run_Date variable is set to '2006-06-25 14:35:05.450' When I run the code in a QA session it works, but in the package it complains! What am I doing wrong Thanks for your help in advance. Hi Jamie, I am not quite sure how to use profiler for this problem. I have a data source coming from SQL Server 6.5. The data source i ...Show All
.NET Development I get the following event log warnings when installing .NET 3.0 -- please help
I get the following warnings in the event viewer when trying to install .NET 3.0 on Windows Server 2003 Configuration section system.serviceModel does not exist in C:\WINNT\Microsoft.NET\Framework\v2.0.50727\Config\machine.config. Configuration section system.runtime.serialization does not exist in C:\WINNT\Microsoft.NET\Framework\v2.0.50727\Config\machine.config. Configuration section system.serviceModel.activation does not exist in C:\WINNT\Microsoft.NET\Framework\v2.0.50727\Config\machine.config. A configuration entry for BuildProvider System.ServiceModel.Activation.ServiceBuildProvider, System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 does not exist. All compilation assembly nodes do ...Show All
.NET Development ThreadPool on Multiple processor machines
Hi, I am writing a number crunching server application and would like to be able to split the work across multi processors on my server. Would it be sufficient to use a .Net ThreadPool and queue the tasks on the different threads I am not sure about this because from the operating system point of view all the threads are running within the same operating system process and would therefore not get split across different processors. If this is the case then how can I make use of multi processor architecture on .Net applications Regards Vikram Hi nobugz Thanks for your reply. Is there any way I can test this theory Sorry, I really need to be sure about this as my project design will depen ...Show All
.NET Development iis problem with assemblyBinding
I have one .net component (comp1) to be used from old asp in iis 5 (XP prof. development machine). A second .net component (comp2) is used by comp1. Both components are strong named & added to GAC, comp1 is registered for COM interop. All works fine. For development both components are residing in one VStudio solution, giving each of them new version numbers when building solution. As there are no changes to comp2 right now, i put an <assemblyBinding> into machine.config with <bindingRedirect oldVersion="1.0.0.0-1.0.9999.99999" newVersion="*version_in_GAC*"> to be able to work on comp1 without the need to update comp2 in the GAC. This works fine if comp1 is used within a "normal" application (. ...Show All
.NET Development Passing Values from a Windows Service to a Web Service
Has anyone ever created a windows service that would query a SQL database and hold onto the results and then pass those results to a Web Service through HTTP Post Parameters: 1. Query SQL Database in own environement using windows service(C#). 2. Pass results from SQL query to client Web Service in external environment. It sounds very basic but I am new to Windows Services and Web Services. If anyone has any example code for download or an article on such a configuration, I would appreciate any advice. Thanks, Always Learning How to create a windows service: http://www.codeproject.com/dotnet/simplewindowsservice.asp How to work with DB (for beginners): http://www.codeproject.com/cs/database/DatabaseAcessWithAd ...Show All
Community Chat sql server 2005 error
SQL Server could not spawn FRunCM thread. Check the SQL Server error log and the Windows event logs for information about possible related problems. please anybody help me ..... what is the solution you'd probably be better off posting this question in a more relevant forum: http://forums.microsoft.com/MSDN/default.aspx ForumGroupID=19&SiteID=1 ...Show All
Visual Studio Express Editions wizards and additional configurations
Hey. This is an issue I've had for awhile, and never quite managed to solve completely. So, hopefully I can figure it out now. Anyway, I'm creating a custom wizard for c++ projects that compile against a 3d-rendering API. I've got everything working so far; skeleton structures, project selection, and so forth. The area I'm having difficulty with, however, is build configurations. If all I ever needed to do was setup my basic active/debug build configurations, that'd be fine. I already have the wizard completely setup for that. However, I'm not just compiling against one version of this API. In order to make my code available to more people, I'm actually compiling against multiple versions. The way I like to deal with this when I'm takin ...Show All
Software Development for Windows Vista iso file locking
I'm doing iso image writing following the sdk sample code - converted to use ATL. After the write, which completes with success, the function is exited, and all the atl objects seem to go out of scope with no leaks that I can see. Outside of the function, I try to delete the iso, but DeleteFile fails with a GetLastError(): "The process cannot access the file because it is being used by another process." Is there some kind of Close() call I need to be calling on one of the interfaces ( IDiscFormat2Data or IStream maybe ) Just an FYI at this point - Vista will not let filespy run... "Cannot install the FileSpy filter driver Access is denied" Maybe, some UAC ...Show All
Smart Device Development Get Window Handle
Hi, does anybody knows how to get icon handle for the icon of a certain window using the handle of this window thanks please check if the following discussion may help you http://groups.google.com/group/microsoft.public.dotnet.framework.compactframework/browse_thread/thread/dba870934fe78b6a/6aba1f16a96762a1 lnk=gst&q=get+window+handle&rnum=1#6aba1f16a96762a1 ...Show All
