BMWSauberF1's Q&A profile
Visual C# Common Language runtime detected invalid program
Hi There, I keep on getting this error message and it does not even step into the code , earlier it was working fine, can someone please let me know what's happening. Thanks, Server Error in '/WebApplication1' Application. ---------------------------------------- ---------- ---------- ---------- ---------- Common Language Runtime detected an invalid program . Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.InvalidProgramException: Common Language Runtime de ...Show All
SQL Server Multiple Log Files
Using an expression to set the log filename to include the date and time results in 3 log files being created. Ummm. Why I only ran the package once. Is SSIS not sharing my log file connection among the different components On first thought my workaround would involve using a script task to "set" the log file name to a variable and use an expression to set the log connection to the variable. But the problem with that is that logging starts BEFORE the script task is run... Hi, It would be great if you can give more details about your package. Are you creating the log file in the 'OnPostExe ...Show All
Visual Studio Express Editions triggering timer in windows forms
For my first VB.Net project not out of a book, I chose to build a Lotto number generator using the “Randomize()” statement and use nested if then statements to insure that none of the first five numbers repeat. Then I display the results in a label, open a streamwriter, write results to a text file open a streamreader and display the results in a multiline text box, and finally delete the text file when the form closes. I put a for next loop in it and ran the program 1000 times. It worked without crashing and the percentage the numbers came up were almost exactly the same as the Texas lotto. In short, it works. Now I want to start playin ...Show All
Visual Studio AssemblyInfo task
I am trying to use the AssemblyInfo task in my team build, from this blog: http://blogs.msdn.com/msbuild/archive/2005/11/11/491947.aspx A few questions: - rather than editing each .vb/.csproj file, is there a way to set assemblyinfo details across all assemblies in a team build - what about web apps that dont have an assemblyinfo file - is there an easy way to use the $(BuildNumber) property in Team Build as the assembly version numbers I ask because I have different branches in source control for each testing environment we have (dev, test, stage, live). I have a build type on each branch and the build from each never makes i ...Show All
.NET Development Entity Reference expansions when saving XML.
Hi all, While processing XML documents using XMLDocument object, is there a way to prevent entities from being expanded when calling Save For example with the following XML document: < xml version="1.0" encoding="utf-8" > <root> <child>'</child> </root> Using the code below, which does nothing but load and save: Dim doc As New XmlDocument doc.Load(xml) doc.Save(xml) The resulting XML would have ' expanded to the actual apostrophe. I know this wouldn't cause much problems with XML but occasionally we have needs to process these documents as plain text files ...Show All
Visual C# Thread | Invoke Issue
I am stumped on this. Here is my scenerio. >> = creates >: = event kicked off Class A >> Class B >> Class C Class A >> Class D When Class C creates a graphic object , alert Class A to tell Class D to reset all its data. Class C >: Class B >: Class A Class A has this code: private void Feature_DataChanged( object sender, EventArgs e) { ImageHandler image = ( ImageHandler )sender; m_associationview.SetAssociation(image.Text); } m_associationview is the object that created Class D in Class A's constructor. SetAssociation is a method in Class D. Feature ...Show All
Windows Forms Moving between VS2003 & VS2005
I'm creating a windows forms application using my home laptop which has VS.Net 2003 installed. I'm going to be away on business soon and will have to take my work laptop which has VS.net 2005 Beta 2 installed. If I transfer my windows app to my work laptop and work on it, will I still be able to copy it back to my home laptop without anything breaking (in theory) Or, should I avoid all such a move Hi, In addition to these I recommend you take a look at the MSBuild toolkit which offers you to target different versions of the .NET Framework using VS 2005. http://weblogs.asp.net/rmclaws/archive/2005/06/04/410360.aspx Regards, Vikram ...Show All
Windows Forms How to access methods of MDI Child from by MDI Parent Toolbar?
Hi How can I access the methods (Add, Save,Delete, Record navigation methods such first, previous, next & last) of a MDI child from when clicking on a toolbar positioned in the MDI parent form So on the MDI parent I have this toolbar. When clicking on a button on this toolbar it must call a method from the current MDI child form. I am running there are several types of MDI child forms with keeping recordsets, but each contains (the same) methods... How can I write template class for this functions Does anybody has an example of how to do this in Visual C++ .NET Thanks, Joseph TA Tel: 0024398356388 Hi I didn't try with ...Show All
SQL Server SQLServer and SQL Browser fails to start with an Event ID 7000
I just finished installing SQL Server 2005 Express including the Toolkit. During installtaion I selected instance name as SQLExpress. I cannot start SQLServer nor SQL Browser services and reports Event ID 7000 with a message Path not found. Although, the entire installation ran error free. I am running Winodws XP Professional w/SP2 and up-to date patches. Please help! yaj Hi, could you please post the entire messages on the error log while SQL Server is starting That would be a great help. HTH, Jens Suessmeyer. --- http://www.sqlserver2005.de --- ...Show All
Visual Studio Team System What happened to Beta 2 on MSDN Subscriber Downloads?
It looks like everything has been pulled. Is that because the April SQL Server is missing Some of my downloads were right in the middle That was meant to be a joke given the context of the rest of the message ...Show All
Visual Studio Express Editions Transparent Gifs
I'm trying to get some gifs I have to show in a picture box, and have them transparent... But for some reason they still have a white background. Anyone have any tips on how to get the background to be transparent It shows on the form transparent, but now when I run it :/ Thanks in advanced! Depending on who made the gifs and how they were made.... If all layers were merged.. you'll get a white background. In photoshop you have to be careful to say... Merge only the visible layers" of the result will be a loss of transparency. ...Show All
Visual C# Newbie: How do I generate a report without a database?
Hello, I'm following the tutorial in Visual Studio 2005 on how to generate reports with Crystal Reports, but the samples require the existence of a database. If I just determine the values of 10 variables in a Windows App, and want to create a report to display (and save as a Word file or print) those values in a nice format, how can I do that Is there a way to use Crystal Reports without needing a report file (.rpt) or database file (.mdb) to start with Thanks in advance, Don You can create a blank report, add ten parameters (one for each field), place the parameters where you want them on the ...Show All
Visual Studio Team System How could I add a Setup or a TearDown procedure in the xxx.webtest?
How can I add a Setup or a Teardown procedure in the xxx.webtest, not in the xxxCoded.cs I want to prepare some test data for xxx.webtest before it is run and cleanup this test data after the test is done. But I don't want to do it in the xxxCoded.cs because it will be overwritten once the xxx.webtest is modified. This is correct. The namespace changed after beta2. If you are still using beta2, I suggest upgrading. We have made many fixes since beta2. ...Show All
Visual Studio Team System TFS installation onto a domain controller is not supported.
Hi,everyone when I installed the TFS(rc),I met the problem: The System Health Check has detected a problem that will cause Setup to fail. Description Team Foundation Server is attempting to install on a domain controller Workaround / Remedy This computer is attempting to install Team Foundation Server components onto a domain controller. Installation onto a domain controller is not supported I installed it as the URL:http://www.microsoft.com/china/msdn/library/langtool/vsts/TFSBeta3.mspx mfr=true What's wrong with it DanaChenYan Hi DanaChenYan, TFS RTM does not install ...Show All
.NET Development How to read Bitmap from a file.
Now,i have a binary file,that have write a string,a Int32 value,a bitmap ordinal. I use BinaryReader that could read String,Int32 value correctly. FileStream fileStream = new FileStream(fileName,FileMode.Open); // BinaryReader br = new BinaryReader(fileStream); String s= br.ReadString(); Int32 i=br.ReadInt32(); //How to read a bitmap to save to a bitmap ... ... ... br.Close(); // fileStream.Flush(); fileStream.Close(); Thanks. you don't need the FileStream -> BinaryReader -> MemStream steps, as FileStream is just as much Stream as MemStream is using (FileStream fs = new FileStream(filename, FileMode.Open)) using (Bitmap ...Show All
