kamran_kamaei's Q&A profile
Visual Studio 2008 (Pre-release) Possible to remote an Expression tree into Yukon?
So this crazy idea came to me over lunch. Yukon hosts the CLR. It can also host a web service. Provided that the CLR hosted has access to all the stock .NET framework, I wonder how worthwhile it would be to: 1. Create an expression tree at the client side. 2. Transmit the tree to a service on Yukon. 3. Have Yukon execute the tree in the context of the database (security being managed, of course). 4. Transmit the results back to the client. This would be an interesting way to solve the problem of SQL not supporting many of the things we should like, and no simple means to create ad hoc CLR procedures. It's generally a bonus ...Show All
Architecture designing an online & offline application... what methodology to use?
Hello, I am at a stage where I want to develop and application that will work the same whether if you are online or offline. I can always write an application that hooks up to a server while online (connected to a network) and queries a db for the interactions bewteen the user and the app. Then when offline have another app that looks at the local database... but i don't want to write two apps... I want to build an app like outlook where its just the one app that lets you work online or offline... what is the best method someone said to me use xml to store data localy and pool that so often from the server. The application sh ...Show All
Visual Studio Express Editions DataColumn.Expression to calc Date difference
Hello, I have two DateTime columns in a table, and I want to calculate the day difference between the two, and display it in another column. I add a DataColumn in Dataset, and write an equation in Expression property as below: Convert(RequiredDate,'System.Double')-Convert(OrderDate,'System.Double') But it does not work, I have also searched help in MSDN: http://msdn2.microsoft.com/en-us/library/system.data.datacolumn.expression(VS.80).aspx However, I can't find anything helpful. Anyone give an advice thanks! you can try this: private void addColumnDiff() { dsSeguimiento.Tables ...Show All
Visual C# How to find registered event handlers?
Hi, I'm trying to determine if an object has any event handlers registered on it. The reason I need this, is to not let an object to register one single event twice. this .menu.BeforePopup += new CancelEventHandler(menu_BeforePopup); // OK this .menu.BeforePopup += new CancelEventHandler(menu_BeforePopup); // Don't let it happen twice Any help would be great You can only do that from within the class that provides the event, not from the outside. You have to write explicit event add and remove accessor methods where you can do any additional checks you want. Something like private CancelEventHandler _before ...Show All
Visual C# Server DLL
How would I write a DLL that you can run, like asp, asp.net, or php How would I get the contents of the file accessed, and how would I return it to the server ...Show All
.NET Development Is Microsoft serious about serialization?
I've been working through a serialization model have been stumbling over many semingly simple serialization problems that lead me to believe that Microsoft is not serious about serialization. There does not appear to be a unified model or methodology to the serialization within .Net. For example, the latest problem I hit is that the System.Windows.Forms.Padding structure is not serializable. Why is it that Microsoft did not tag this seemingly simple structure with the Serializable attribute Is there some criteria Microsoft uses to decide what is serializable and what is not Another example is the inconsistency of the formatters. They are s ...Show All
Visual Studio Team System Problem creating a new Team Project
I have seen similar posts on dual server setups, but we are using a single server for TFS. The error is: Error: TF30004: The New Team Project Wizard encountered an unexpected error while initializing the Microsoft.ProjectCreationWizard.Reporting Plug-in. Explantion: TF30171: The Microsoft.ProjectCreationWizard Reporting Plug-in used to create the new team project could not be initialized and returned the following error: TF30222: The New Team Project Wizard could not find the data source TfsOlapReportDS on the SQL Server Reporting Services server myserver. What do I need to do on a single server set up to correct t ...Show All
Microsoft ISV Community Center Forums New to VB
I have to do a project in VB Excel. I don't write code and it has been over 10 years since I took any programming classes. I have books on VB but I don't know where to start. I need to have our main invoice spredsheet update automatically when we get new invoices at the end of the month from our printing service. I know what I want to do but not how to code it. I would appreciate any advice. Thanks, Melissa I guess the number one question would be, why have you been given this task It hardly sounds fair... I would suspect that you need to be more specific about what you want to do. You say the invo ...Show All
Visual Basic Publish Prerequisites: What is the Target Directory for SQLExpress
I am trying to Publish a VB app with SQLExpress. My clients will not have access to the internet. The Publish tool fails because it cannot find SQLExpress. In which directory is the SQLEpress.exe file supposed to be Any help would be appreciated... ~sh~ ...Show All
Visual Basic Generics, Inheritance and Directcast
Hello, why can't i cast a generic instance to another variable in which the type paramters in the of clause inherit from the type parameters in the source variable I think there is an inheritance relationship Markus Example: Public MustInherit Class clsBase Public Overridable ReadOnly Property Name() As String Get Return "This is Base." End Get End Property End Class Public Class clsClass1 Inherits clsBase Public Overrides ReadOnly Property Name() As String &n ...Show All
Visual FoxPro How to visualize an SQL server table in MSDE?
Hi! I want to visualize an sql server table in a grid, and then, modify my data, and upgrade the original table in sql with a button! Is it possible using sqlexec( ), and without using wizard tool Il I want to make a select in a sql server table, how I can visualize that in visual fox Thank you! Browse command opens in its own window. That's normal. If you want to view in a form grid then create a form and grid. Set grid's recordsource. ie: Public oForm oForm = Createobject('myForm') oForm.Show Define Class myForm As Form DataSession = 2 Add Object myGrid As Grid With RecordSource='results' Procedure Loa ...Show All
Windows Forms turn off GroupBox border
Is it possible to turn off a GroupBox's border I don't see any property to control this. ...Show All
SQL Server Cannot generate SSI Context
New install of SQL Server 2005 (x64) Standard after uninstalling previous version SQL Server (x86) Standard. After installation, client connections are receiving "Cannot generate SSI Context" error messages. TCP/IP Integrated Authentication is being used. Kerboros authentication is failing when SQLService is running under a domain account and works when running under local system account by reverting back to NTLM authentication. How do I get the Server to revert to NTLM authentication when running under a domain account so that the error will go away Mike "klist.exe purge" should clean up your local cach ...Show All
.NET Development Changing Primary Key Columns in a hierarchical dataset
Hi, I have one set of tables in my SQL db that I need to allow the user to change the Primary Key on (it's a Clerk ID for what it's worth). I've got the set of related tables up in a hierachical dataset, and the change to the primary key in the parent is being properly cascaded to the child tables (in the DataSet). I'm updating the db via a sproc using the original key values in my Where clause. My problem is, the Update to my parent table is cascading the Primary Key change to the child tables in the database . By the time my code calls .Update on the child table(s), the Original primary key record no longer exists (it's alread ...Show All
.NET Development How to consume a web service returns inherited object types?
I come across this problem during my recent project and even now I am still be puzzled by it. So I paste the procedure here. I wish you can figure out where I am wrong or missing. The sample application is developed with VS 2005 Beta 2. 1. Create a base class named “ BaseEntity ” namespace WebServiceEntity{ [ Serializable ] public class BaseEntity { private string _firstName = "" ; public string FirstName { get { return _firstName; } set { ...Show All
