lbugnion's Q&A profile
Visual Studio Team System Failed to open a vsp report
After my program exits, a progress bar is shown indicating that the analysis is executed. At the end of the analysis, a dialog appear saying that "Error VSP1743: DIA symbol engine not registered.". If I open the vsp file directly, the same error appears. Lei, This is the first time that I have seen this issue from a customer. Could you possibly answer a few basic questions about your scenario to help me in dianosing this issue 1. What type of application are your profiling 2. Are you using sampling mode or instrumentation mode 3. Are you running the retail release of VSTS:For Developers or an earlier release ...Show All
.NET Development Attachment problem
I have an asp.net application. This application will be generating a lot of Html files( Content as stream, and Html Name). I have to email these file to respective client. After testing it i happen to get the The attachment content in the Body of the mail.I want to get it as a different file( Attachment file). Please help this my code MailMessage Mail = new MailMessage(mFromEmailAddress,mToEmailAddress,mEmailSubject, mEmailBody); Mail.Attachments.Add(new Attachment(mFileContent, mFileName)); mSmtp.Send(Mail); Parvez mohamed I am sorry that particular statement has confused you. It is as an at ...Show All
Smart Device Development how to create a WM5 Pocket PC app and how to run in emulator?
I installed vs 2005 v 8.0.50727.26 (RTM.050727-2600) - I think it said it was an RC. Then installed Window Mobile 5.0 Pocket PC SDK. I have these problems/observations: 1. My pocket pc project c# that I had previously developed in vs.net 2003 which I converted to vs2005 does not offer to debug in a Windows Mobile 5.0 emulator.. The emulator manager shows a folder Windows CE 5.0 but has no images under it. 2. I tried creating a new project, I do not see any WM5 Pocket PC project type, but I see a Windows CE 5.0 (no pocket pc/smartphone choice). I tried creating a project of this type, but the default forms seem to be in traditional CE/jord ...Show All
Windows Forms Changing Parent Items From Child
How can I change parent items such as menu items from a child First of all, the menu items aren't going to be hidden, right They're disabled. And, they will be disabled if there aren't any children. That's the point. You update the availability of the menu items each time you pull down the menu, so that if there aren't any&nbs ...Show All
Visual C# Database Question
Ok. I have a database in attached to my program. What I would like the query to do is this. SELECT textBox1.Text FROM TableName; Here is the code I have now. private void doQuery_Click( object sender, EventArgs e) { sqlDataAdapter1.SelectCommand.CommandText = "SELECT" + textBox1.Text + "FROM TableName" ; dataSet1.Clear(); sqlDataAdapter1.Fill( dataSet1, "TableName" ); dataGrid1.SetDataBinding( dataSet1, "TableName" ); But this isnt working. Can someone please tell me how to complete this code. It would be much appreciated. Not knowing the exact error you are getting my first guess is that the SQL is not properly ...Show All
Visual Studio Express Editions No macros in express edition?
Hello, I'd like to know if it's possible to record, edit, debug and run macros in VC++ Express 2005. I installed the Beta 2 version, but I found no macros management around. Am I missing something Thanks, Piero. Piero - No, as you have noticed, Macros are not supported in the Express products. This is one aspect of the goal of building a streamlined tool targetted at hobbyist developers. The Standard and above versions of Visual Studio support Macros as well as a host of other extensibility features such as addins and VSIP packages. Thanks, Luke Hoban Visual C# IDE Program Manag ...Show All
Visual Studio Can ItemGroup be refreshed?
I have a MSBuild project which creates some files, and then ZIPs them up in to an archive. This is a simplification, but let's say I have this ItemGroup to specify all of the files that I want in the archive: <ItemGroup> <ArtifactFiles Include="**/*.dll"/> </ItemGroup> And I have this target to build the DLL's. <Target Name="compile"> <MSBuild Projects="src/App.sln" /> </Target> I then have this target to ZIP up these DLL's <Target Name="artifacts" DependsOnTargets="compile"> <Zip Files="@(ArtifactFiles)" ZipFileName="Artifacts.zip" /> </Target> I build t ...Show All
Visual Basic Size limitations on an Image object?
I've written a Windows Service that uses a FileSystemWatcher component to watch a folder for new jpg files. When I put a new image file (jpeg) in the folder, the FileSystemWatcher raises the event, and I run the image file through a resizing routine, that seems to work fairly well. My problem comes in when I put an image in the folder that is over roughly 4.5 MB in size. I'm testing it using an image that's about 11 MB in size (3838 x 5681 pixel dimensions). I can't find any information on the size limitations of the Image class. Is the problem simply that the Image class can't handle an image of that size Here is the resizing procedu ...Show All
.NET Development NegotiateStream problem?
I have this code where I would like to authenticate before starting to accept communications from a client. After I add the authentication code, I stop getting the actual data. Here is the code. What is wrong using System; using System.Net; using System.Net.Sockets; using System.Net.Security; using System.Text; using System.Threading; namespace TestApp { class Class1 { [ STAThread ] static void Main( string [] args) { try { ThreadStart threadStart = new ThreadStart(StartServer); Thread processThread = new Thread (threadStart); processThread.Start(); ClientTest(); ...Show All
SQL Server Calculations on members and aggregation
I'm designing a Profit And Loss report dimension that has the following attributes: Report Line, Cost Center and Account. Attribute relationships are defined between the attributes so that Report Line->Cost Center->Account. A Report line is either A) A combination ofcost centers and accounts like : Report Line A - Cost Center 1 --Account 3000 --Account 3001 -Cost Center B .. And so on Or B) A calculation I'm trying to handle calculations through mdx scripts by overwriting the value for those report lines that are calculations like: scope (Report Line B); this = Report Line A - Report Li ...Show All
SQL Server Is this possible? How
hello guys, I want to create a report using a bar chart data region from a cube. The cube contains Date and Time dimentions. Here is my question: The catagory field (x-axis) value of the bar chart is dependent on the paramaters value(i.e.StartDate and EndDate). For instance if the difference between StartDate and EndDate is greater than 1 year, the x-axis value for the bar chart should come from the Date dimention and display the year value. Similarly, if the difference between StartDate and EndDate is less than a day, the x-axis value for the bar chart will come from the Time dimention and display the hours value. Does any body came a ...Show All
.NET Development TableAdapter Update problem
Hello, i have problem in my application. I create dataset with single table. In MainForm i have 2 texboxes and update button. This is code for update button: [CODE] Klient klient = new Klient(); klient.ShowDialog(); KlientDataSet dataSet = new KlientDataSet(); Serwis.KlientDataSet.KlienciRow klientRow = dataSet.Klienci.NewKlienciRow(); klientRow[0] = Guid.NewGuid(); klientRow[1] = klient.Imie; klientRow[2] = klient.Nazwisko; dataSet.Klienci.AddKlienciRow( klientRow ); int result = this.klienciTableAdapter1.Update( dataSet.Klienci ); [/CODE] I got 1 in result variable so i think that database was updated. No my dat ...Show All
Windows Forms Add Checkbox to sortable, pageable datagrid
I want something like <a href="http://test.koolsoft.com/dg_checkbox.aspx"> this page </a>, (only with a textbox instead of a checkbox) But I don't want to set autopostback=True on the textbox control, I only want to save the textbox contents when the Sort or Page is changed or when a Submit button is pressed. I am trying to use the OnTextChanged event&nbs ...Show All
Game Technologies: DirectX, XNA, XACT, etc. .NET 2.0 application template
Hi! How to create an application template like the one presented here: http://msdn.microsoft.com/coding4fun/weekend/apptemplate/default.aspx , but for .NET 2.0 I'm new to the whole .NET thing and it's quite confusing for me. I tried to follow the steps in the tutorial mentioned above and just changed reference to Microsoft.DirectX (which should i use: "version 2.0.900.0 runtime 2.0" or "version 2.0.0.0 runtime 2.0.50727" ), but should i also use 2.0 versions of Microsoft.DirectX.Direct3D and Microsoft.DirectX.Direct3DX I couldn't find them. Should i use files in Common directory starting with letter "w" or the others If I don't add the ...Show All
Visual Studio 2008 (Pre-release) Controlling the Currency of Binded Controls
alslamo alikom... i did the databinding process to some textboxes in a form and binding mode is two way.... iam asking now about how i would control the concurrency object of the controls.... in another meaning i want to put buttons for next and previous and last record and first record... is there any class would help me achieve that in WPF... or should manage that with special code... thx for ur time... Eng.Mohammad Abd Elrahman Here is a way to do this. Create a custom collection class (maybe even generic) Add properties on the class that point to the "Current" object of the collection Add fun ...Show All
