Kinlan's Q&A profile
Visual Studio Team System Can you profile the System assemblies as part of an app
I am profiling an application that references only the system assemblies and while I see the calls into the .Net Framework I do not get to see any calls deeper in the call stack for the .Net Framework. This makes sense to me because I am not instrumenting the .Net Framework assemblies. When I try to add the .Net Framework assemblies to be instrumented I get an error message that says: C:\WINDOWS\Microsoft.NET\Framework\v3.0\Windows Communication Foundation\System.ServiceModel.dll has been signed. Instrumenting will break verification. Either turn off verification for this assembly or re-sign it in the post-instrumentation step. Press OK to attempt to profile anyway. I understand the post-instrumentation event is used to re-sign, b ...Show All
Community Chat My creation - Obstacle detector using webcam and laser pointer
Hello everyone! I created an obstacle detector a few days ago which uses a webcam and a laser pointer to approximately determine how far an obstacle (for example, a wall) is from the camera. Check it out on my blog . If you can't see it on my blog, try http://ashishrd.blogspot.com/2006/11/obstacle-detector-using-webcam-and.html . Hope you find it interesting. :) Ashish ...Show All
Game Technologies: DirectX, XNA, XACT, etc. HLSL Procedural Textures
I am currently trying to implement HLSL procedural texture support in XNA. After I have defined the sampler and associated it with a function to generate my procedural texture in HLSL, I would usually call D3DXFillTextureTX in DirectX9.0c to fill a texture using the compiled shader. Is there an equivalent set of operations in XNA I dont think that the texture shader functionality is directly available in XNA, or at least, not in the same way as DirectX. From what I can see you basically have 2 options - generate your procedural data in c# and then just call SetData to put it into a texture object, or alternatively create a rendertarget, render your procedural data to that and get the texture back. Heres ...Show All
SQL Server MDX Calculations Script updates
I have mdx calculated members defined in my cube calculation script. Is there any tool (other than BI Studio) that would allow a power user (typically a financial controller) to modify formulas for selected calculated members Another option could be to use custom rollup formulas stored in the relational data source and offer a nice front-end for modifying those formulas, but this would require a full process of the cube, where as modifying the calculation script would only require a default process. Any other idea Thanks! Thanks for the explanations Darren. As you rightly guessed, I would like to allow power users to modify centrally stored calculations. However, BI Studio is overkill for my target popu ...Show All
Windows Forms textbox.text error
I have the following code for a dialogue with a combobox and I defined public variable SiteName as string in a module. When calling the SiteName variable on a main form and display in a textbox, I get an error that says "Error 1 Value of type 'System.Windows.Forms.TextBox' cannot be converted to 'String'." How could I modify it so i can get rid of this error .. Private Sub OK_Button_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles OK_Button.Click If Me .DialogResult = System.Windows.Forms.DialogResult.OK Then SiteName = siteList.SelectedText() End If Me .Close() End Sub ------------------- This code below is in the main form ------------------------ ...Show All
SQL Server Help on report subscription
I got error as below: Failure sending mail: The report server has encountered a configuration error. See the report server log files for more information. Then i found error in log file as below: ERROR: Throwing Microsoft.ReportingServices.Diagnostics.Utilities.ServerConfigurationErrorException: The report server has encountered a configuration error. See the report server log files for more information., AuthzInitializeContextFromSid: Win32 error: 5; possible reason - service account doesn't have rights to check domain user SIDs.; Info: Does that mean sth to do with SQL agent running account or SQl Server Report Service running account Thanks Nick You will need to re-initialize the server. Assuming RS 2 ...Show All
Silverlight (formerly WPF/E) Databinding Support
WPF is very much based on databinding for the way it interacts with data. It looks like there is no support for the Binding tag in WPF/E. Is this planned when the CLR is incoprorated Will you be able to bind to JScript data XML data islands etc "WPF/E" does not support data binding per-se. However, when used in conjunction with ASP.NET and ASP.NET AJAX it can leverage ASP.NET data binding capabilities. Look at the samples at http://msdn.microsoft.com/wpfe ...Show All
SQL Server Management Studio Express
I installed SQL Server 2005 Express and Management Studio Express. All was working fine. I was using VS 2005 to develop an add-in for an app that will be running on MSDE2000 in production. I found something that worked on SQL Express but not on MSDE, so I decided to install MSDE and develop on that. No problem. I decided to try to view my MSDE instance in Management Studio. It worked fine. Cool. Once I shut down Management Studio it all went pear-shaped. Now whenever I try to open Management Studio it freezes. If I press Alt+Tab it shows a "Connect to Database" dialogue in the window list but I cannot access it. I'm assuming that there's an issue with connecting to MSDE. I've tried uninstalling MSDE, reinstalling SQL ...Show All
.NET Development Oracle Data Provider
Hello All, I am using Microsoft's Oracle data provider, but when configuring a dataset in the designer, I don't have the option of "Create new stored procedures". Is this only an option when I'm using SQL 2005 or should I use Oracle's data provider Thanks, Carl I believe this is the case, yes. However, Oracle does have an add-in for Visual Studio that will enable you to create stored procedures and more. http://www.oracle.com/technology/tech/dotnet/tools/index.html ...Show All
SQL Server Report send to many people
Hello i have a question, I need to create a report that will take parameter Customer_ID and will be send to his email which is stored in my database. And i want it to happen to all of my customers so basically i need to pass this parameter automatically. My queston is, where in a report designer or whereever it is set it that it sends this report via email and this email is taken from a field in a report And how exactly pass this parameter, will i have to do it programaticly by calling this report so many times or somehow the report services can manage that thank u for help Marek SSRS supports data-driven subscriptions where the Report Server will automatically send the report to the subscribed recipients. Another ...Show All
Visual C# file io causes exception
Hello all, I'm having a problem with file io. Here's my code, though already suspect it has little to do with the problem... Random rand = new Random ( DateTime .Now.Millisecond); // random is a function that I made. int i = 0; while (i < 100) { StreamWriter newstream = new StreamWriter ( "output.txt" ); newstream.WriteLine(rand.GenerateRand()); ++i; } Anyways, I'm getting a system.security.securityexception as soon as the executable starts. I googled it and found that it probably has to do with the fact that I'll be writing directly to a network share and the permissions being inherited do not allow for direct file-io. I couldn't find how to change them, however. Can someone point m ...Show All
Visual Studio 2008 (Pre-release) getting the june ctp
hi all, i just started researching WPF and am looking at building a fairly extensive demo application with it. from what i can tell in my few hours of reading about the subject the Vista June CTP is really the environment to be working in. i have downloaded the July CTP and installed the June CTP tools but it would be really nice to be able to use Cider. i dont understand why the June CTP was pulled from msdn subscriber downloads or if there is a way i can get my hands on a copy at this point but would be really interested in getting some more experienced opinions on how to get it or how to get started without it. All the samples i am finding seem to be done for the June CTP as well :P i was also wondering if anyone knew where i c ...Show All
Visual Studio Express Editions Find the Handle of a Foreground Window Even if it's Not Active
I am trying to get the handle of whatever window happens to be in the "foreground" regardless of whether it has the focus. Basically, I'm looking for whatever window that is on the top. I've tried the PInvoke GetForegroundWindow function, but that only seems to return the correct foreground window if it has the focus. Any help or ideas of how to pull this off in VB .Net 2005 would be greatly appreciated have you tried using the FindWindow API http://www.pinvoke.net/default.aspx/user32/FindWindow.html you need to give it the exact (case sensitive) window title you are after ...Show All
.NET Development Using webbrowser control (.NET 2.0)
I have a string with various html code in it. I would like to display this string/code in a webbrowser control so the user will see it as html and not simple text, however, I cannot find a way to pass html directly into the webbrowser control. Must I write the code to a local file and then have the webbrowser control navigate to it...or is there a better way to display simple html in a textbox-like control I've found some html textbox controls on the net, but these a too simple and don't provide the level of html interpretation that I need. Perhaps there is one that I am missing If anyone has one to suggest, I'd be glad to hear it! Thanks for any guidance. -T Hi Nitasha, here's one example of implemen ...Show All
Visual C++ Warning: At least one module has an unresolved import due to a missing export function in a delay-load dependent module.
I am working on a mulitple project solution in .Net 2003 whcih contains a mixture of C++ and C# code, either DLLs or LIBs. The main dll called is a mixture of unmanaged and managed code, managed code was added due to the addition of the C# code. I have a test application that calls this dll to run tests, surprise that! If I compile the test application, which is a VB.Net application, to the same directory as where all the DLLs and LIBs are built to all works fine. However, if the test application is built to a different folder I get the following error when I run the application: Run Time error '-2147024894(80070002)' File pr assembly name Blah.dll, or one of its dependencies, was not found. I I use DependencyWalker on Blah.dll th ...Show All
