Gabriel Giggs's Q&A profile
Visual Studio Team System Date format in Team Build progress
I'm based in the UK. Today, whenever I run a Team Build from Team Explorer, it's telling me that the build is taking place on 1/3/2006 (1st March) instead of 3/1/2006. I know that the server regional settings are correct because the custom label being created for the build is correctly being set to 1.0.60103.x (built on 3rd day of 1st month of 2006). How can I configure Team Explorer to correctly display these dates I just tried setting UK Date-time format on my client and saw the date-time to be correct as in 3/1/2006. Can you please check/clarify the following Where are you seeing thi ...Show All
Software Development for Windows Vista How can i get refference of Workflow Runtime in workflow
hi need a refference to a service for which in need the refference of the runtime. How can i get the reffernence to current runtime OR whats the equivalent code for WorkflowRuntime wr = WorkflowWebRequestContext.Current.WorkflowRuntime ......... in WF Also is there any way to set a state dynamically I tried SetState ss = new SetState("StateName") ss.TargetState = "ExistingStateName" but it doesnot work. do you mean how do you get a reference if it's not hosted in asp.net eg if it's hosted in a console app In that case, there won't be an extant runtime so you would do th ...Show All
SQL Server HELP!!! Trying to schedule SSIS package
Hello everybody, I try to schedule a SSIS package. When I run manualy, it works without error but when I schedule it, the step fail with error: "Executed as user:... The package execution failed. The step failed." This package contain just a SQL Task that execute a truncate table (it's for the test...) I try all solution I found in this forum and others but all not works. Have you an idea Thanks a lot Arnaud Are you doing any logging The error message will be in there. You should also take note of this: http://wiki.sqlis.com/default.aspx/SQLISWiki/ScheduledPackages.html ...Show All
Visual Studio Team System TFS Mapped Folders
Our project is using TFS for both source code and all project requirements, design and management documents. We have set up numerous TFS groups to control read/write access for our various project roles. We have been having a lot of problems with novice business analyst users attempting to add documents from outside the local folder areas for which they have write access priveledges in the corresponding server folder areas. TFS responds to these attempts with varying cryptic error messages that has led us to spend time verifying and changing our TFS group setup and folder permissions only to find out later it was "oper ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Perspective projection
Hi, I'm working on a 3D engine, but I'm stuck on perspective projection. The documentation is a bit confusing. I've got some wireframe objects moving around so far, but I need to add the perspective distortion, as well as move the points so they're relative to the screen's centre, rather than its top/left. I know how to do this with calculations: X' = (X*D) / (Z + D) Y' = (Y*D) / (Z + D) Then X' = X' + (vWidth/2). and Y' = Y' + (vHeight/2) Where D is the eye's distance from the front view of the frustum. I could use the above maths, but I'm assuming that it's quicker to use something in my transformation matrix. Direct ...Show All
.NET Development Cryptography - I'm new to it and confused!
Hi, I have a basic - very basic - understanding of Cryptography but I'm having trouble with design and code. My goal is to create an encrypted string and store it in a file so other applications can read, decrypt and use the data. I want to use the RSACryptoServiceProvider to accomplish this task. I have written (used most of the code from msdn library ) a little utility that will encrypt the data but when I try to decrypt the data, it fails because I don't have the keys. I understand why it fails but I can't figure out how to fix it. I've been fiddling with ToXmlString and FromXmlString. I get the keys when I use th ...Show All
.NET Development security code groups and subgroups at the enterprise level
I hope I'm asking this question in the right place. If not, please point me in the right direction. I'm trying to create a security template to distribute within my organization. The organization demands that I set the "All_Code" code group to the "Nothing" permission set, and then we will publish a new exception for each and every .Net application we distribute to our end users. Basically, this will mean that no .Net applications will run unless we provide explicit permissions for it to run. The problem I'm having is that I can't seem to make it work. I have an example app I downloaded from a code example site (all it is is a button that ...Show All
Visual Studio Export Crystal Report to pdf
In my asp.net application, I export CrystalReport to pdf on disk. One reportdocument is produced by XML, and I run the part of code in Page_Load. The code is as following: if (!IsPostBack) { strReportName = "~/xml/PlaceOrder_" + ((String)Context.Items["Salute"]) + (String)Context.Items["FName"] + (String)Context.Items["LName"]; // Create report document ReportDocument crDoc= new ReportDocument(); crDoc.FileName = Server.MapPath("OrderReport.rpt"); DataSet ds = new DataSet(); ds.ReadXml(MapPath(strReportName + ".xml"), XmlReadMode.Auto); crDoc ...Show All
Windows Forms FlatStyle = Popup (Button)
I am setting the FlatStyle property of a command button on my windows form to Popup. This gives me the behavior I am looking for, with the exception of the border around the button when the mouse cursor is NOT hovering over it. My button consists of an image only, no text. Two questions: 1. How do I prevent the border from ...Show All
Windows Forms Scrolls sets to zero
Hi, I have the panel with autoscroll. In this panel I have another panel. 1) The internal panel is focused. (I have clicked on it) I have move the scrolls. I choose the option in menu and it opens me the dialog. After I select values in dialog I am closing it. And now the scrolls sets to zero and it is I don't want. 2) But if the internal panel isn't focused it works perfect. How can I solve it Thank's Alexei Hi, I have checked and found that internal panel was usercontrol. When I changed it to Panel it works perfect. Also I have found some places where I am reset the scroll position by Active control selection. Thank's Alex ...Show All
.NET Development Slow regexp for first time match
hello, I have an apllication that have about 3000 regexp compiled using the form regexp = new Regex (expression, RegexOptions .Compiled | RegexOptions .IgnoreCase | RegexOptions .CultureInvariant); when a try to match a string against the 3000 regexp for the first time it take about 2 minutes on a Big machine !! the second time the match goes faster and take only few milliseconds what is going on Ok i have removed the RegexOptions .Compiled , and you know what I am Happy many thanks . ...Show All
Visual Basic reading text from a document and displaying it
I have TextBox1 (to enter what you want to search), TextBox2 (to display the results), and Button1 (when you press it, it does the whole process thing). I was given this to go by: ================================================================== Theres a couple of steps in a possible approach here. One is to be able to read the contents of a file. If your using VB Express / 2005 this is possible using dim sContents as string = My.Computer.Filesystem.ReadAllText("c:\foo.txt") the next is to be able to find a match on your textbox entry you can use the instr meth ...Show All
SQL Server Connecting Sql Server 2005 from ASP?
Hi We are planning to move over to SQL Server 2005 in near future. At the moment Website is on a seperate server then the Database. OS for both the server is Window 2003 and currently our data is on SQL Server 2000(on which everything works fine). Part of the testing process we tried to connect our website on SQL 2005 and it does not work at all. I get this ---------------------------------------------------------------- ADODB.Connection error '800a0e7a' Provider cannot be found. It may not be properly installed. When i use following connection string "Provider=SQLNCLI;Server=127.0.0.1;Database=dbName;UID=UserName;PWD=Us ...Show All
Visual Studio Express Editions How to update a property size change in the database back to the dataset.
I am new at this! I have 2 forms. I have linked the forms to a database.I ran the application and found that the "City" field was a Nvar (10) and it should be a nvarch (50). I went back to the database and changed the property. I ran the application again and found the same problem. How do I update the properties change in the database back to the dataset hi, double click your dataset in your solution explorer it will open the design view then select the field that you want and go to properties tab and change the size Hope tht helps ...Show All
Visual C++ How to access the com Port by two application simultaneously?
Hi I want to access the com port by more than one application simultaneously. How can i do that Thanks in advance for the reply. Saravanan You can't, Windows stops you from doing that as I'm sure you've found out. The programs wouldn't be able to reliably read from the port. There is a very slim chance that it might work if you open the port only with GENERIC_WRITE access. Try using IPC to have the "master" program open the port and notify the "slave" program of data received through the port. ...Show All
