gafferuk's Q&A profile
SQL Server Running multiple versions of the Framework in ASP.NET
I am getting the following error: ******************************************************* "It is not possible to run two different versions of ASP.NET in the same IIS process. Please use the IIS Administration Tool to reconfigure your server to run the application in a separate process." ****************************************************** All i am doing is from my project which is developed using VS 2004(Framerwork 1.1) i am calling reports via webservices using reportexecution, calling it force download of a pdf report, which is developed using reportserver 2005 (framework 2.0) I am using it on my development machine which has xp professional using IIS 5. version and runs fine. Now my production serv ...Show All
Visual Studio Changes in new DSL project not reflected while debugging
Hi, I've just installed the latest version of the Visual Studio 2005 SDK, to go and test the DSL Tools. I've run over the first Walkthrough in the help, with the simple FamilyTree sample. My problem is that when I apply all the changes and press F5 to Debug my new DSL, the VS starting does not reflect all the changes I've made to the language. Am I missing anything My laptop is a Vista Ultimate + VS 2005 + VSSP1 + Vista Upgrade, but I've also tested the same in an XP machine with the same results. Any help would be appreciated. Thanks. Did you do the transform To apply changes in a DSL Tools project, you need to click "Transform All Templates" on the Solution Explorer toolbar. All the transformations will be ...Show All
Visual Studio Using “AddRule” problem: how we can distinguish between diagram loading situation and user drag-drop?
Hello! How we can define a AddRule to fire only when user drag & drop a domain class into diagram via toolbar I’m trying to simplify my DSL’s developer tasks while he drags a domain class into diagram (e.g. add related domain classes, …) , for this propose the suggestion is to using “AddRule”, but I have a simple problem with AddRule: when I use this technique, my AddRule class is called whenever the file (diagram) open and load! How can I bypass my AddRule when diagram is opened Is there any way to check is current ModelElemet new or exist (in “ElementAddedEventArgs” of “ElementAdded” at “AddRule”) Thanks, H. Kavousi Check Transaction.IsSerializing. public override void ElementAdded(ElementA ...Show All
Software Development for Windows Vista who knows how to get the reference to workflowruntime in the customerAcitiviy?
I write a local service to like this ----------------------------------------------------------------------------------------------------- Imports System.Workflow.Activities <Serializable()> _ Public Class DocService Implements IDocService Public Sub RaiseDocCanceled(ByVal xDocumentContext As IDocument) Dim e As New DocEventArgs(xDocumentContext) RaiseEvent DocCanceled(Me, e) End Sub Public Sub RaiseDocCompleted(ByVal xDocumentContext As IDocument) Dim e As New DocEventArgs(xDocumentContext) RaiseEvent DocCompleted(Me, e) End Sub Public Sub RaiseDocCreated(ByVal xDocumentContext As IDocument) Dim e As New DocEventArgs(xDocumentContext) RaiseEvent DocCreated(Me, e) ...Show All
.NET Development Using transaction object
Hi, Is there any way that I can execute different commands from different procedures into one transaction object The meaning of this is because in one System transaction there can be made different sales or rents in which each one of them updates the client that required the transaction and the items that are being rented or sold in the transaction, if the user wants to cancel the transaction (rents or sales) just rollback the transaction object to cancel all the commands made in that system transaction. Is there is any way of doing these with the transaction objects Is there is any other way of doing something like this What I want to do is something like this: Imports System.Data ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Shader support when running on the 360
When your app is running on the 360 will it be possible to use the extended HLSL that is available that platform While this is still up in the air and subject to change, as it is currently shaders (.FX) will be available on the Xbox 360 however they will need to be compiled at build time and not duing runtime on the Xbox 360. ...Show All
Visual Studio Team System ICommonStructureService CreateProject
Hi, I want to create a Team Project using the TFS Object Model I see there is a Create Project method in ICommonStructureService. I can't find examples or documentation for it in the web. Does anyone know what does it expect here --> XmlElement Structure Is it an XmlElement with de SCC URL Does any one have an example Tanks!! Alan D. Scheinkman G'day Alan, I think what MS is saying that creating Team projects includes both object model functions and VS internals ("client plugins") related to SharePoint etc. If I were you I would have left it where it lies. Creation of Team project is supposed to be rare operation and it hardly seems to be worthwhile spendi ...Show All
Visual Studio Source Safe 2005 & IIS 7.0 ( Vista )
I can't get the webservice to allow PUT requests ( checking in files ), I get a failed authorization every time. Everything but the PUT works. I'm guessing it's some time of setting/permission that's not allowing the PUT verb, but I can't find anything that could be blocking it. Anyong have any ideas TFS works fine on Vista with some minor workarounds, and will be 100% supported after Whidbey SP1. (edit - this refers to the client. The TFS application tier and data tier both require Windows 2003 Server SP1. The app tier must be 32-bit. Longhorn Server should be supported in the future.) I've been told that WebDAV is on the Longhorn Server feature list but it's far enough away t ...Show All
Windows Forms datagridview cell selecting
hi, i have a datagrigview with columnheader and rowheader . the default behaviour for the topleftcell click is to select all cells. is there a way to bypass this functionality ( none cells selected ) or to disable that cell thanks You can just make the mydatagridview.rowheadervisible = false; You wont have the row header, but will still have column headers, and that wont happen anymore, becasue there is no row header to click. Now if you want the rowheader and the column header both displayed, but do not want the full row to be selected when you click on the row header, you may be able to call mydatagridview.clear or it might be called clearselection. If that doesnt work the only thing i c ...Show All
Visual Studio Express Editions Replacement function for depracated getch()
Hello all, I am writing a simple 2D game in a console window for my class project. I am currently utilizing getch() from the conio.h file (I believe) which gives me immediate keyboard input values. I know there's functions and stuff to reading events and processing keyboard input that way, but I'm not sure how to process the keyboard input from that or if it's the best way. I'm looking for immediate keyboard input. Does anybody know of a function(s) or the correct method for gathering immediate keyboard input I would rather do a correct method instead of using the deprecated function getch(). Thanks a lot! -Rick You can use _getch() alternative to deprecated getch() http://msdn2.microsoft.com ...Show All
Visual C++ VC2005: Iostream crippled by Xlocnum?
I recently get very strange errors when trying to compile an application that uses any of the Stream-libraries (like iostream, fstream, etc.). I don't know what's causing this, and even programs that compiled fine a week ago are now throwing this error. I set up a minimal test-application (Win32 console, empty project, 1 source file, no changes to the build options or anything) to restrict the error to a minimum: #include <fstream> //getting the same error on any of the *stream-headers int main() { return 0; } What I get is a vast amount of errors that make absolutely no sense to me: 1>e:\dev\microsoft visual studio 8\vc\include\xlocnum(49) : error C2653: 'locale' : is not a class or namespace name 1> e:\dev\microsoft ...Show All
.NET Development fill datasource using SqlDataReader
Hi, Can anyone give me an example of filling a listbox datasource using SqlDataReader. I want to be able to choose on my lisbox, the display and value members. Tnx. Since you have a DataReader just load it into a DataTable and bind to the DefaultView on the DataTable. DataTable dt = new DataTable(); dt.Load(myDataReader); this.DataSource = dt.DefaultView; I have a tutorial here that could help you visualize it better: DataTable - Load from IDataReader - CreateDataReader - ReadXml WriteXml - Free ADO.NET Tutorials Regards, Dave ...Show All
Visual Basic !!!Complicated calculation!!
I have an ADO recordset which holding data from a table. I have 2 more table table named RANGE and GRADE. Now what I want is: 1. Pick up a field name from ado record set 2. Find the that field name in RANGE table record 3. If found do some calculate and you get a point 4. Compare the calculated point with point(UL/LL) in GRADE table 5. If point found in GRADE table pick up the grade 6. Repeat step 1 to 5 for each field names in ado record set Here are tables: Ado Recordset holding records which has: 2002 2003 NIM 14.5 21.55 ROAA 55.12 56.45 ROAE 32.15 45.95 --------------------------------------------------------- RANGE Table: Name Wieghtage UL LL Point NIM 20% ...Show All
Game Technologies: DirectX, XNA, XACT, etc. How do you set structure parameters in effects?
I'm trying to get SAS set up, and there is a struct: struct SasDirectionalLight { float3 Color; float3 Direction; }; ..which I can't set from a EffectParameter. It tells me the ParameterClass is 'Struct', the ParameterType is 'Void' (this says it's a "void pointer" in the help), and StructureMemberCount is 2, which is right. But there doesn't seem to be a way to set the structs values. Has anyone else been able to do this, or is it missing functionality in the effect parameter class Edit the .fx file and separate the SasDirectionalLight inputs into two separate float3 parameters. Then it should be trivial to set them. ...Show All
.NET Development add parameters to oledb
I'm trying to do something very simple... not for me :) I just want to select a MarketCode from a 1st combobox and fill a 2nd combobox with names I tried this Private Sub Form1_Load( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase .Load daMarketCode.Fill(DsMarketCode1) End Sub Private Sub ComboBox1_SelectedIndexChanged( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cboMarketCode.SelectedIndexChanged Dim cmdSelect As System.Data.OleDb.OleDbCommand cmdSelect = Me .daAgentName.SelectCommand cmdSelect.Parameters.Add( "Market" , OleDb.OleDbType.WChar) cmdSelect.Parameters(0).Value = Me .cboMarketCode.Text Me .cnOp ...Show All
