Prasad Honrao's Q&A profile
Visual C# Overloaded methods with generics problem
I am trying to use some overloaded methods within a generic class method and have the parameter type choose the proper overloaded method. I feel like there must be a way to do this with reflection, but I have not stumbled across it yet. Here is a code example that should hopefully illustrate my problem: using System; using System.Collections.Generic; using System.Text; using System.Runtime.InteropServices; class GenericExample { class Scalar<T> { private T value; public T Value { get { return value; } set { this.value = value; } } public void accept(Visitor visitor) { visitor.visit(this); ...Show All
Visual Studio 2008 (Pre-release) WCF "Go-Live" license and Jan CTP
Read about it here: http://msdn.microsoft.com/winfx/getthebeta/golive/default.aspx Get the bits here: http://msdn.microsoft.com/windowsvista/getthebeta/default.aspx For some reason, I can only download the January SDK. The WCF January runtime is a broken link. Any ideas on where the download is Thanks, Christian You can access the WCF download(s) for Go-Live from the Go-Live donwloads page: http://msdn.microsoft.com/winfx/getthebeta/golive/downloads/default.aspx (It links to the WCF downloads for x86, x64 and ia64.) Please note that the Go-Live does not apply to the WinFX Jan ...Show All
SQL Server Analysis Manager: Cannot connect to repository. Analysis Server: <server name>.
While trying to connect to a remote Analysis Server using Analysis Manager, I get the following error in a pop up window: ================================================= Analysis Manager: Cannot connect to repository. Analysis Server: <server name>. Error: Provider cannot be found. It may not be properly installed. ================================================= Can somebody help Thanks, John T Please try this: - with Analysis Manager, right click on the server item (or the server name) and use "Edit Repository Connection String" - there are 2 connection strings there: the local ...Show All
Windows Forms treeview control in a context menu? possible?
Is it possible to have a treeview control within a context menu What I am trying to achieve is when ever a user rightclicks on a datagridcomboboxcolumn, I want a treeview to appear. Is this possible If not, is there another of achieving the same outcome Thanks This is one of the things we've added support for in Whidbey: http://blogs.msdn.com/jfoscod ...Show All
Windows Forms Focus problem in MDI application
I created a MDI application, which displays pictures in the child form. In the toolbar of the main form I added a combo box to change the zoom factor. All works fine, but after changing the value in the combo box, the focus stays on it (turning the mouse wheel changes the combo box values) also after selected the child form again. Does anybody know, how the child form can get the focus again when clicking into it Sorry, no it is C#. (.NET 2.0) And I found another point. Sometimes it works, but in some circumstances (e.g. minimize Mainform and show it again), the problem occurs. I think, there a ...Show All
Visual FoxPro Info Combining on Page 2 in Page Frames
How can I get my info on Page 1 to stay on Page 1 when I select Page 2 When I select Page 1 just the info I placed on Page 1 appears. When I select Page 2 however, the info I placed on Page 1 also appears on Page 2 along with Page 2's info. Thanks! I finally got it! I was making it harder than it needed be! Thanks again for your patience & help. ...Show All
.NET Development return type
I don't know what platforms or programs will consume the service so what type of object would be best to return Hello, You can find lots of interoperability guidance at this MSDN link: http://msdn.microsoft.com/webservices/webservices/building/interop/default.aspx In general, simple types and compositions of simple types are a safe bet. You should probably use nullable types where possible since some types in .NET are nullable in other programming languages. You should be careful with using loosely typed types like DataSet. These types may not result in a convenient programming experience on oth ...Show All
Visual Studio Any way to Web Deploy through the SDK?
I'm just wondering if there is any interface or other way to interact with Visual Source Safe's Web Deploy feature I'm working through my project that programmatically checks out and updates data, then checks in and I would like to then web deploy some of the data. Any and all help poiting me in the right direction would be greatly appreciated. Thanks again. No there is no interface/SDK to interact with the Visual SourceSafe's Web Deploy feature. However, there is a command line call called "ss deploy" that might help you. Search "ss deploy" in VSS Help to see the documentation for what t ...Show All
SQL Server Database is read-only.
Hi I have been learning on how to use the new features of the .NET 2.0, and Well I using VS2005 and everything is pretty straight foward. I did a Membership webform where you log in and create users and roles etc. I installed the SQL Server 2005 express as my Data provider and thats where my Tables are. I used the aspnetsql_reg comand to integrate the server to this application. Anyway my problem started when i decided to copy my project to my IIS server and well when I run the app from the Browser tells me that he Database It's set to Read-Omly and therefore it cant update it. This happens right after log in. but then I open ...Show All
.NET Development Cannot view XML input using XSL style sheet
I am a new .Net developer. i was given an existing DB, and modified it for my department. I intalled Visual Studio on my PC, and I think I have IIS going correctly (I can create a virtual server). But when I go to launch my homepage I get: The XML page cannot be displayed Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later. Looks like your Publishtest Web application doesn't work correctly. It returns you source of aspx file, while it should process it first. ...Show All
Smart Device Development Dialog in win32 environment
Hi I am developping an application targeted for Smartphone 2005. I want to include a dialog form with textfields I can set values or get values from. I used to do that pretty easily for PocketPC and MFC as you can wrap dialog with a class, which wraps dialog elements with variables. Now I can't use MFCs under Smartphone 2005 so I have to use only win32 APIs. I just don't know how you wrap a dialog with a class and if it's possible. Are there other means to achieve that Thanks Hi, WM5.0 Smartphone support MFC as supported on WM5.0 Pocket PC devices. There is no reason of not supporting MFC for Smartphones. However MFC support is abs ...Show All
.NET Development getting the username
im trying to get the username from the system... i have read somewhere that the way u get this i s as follows... Environment.UserName(); but this does not want to work.... does anybody have any ideas. thanks flipmode Hi, What if I want to get the current logged on windows user Not the current process user. Cos if I use Environment.Username in ASP.net, it returns ASPNET as user. I've enabled Anonymous Login for the site as I do not want to use Intergrated Windows Login. I just want the current windows username. ...Show All
SQL Server Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON' for insert reference using New Linked Server
I get this error when trying to alter a stored procedure that has an insert statement referencing a new linked server I created: INSERT INTO [servername].databasename.dbo.DirectReport ... Msg 18456, Level 14, State 1, Procedure Get_Direct_Pay_Move_Data, Line 17 Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'. I added Administrators and my logon to the permissions of my linked server but still get this error when it tries to save my stored proc...the one which has that insert. Hi , Please go through the following KB article. http://support.microsoft.com/ id=238477 WORKAROUND To work around this problem, use one ...Show All
Smart Device Development Compact framework 2.0 for Smart Phone
Hi, I have installed Visual Studio 2005 Team Suite Edition (licenced version) in my system. Actually what my question is why the compact framework 2.0 template was not installed for Smart Phone The New Project dialog only displays " Device Application (1.0) " for Smart Phone 2003. But both versions (Device Application 1.0 and 2.0) are displayed for Pocket PC 2003. I can develop application for pocket pc by using Device Application 2.0. But I can't develop smart phone application by using version 2.0. What should i do for this problem Kindly please send reply asap. Thanks, GANESAN. M Please install the W ...Show All
.NET Development System.NullReferenceException: Object reference not set to an instance of an object
Hi guys, I get the following error, can you help me to figure out the problem Exception Details: System.NullReferenceException: Object reference not set to an instance of an object. Stack Trace: [NullReferenceException: Object reference not set to an instance of an object.] mydefault.Button_Click(Object s, EventArgs e) +102 System.Web.UI.WebControls.Button.OnClick(EventArgs e) +108 System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +57 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +18 System.Web.UI.Page.Rai ...Show All
