mehdi1973's Q&A profile
SQL Server Report Server Cannot Open Connection to Report Server Database
Hi, I got consistent error of the following: ReportingServicesService!runningjobs!13!1/3/2007-10:45:21:: e ERROR: Error in timer Database Cleanup (NT Service) : Microsoft.ReportingServices.Diagnostics.Utilities.ReportServerDatabaseUnavailableException: The report server cannot open a connection to the report server database. A connection to the database is required for all requests and processing. ---> System.Data.SqlClient.SqlException: An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Problem with post processing
Hi! I'm currently experimenting with post processing using MDX and C# and I encountered a problem I can't solve. This is my C# code: public void End3DScene() { if ((device != null)&&(DirectorSettings.featurePostprocessing)) { Surface backBuffer = device.GetBackBuffer(0, 0, BackBufferType.Mono); device.StretchRectangle(backBuffer, screenSize, renderSurface, renderSurfaceD ...Show All
Visual Studio Team System outside changes to solution don't make it into tfs
OK We use an orm to create a data layer for our apps. This orm generates classes and modifies the project file from it's own ide. After a change, the vs.net ide says "hey you changed the project file, do you want to reload". I hit yes, and any new classes it generates are in my project now. The problem is that the new files don't make it into tfs like they used to with vss. Is there some way I can fix this Right now I have to remember to remove the new files with exclude from project and readd them back which is a royal pain. Even a right mouse click that had a add to tfs would be ok. Thanks. Note that the powertoy should work here. It should pend adds on the new files and edits on any ...Show All
Software Development for Windows Vista Getting information about a workflow instance
I am building an Workflow-based application that will contain a "Task List" to inform users when a workflow instance is waiting for their input. I would like to populate this Task List by examining the loaded workflows and determining which are waiting for input from the current user (based upon Role membership). In the WinSDK Samples, the OrderingStateMachine demonstrates how to use WorkflowInstance.GetWorkflowQueueData() to get the list of event messages that the current workflow state can handle. How would I add the following functionality When the workflow is in the "OrderProcessed" state, the order will be assigned to a specific shipping group based on the order's destination, and only the members of that ...Show All
SQL Server DataFlow task fails?
Hi: I am getting the following error when I start debugging my Package, I am not sure what this is related to, but basically, input (datatype is a int, and its mapped to a column which is also int), so I am not sure whats happening here. The input column is actually a derived column, and its set as a 4 byte un-signed int, please advice on where should I start looking to troubleshoot this issue. This loanapplicationid is actually a user variable that is utilized by other tasks in my control flow as well: Error: 0xC020901C at InsertApplicationCL5, OLE DB Destination [16]: There was an error with input column "LoanApplicationID" (1161) on input "OLE DB Destination Input" (29). The column status returned was: "Th ...Show All
Visual Basic VB6 IDE View
I like the new IDE in VS2005. Is there any way to modify the code view so it behaves like VB6 For example: VB6 had the option of full module view or function/sub view. Ide like to toggle these instead of having to click to collapse every single function/sub in the 2005 xml view. The code gets in my way. In addition, VB6 made it easier to locate code. You simply hit the dropdown combo and chose the function you needed to see. I also liked how VB6 sorted the function/subs. Is this something implemented in VS2005 that i'm just no realizing TIA Thanks for your responses. I was wondering though: is the IDE customizable such that what I am talking about could be coded I heard of & ...Show All
Visual Basic Change Current Control
I have a toolbar with the Cut, Copy, Paste, Delete icons on it, and I need to know when the current control changes so I can enable or disable an toolbaritem depending on the type of the current control. What is the best way of doing this So, tying it all together, you might handle the GotFocus event of each control and then test to see if, based on the type of the current control, the menu items should be enabled. You'll probably want a helper function that will attach all of the event handlers for you. This can be done very easily with a little recursive subroutine. Just call this sub at form load. Bear in mind that if you add any new controls during runtime you'll want to attach their handlers when ...Show All
Visual Basic Call an event within an event
Assume that I have two buttons: Button1 and Button2. Assume that I have the code in a Button1_Click defined. How call (run) the Button1_Click event within the Button2_Click event code Private Sub Button2_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click Button1.Click() End Sub Private Sub Button1_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click ' code does something ... End Sub Two options: 1) If you want to pretend that the button was clicked (which will call *all* event handlers for the button's event handler - there is nothing that prevents you from having multipl ...Show All
Game Technologies: DirectX, XNA, XACT, etc. XNA with VertexBuffers only? (No loading content)
I'm trying to create just a simple test app that draws some triangles on the screen. I don't want to load any models, just use a VertexBuffer and IndexBuffer right now. I load the buffers and set them on the GraphicsDevice. When I call DrawIndexedPrimitives, I get the following error: "Both a valid vertex shader and pixel shader (or valid effect) must be set on the device before draw operations may be performed." After some searching, I found a few people mentioning that your graphics driver must support vertex shader 2.0 and pixel shader 3.0. The card isn't all that old, but to be sure, I checked the GraphicCapabilities on the GraphicsDevice and both the vertex and pixel shaders are 3.0. So I don' ...Show All
Commerce Server Constant BizDesk restarts
In the past few days the BizDesk has started behaving erratically. every few minutes, or when you try to save a change, it will restart and send you back to the welcome page. The only recent change to the IIS has been to seperate certain sites using the IIS Application Pool. I don't know if this would cause this sort of behavior though. Clutching at straws here I know. Maybe someone has had similar issues and can point me in a direction I haven't thought of. Cheers ...Show All
Windows Forms Blinking Text
Does anyone know if there is a way to have the text in a label set to Blink thanks tattoo I don't think it's very diffcult to custom the label control adding a timer with the control and setting a interval. In the Tick event, simply do as something like void timer1_Tick(object sender, EventArgs e) { if (change == 1) this.ForeColor = SystemColors.Window; else this.ForeColor = SystemColors.WindowText; change *= -1; Invalidate(); } ...Show All
.NET Development Calling Winform with UserControls from VB6 via Com
We have some businessclasses and usercontrols (written in C#)in a dll, which are used from a .Net Winformclient. Our old VB6 client should be able to invoke also these usercontrols and so we implemented a comwrapperclass, which starts a Winform (same dll as comwrapperclass) and our usercontrols (other dll). All works fine, but sometimes we receive this errormessage " Exception has been thrown by the target of an invocation "! Our usercontrols are localized and I suspect the ressourcemanager can't find the right ressource. Has anyone an idee to resolve this problem The Message is: " Exception has been thrown by the target of an invocation. " and the innerexception is " Could not lo ...Show All
Visual Studio 2008 (Pre-release) New Orcas CTP releases?
Is this the site we should keep checking for new Orcas releases http://msdn2.microsoft.com/en-us/vstudio/aa700831.aspx ...Show All
Windows Forms How to test if a modeless form already exists?
Hi there, I have Form A which instantiates Form B, which is modeless. If Form B already exists, then I want to refresh one of its controls. If it does not exist, then I want to instantiate it and populate all the controls. How can I (a) prevent the user from closing Form B, or (b) test in Form A if Form B already exists or not Thanks for any help! JackStri. Hi, to prevent user from closing a form, set e.Cancel = true in Form_Closing event handler. You may also inspect the e.CloseReason property to check why the form is being closed and act only in specific cases. private void FormB_FormClosing( object sender, FormClosingEventArgs e) { if (e.CloseReason ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Play Space Wars with your friends, mapping the keyboard for two players...
Hello Everyone, I am new at this, so figuring this out was really fun for me. And I thought I would share it with any other newbies out there that are like me. When I first followed the xnaspot.com tutorial, " Getting Started with XNA Game Studio Express", I noticed that the keyboard is mapped to the same keys for each player. So basically, with the keyboard, you are controlling both players at the same time. I wanted to make it so that each player had is own keys mapped on the keyboard. This turned out to be quite simple... as simple as adding a if...else if... statement. First open up GamePadHelper.cs (in the Common folder). If you haven't already set up the controls for the keyboard, then uncomment the top line. It ...Show All
