Naldai_'s Q&A profile
.NET Development System.Net.CredentialCache.DefaultCredentials returns empty credentials
Hello! I'm not sure if this is a the right forum for my question, but it has to do with System.Net namespace. So... What should configuration be in order for the System.Net.CredentialCache.DefaultCredentials not to return empty credentials From MSDN: The ICredentials instance returned by DefaultCredentials cannot be used to view the user name, password, or domain of the current security context. They are actually some marker credentials. When the system sees this marker knows that it has to pass the credentials of the curent windows user (WindowsIdentity.GetCurrent). ...Show All
Visual Studio MSBuild projects GUI editor
Version 1.1 of MSBuild Sidekick is released and available for download ! MSBuild Sidekick is application that provides GUI for viewing and modifying MSBuild project files and is an alternative to Visual Studio XML editor. New release includes a number of bug fixes and several new features. Please feel free to submit any suggestions or feature requests. You may check for product updates and additional information at Sidekicks blog . Regards, Eugene ...Show All
.NET Development ExecuteNonQuery not working within CLR Stored Procedure
I've written a CLR stored procedure that pulls the results from a SQL stored procedure using a SqlDataReader. I send out the information via a web service and then try to log information returned by the web service using another SQL stored procedure via the SqlCommand.ExecuteNonQuery method. The information never gets written back and I get no exception. Any thoughts on how I can get this to work Thanks. I don't think permission is a problem because if it is, usually you'll get an error. I suspect if the insertion code is correct or actually gets executed. You might want to add some tracing or logging to your applicaiton. Also it's better to show some code snippets. ...Show All
Windows Forms Unreachable Form objects between methods
Hi, I have a problem with printing text in a textbox of my application. When I want to print what has come to my serial port I can't use my text box, and get a Not Supported Exception with this stacktrace: at Microsoft.AGL.Common.MISC.HandleAr() at System.Windows.Forms.Control.get_Text() at System.Windows.Forms.Control.set_Text() at DevApp.Form1.serialPort_DataReceived() at System.IO.Ports.SerialPort.CatchReceivedEvents() at EventLoopRunner.CallReceiveEvents() at WorkItem.doWork() at System.Threading.Timer.ring() This is my code: public Form1() { InitializeComponent(); } public void connectButton_Click(object sender, EventArgs e) { serialPort.Open(); textBox1.Text = "Port opened"; ...Show All
SQL Server Why the Results of Cluster Alogotytm are coming in the following way
Hi I have data in the following format Custid Age Product 101 25 ProdA 101 25 ProdB 102 25 ProdA 103 50 ProdC 104 55 ProdA 105 50 ProdC when I am using Clustering algorithm with 2 clusters and trying to perdict the product column the results are coming as below Custid Age Product PerdictProd 101 25 ProdA ProdA 101 25 ProdB &nbs ...Show All
Visual Studio Express Editions reading disk sectors
How is it possible to read&write directly to the disk drives (specifically floppies ), for instance reading sector 12, head 0, track 39 I need to be able to do this with VB Express . Thanks in advance, Mat When I have done this, it's been using C and calls to the bios interrupts in the early ninties with early nineties BIOSes. http://en.wikipedia.org/wiki/BIOS_call and http://en.wikipedia.org/wiki/BIOS_call#INT_13h_AH.3D02h:_Read_Sectors_From_Drive Dot Net is designed in a way that really moves away from this. You might write assembler routines in a library and call them but note that the comments there regard early BIOSes. To be honest, ...Show All
SQL Server Calling .Net Assembly or Dll from SQL Server 2005 at config Level 80
Hi, I create a dll assembly with the strong name in VB.Net environment. Created assembly is registered also. SQL Server 2005 configuraton level is set at "80" I want to call that assembly from stored procedure with the database config level at "80" But when i execute the stored proecure i get the following error Error Source: "ODSOLE Extended Procedure" Description: "Invalid Class String" My Code in VB.Net is given below: Imports System Imports System.Reflection Imports System.Globalization Imports System.IO Imports System.data Imports System.Data.SqlClient Imports System.Data.SqlTypes Imports Microsoft.SqlServer.Server Imports Microsoft.VisualBasic Imports System.Diagnostics I ...Show All
Visual Studio 2008 (Pre-release) OnRender and Child rendering out of sync
Hi, I am making a control that derives from Panel which displays a map. It renders a map in the background in the OnRender() method. The items in the children property then render themselves. I am finding that when I resize the window, the map image renders properly at the time that I resize but the children seem to "float" into position. How do I make it so that the OnRender() and children render simultaneously so I don't get the "floating" behaviour Cheers, Clint ...Show All
.NET Development SqlBulkCopy error
I sometimes got an ArgumentOutOfRangeException when calling SqlBulkCopy.WriteToServer. The NotifyAfter was not set (therefore be 0). Any possible reasons ...Show All
SQL Server report viewer height problem!! in IFRAME
Any body has problems using report viewer in IFrame Here is the observation i have....when you assign the report.Height = 400px. It is assigning the report body height to be 400px. when i say report body I mean report body only!! The report parameters section is not included in 400px. The export, print, page navigation button sections is not in 400px either!! Given such properties, when you want to show report viewer in a pre-determined IFRAME (non-scrollable) height of 500px, part of the report and horizontal report scroll bar could disappear , if the paratemeters section is more than 100px (says >2 rows or more than 4 parameters)!! can someone tell me how to lock the height of report viewer size that will include parameters + ex ...Show All
SQL Server Getting "Report Server WMI Provider error: Not Found" while configuring Reporting Sevices Integration WSS 3.0 and Sql 2005
I'm Getting "Report Server WMI Provider error: Not Found" when trying to Grant Database Access while configuring the Reporting Sevices Integration. Logging in fine to the DB. Tried all the WMI troublshooting and can't find any issues there. Any tips Many Thanks!! I’m experiencing the same problem. Windows 2003 Server Standard, MSSQL 2005, SharePoint Services 3.0. I hope someone is going to find a solution soon. Thanks. ...Show All
Smart Device Development How to verify memory leak using Application Verfiier
Hi, Can anybody let me know about how verify where the memory leak is occuring by using application verifier for Windows Mobile 2005. Already generated .log, .map, .cod file but as per the specification i need to first go to log file get the memory address and then go to .map file and then go to .cod file to find the location where memory leak is occuring. I think this is a very tedious process to carry on. Is there is any tool that can be used to get the result from the log file itself instead of carring such a long process. Can any one let me know the answer for the above said problem. Thanks in advance, Sunil ...Show All
SQL Server Turning off "Select All" in SP2
Does anyone know if there is an easy way to turn off the "Select All" option from appearing on reports with multi-selects I am going to have a hard time getting the development staff to update all of our reports AGAIN after making them conform to SP1. Please let me know if there is a way before I install SP2. Thanks. I hope there is a way because I am not installing SP2 until I know of a way. I have hundreds of reports built with custom "Select All" in the dropdownlists already. I dont want another auto one appearing and messing things up. Come on Microsoft help us out here! We are very accomodating already in accepting the way this Select All was removed and then reintrod ...Show All
Software Development for Windows Vista StreamingWrite12 Problem in Vista
Has anyone ever try burning data by using WRITE12 command under Vista If enabling UseStreamingWrite12 under Vista ( Ver. 5483 in my case ) and burning data, the CPU would abnormally goes quite high ( 60% ~ 80%). Using TaskInfo to check CPU usage, it shows that "Interrupt time placeholder" consumes over 50%~60% CPU. If using WRITE10 command, the CPU usage would normally below 10%. Any suggestion to handle this CPU usage issue Dear Henry, Thanks for your reply. I have tried uninstalling the network card driver, but the issue still existed. From the documentation of IMAPIv2, there is a function called IDiscRecorder2Ex :: raw_SendCommandSendDataToDevice(). In fact, I ...Show All
SQL Server big problem with data conversion
Dear colleagues, I have a big problem with data conversion. For example, on my Windows form (C#) i have one text box and in my table I have field type float. When I use following conversion or casting: float i = (float)Convert.ToDouble(textBox1.Text); and insert number 12,3 in my table I have following number 12.30000000000032324! What I must to do with this conversion and have in my table number 12,3 Hi, although this is not a C# forum, you should take a look at the Help for a more precise datatype than float. http://msdn2.microsoft.com/en-us/library/b1e65aza.aspx In addition see the float definition in the BOL for more information about float in SQL Server. You might want to have a look on the decimal type instead. HTH, Jen ...Show All
