mustangBE's Q&A profile
Visual C# Exe speed vs Play button in MSVS2003 .NET
Hello, Im working with MSVS2003.NET, c# with .NET framework 1.1. I noticed something really weird and annoying in the performance of my application depending from where I start it. If I take the "play" button in the MSVS (In release mode), some part of the code takes 400-420ms to execute. I re-execute the code without restarting the application. Then, I go in the bin\release directory (where my new exe is) and start the exe from there. The exe has the same time of my compilation when I pressed "play" (so I am certain I start the good file) It starts with the same parameter. For the same piece of code, It takes between 500ms and 800ms!! Not just the first time. Overall, the time is a lot less stable and I ha ...Show All
Visual Studio Express Editions Project folder paths
Hi, I've noticed something with Visual C# 2005 Express and wondered if it was normal or if I was doing the process incorrectly. I'm copying a Solution [using File Explorer] and giving it a new name. Then copying'n'pasting that name over the solution & project inside the solution explorer, after opening the new solution. This seems to deal with all files and paths except one, the Project Directory doesn't get changed. The project & solutions all work, however, if I try and change the project folder manually [using File Explorer again] then they stop working. Is there a way to have all the paths renamed successfully by the Visual C# 2005 Express application tia, thanks nobugz ...Show All
Visual Basic Problems with assembly versions!
Hi, the program i'm developing is using a dll of a class library we did before, that library ("CM.Research.MDGraphicToProduction.dll") is working fine. But when i use a class contained in this dll, i receive a problem. Look this is where i use the class: 'MDObject is a CM.Research.MDGraphicToProduction.MDRemote ... re = CM.Base.RemoteInstance.RemoteElements.Import(MDObject) ... and the message of the error is this "Reference required to assembly 'CM.Research.MDGraphicToProduction, Version=1.1.2501.32020, Culture=neutral, PublicKeyToken=null' containing the type 'CM.Research.MDGraphicToProduction.MDRemote'. Add one to your project." The version of the DLL i have referenced is a newer one (1.1.2509.25 ...Show All
SQL Server Default values for datetime parameters
Hi all, I have a report that needs a to-date and a from-date as input. I would like them to be set to today by default. I have set the data type for both parameters to DateTime and the default value as "Non-queried" = Today() This does fill in the dates with today, but I cannot change the value in the fields, until the report has been generated once. I just want the date to be equal to today since 90% of the time that is what my users wants to see - but I want to give the last 10% the chance to change the date without having to generate the report first. The date-fields are locked until some of the other parameters are filled in... It makes no sense really. Hope you can help me here :-D -- Heidi, Denmark ...Show All
.NET Development The 'Microsoft.Jet.OLEDB.4.0' provider is not registered on the local machine.
I just installed Visual Studio 2005 today and I'm already getting an error. This code worked fine on 2003. I am running Windows XP 64 so I definitely have the latest MDAC. Anyone know why I would get this error Dim strConnect As String = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & GetWorkingPath() & "db.mdb;Persist Security Info=False;" conn = New OleDbConnection(strConnect) conn.Open() I have the "full" version of VS2005, and see no place to set the compiler options under Website or Build. Are we out of luck too if we have 64-bit version of the OS building for ASP.net ...Show All
Visual Studio Express Editions BindingManagerBase Position_Changed Problem
Hey Everyone, I have a program that has several textboxes bound to 1 dataset which contains only one table. When the form loads, the data is displayed in the textboxes allowing the user to add, edit, delete, etc., as well as navigate through previously entered records. However, when trying to navigate through the records, it doesn't do anything. The recordCountLabel, which keeps track of the record number that is displayed, changes, but the first record stays on the screen. Here is a little of my code. Protected Enum Record RecordNum DDate Shift ATO Vehicle End Enum Private Sub Form_Load( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase .Load 'Loads data into the 'TripSheetI ...Show All
.NET Development file download problem (webclient)
Hi, im writing application updater. Almost everything works just fine, but e.BytesReceived in callBack returns just nothing. Im using .NET framework v2.0. long bytes = 0; WebClient client = new WebClient (); Uri uri = new Uri ( "http://127.0.0.1/update/system/" + address); client.DownloadFileAsync(uri, "temp\\" + address); client.DownloadProgressChanged += new DownloadProgressChangedEventHandler (DownloadProgressCallback); static void DownloadProgressCallback( object sender, DownloadProgressChangedEventArgs e) { bytes = e.BytesReceived; // null all the time } Thank you in advance. noo, files are quite big. Interesting ...Show All
SQL Server Job Activity / Status with SMO
Hi, I have created a small asp .net page that display the list of the SQL job in a table. I can retrieve the most part of the information (Job Name, Status, Last Job Status, Last Run Date, ...), but I have a problem with the information Next Run Date: it's always 0. Example of code: string strCon = ConfigurationManager .ConnectionStrings["SERVERNAME"].ConnectionString; SqlConnection sqlCon = new SqlConnection (strCon); ServerConnection serverCon = new ServerConnection (sqlCon); Server server = new Server (serverCon); foreach ( Job job in server.JobServer.Jobs) { // Retrieve job information ... DateTime lastRunDate = job.LastRunDate; DateTime nextRunDate = job.NextRunD ...Show All
Visual Studio 2008 (Pre-release) 8-like documentum's logo
Can someone reproduce a blue 8-like figure (which comes along with 2 navy balls) , used in Documentum's logo (right to the Help at the top) using loose XAML, please I managed to create a similar one, using 4 Arcs, but it doesn't look smooth enough, especially when it gets scaled up (say to 200X600 px). I guess it can be done with beziers, in which I'm not really strong. The aim is to connect two circles with the *smooth*, narrowing to the middle link. Thanks. P.S. Apologies, if posted to the wrong forum. I don't have any specific suggestions, but you may feel more comfortable with Beziers if you use an interactive tool like Expression Blend: http://www.microsoft.com/products/expression ...Show All
Visual Studio Team System TFS Error 29106
Hi, I am trying to install TFS application tier in a dual server installation and I get the following error Microsoft Visual Studio 2005 Team Foundation Server (services) - ENU -- Error 29106.Team Foundation Report Server Configuration: Access to the Report Server databases could not be granted. Verify that the Team Foundation data-tier server has the recommended enough free disk space Any ideas what might be causing this TFS attempts to create the Reporting databases, etc. for you when installing the middle tier (AT). I would expect to see this error if during the installation of the AT we run into issues with configuring RS. Take a look in the VSMsi*.txt file found in the %temp% dir ...Show All
Visual Basic Upgrade Wizard Error - SSTab
Hi, I am attempting to upgrade a working VB6 project to VB.Net 2003. I am using multiple forms in the project and a couple of them use the SSTab control. When the Upgrade Wizard attempt to perform the conversion I get the following message... Upgrade failed: Exception occurred: The referenced component SSTab is missing a design time license. I have tried registering the ocx on the system that I have 2003 installed on, copying the ocx to the folder where the source code is and neither has cleared the error message. Any help resolving this will be greatly appreciated. Bruce Hi, Did you ever find a resolution for this I am getting exactly the same problem and hoped you might have found a workaround. I am going to tr ...Show All
.NET Development Eventlog issue
I am logging my app event to eventviewer I use the following code // Create an EventLog instance and assign its source. EventLog myLog = new EventLog(); myLog.Source = "Application"; // Write an informational entry to the event log. myLog.WriteEntry("Writing to event log."); But in eventviewer i get an extra message "For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp ." Any idea how to remove this message thanks Matt This question doesn't have much if anything to do with Windows Forms programming, I'll move it to the .NET BCL forum. My guess: you'd need to use EventLog.CreateEventSourc ...Show All
Visual C# Convert ASP.NET 1.1 Visual Studio 2003 to Visual Studio 2005, german umlaute
I'd like to convert a Asp.net 1.1 Applikation to Visual Studio 2005. The problem I have are some "umlaute" in the column names of the database and the datasets like in HTML - noation ü or ä The after no error's in the converting process the compile throws the following error: Error 1 Unable to convert input xml file content to a DataSet. Invalid 'name' attribute value 'StaatsbA rgerschaft': 'The ' ' character, hexadecimal value 0xBC, at position 8 within the name, cannot be included in a name.'. D:\Projekt_privat\Kopie von www\App_Code\olvmanager.DB_PersonenDS.xsd 1 Message 2 Could not find schema information for the attribute 'urn:schemas-microsoft-com:xml-msdata:PrimaryKey'. D:\Projekt_privat\Kopie vo ...Show All
Visual Studio Express Editions datetime trouble
Hi! I'm using VB.NET 2005 Express Edition under Windows XP. In a clean project I write: Dim myDate As Date myData = CDate("12.05") myData = System.DateTime.Parse("12.05") both instructions return the exception: "Index was outside the bounds of the array." Source: "mscorlib" The same if I try to convert/parse a date such as "3/4/06". Thank you, Marco Trapanese / iw2nzm Date parsing will heavily depend on your current culture as well as the short date format selected in Control Panel + Regional and Language Options + Customize, Date tab, Short Date format. That will make your problem hard to reproduce. Where do you live and what ...Show All
SQL Server Invalid object name
The following T-SQL code generates the error "Invalid object name 'tf_1.dbo.ADX_1'". The database is attached; I can view the table in SSMS and using VB8 code but can't get this statement to run without error. What am I doing wrong SELECT t1 .* FROM tf_1 . dbo . ADX_1 AS t1 , tf_2 . dbo . ALN_1 AS t2 WHERE t1 . [DateTime] BETWEEN '2004-01-01T09:30:00' AND '2004-02-01T16: 00:00 ' AND t2 . [DateTime] BETWEEN '2004-01-01T09:30:00' AND '2004-02-01T16: 00:00 ' AND t1 . [DateTime] = t2 . [DateTime] ORDER BY [DateTime] To: L Davidson I ran the code you provided. It results in the Invalid Object Name error. It should not have anything to do with security; I ...Show All
