hrubesh's Q&A profile
Visual C# Exception???
System.ObjectDisposedException: Cannot access a disposed object named "DataGridTextBox". Object name: "DataGridTextBox"......I am getting this exception and unfortunaltly i dont know why or how to catch the exception so i know what line of code is throwing this....any help on how i can get this error handeled Go to menu item "Debug->Exceptions...", find ObjectDisposedException and set "Break when exception is thrown" instead of "Break when exception is unhandled". In VS.NET 2003 it will be slightly different, but you'll easily find this setting. After that run your app and you should fall to debugger at the place where this exception is thrown. ...Show All
Visual Studio 2008 (Pre-release) Why is DTC Starting when Using System.Transactions with ObjectContext?
This might be a question that applies to ADO .NET in general, but the only time that I've used System.Transactions and TransactionScope is with ADO .NET Orcas and so I've only seen this behavior in the scope of my exploration with ADO .NET Orcas. My appologies if this question is posted to the wrong forum. The DTC started when I instantiated a transaction scope and used an ADO .NET Orcas object context within that scope. Is the connection objected used by ADO .NET Orcas automatically promoted to a transaction that has to be managed by the DTC, or does the DTC simply pre-emptively start when a transaction scope is created regardless of whether the underlying resource requires the DTC Scott, If you ...Show All
Visual FoxPro VFP9 SP1 DLL Error
Hi All Shot in the dark, but just wanted to see if anyone else is getting a similar problem. My VFP9 SP1 application has been working fine but over the last month, one of my forms has been returning an error with vfp9r.dll. It's the standard error with the "send report to Microsoft". The forms in question do not do anything different to any other form and I've cut down the code and tried to isolate the problem. However, the error does not happen all the time and some users experience it more than others. The form has not changed recently either. I've tried reinstalling the VFP runtime, giving users admin privledges, etc. Nothing works. The only thing I've got is an entry in the event viewer: The descriptio ...Show All
.NET Development CustomSoapExtension Not working.
Hello, I am just trying to create a simple custom soap extension and I put breakpoints on the ProcessMessage overriden method but it never stops there. This is the web service. [ SoapDocumentMethod (ParameterStyle= SoapParameterStyle .Wrapped, Use= SoapBindingUse .Literal)] [ WebMethod (Description= "Suma dos putos numeros" )] [ TestSoapExtensionAttribute ()] public int suma( int x, int y) { return x + y; } This is the custom soap extension namespace CustomSoapExtension { public class CustomSoapExtensionClass : SoapExtension { Stream newStream; Stream oldStream; public override object GetInitializer( Type serviceType) { return null ; ...Show All
Visual Studio 2008 (Pre-release) Help search problem
A few days ago I installed .NET framework 3.0, Windows SDK, and the Visual Studio extension. The development works ok, but searching in the help does not work. Whatever I ask to search for, the number of hits in the local help is 0. The "Contents", though, is OK - I can see all chapters and sections related to developing .NET 3.0 applications. Just so that I am clearly understood, there is a section "Get started using Windows Presentation Foundation". I can open this section and navigate through the links in the page. If I search for exactly these words: "Get started using Windows Presentation Foundation", I get 0 hits in the local help!!! Can I somehow update or link the new help to the help of my Visua ...Show All
SQL Server How can I get the Error description in SQL Execute Task
I put a SQL Execute Task on Control Flow TAB as error hanlde of data flow task. In this SQL Execute Task I want to insert error description into a table. how can I get the Error description in SQL Execute Task when data flow task failed. thanks! ...Show All
SQL Server Saving PDF files to database
Dear Friends I have a requirement to save pdf files to database and need to send those saved pdf files thru emails. How can i save the pdf files to database and send those files as attachment by using a stored procedure in the database server. I cannot sent the emails from the client because there are thousands of such files which is not a good soulution. Am expecting some guidelines Vinu M If you're using SQL Server 2005, try Database Mail: http://msdn2.microsoft.com/en-us/library/ms175887.aspx ...Show All
.NET Development SqlConnection.Open Timeout Framework 2.0
Hello Everyone, I have a problem with SqlConnection class when i try to get a SQL Server 2000 connection, i'm using Ms Framework 2.0 and System.Data.SqlClient namespace, i also have a Windows 2003 Server and i need to use Integrated Security, there is something rare because i use the same code with Framework 1.1 and it works fine. SqlConnection conexion = new SqlConnection("Initial Catalog=MyBase; Data Source=MyServer; Integrated Security=SSPI"); conexion.Open(); On the client machine i have windows xp sp2 and i signed in. Should i install a service pack, update or something else Thanks for any help! Thank's ahmedilyas i disabled the firewall and it worked fine, then i just ope ...Show All
.NET Development difference between web service and website in VWD 2005?
Hi, I am newbie to web. Can anybody tell me the difference between a website and webservice What all we can do and advantages of these two Regards Shobha I have a follow-on question. In my copy of VS 2005 I can create a WebService via two paths: New WebSite / ASP.NET WebSerive (WS1) and New Project / ASP.NET WebService Application (WS2) These do not create identical project types! Yes both seem to be WebService, and can be deployed similarly, but the architected details, especially in the development environment are different! For example, the WS1 path prompts me for the location (drop down list) of the project (this is not the browse button). I can chose FileSystem, http, or ftp. The FileSystem locat ...Show All
SQL Server Disable Event Logging to Windows Application Log?
Hi, We are starting to work with SSIS in our production environment & due to support issues; we are trying to get rid of the "Package xxx started" log entries inside of the Windows Application Event Log... So far, I have tried many different things, including setting the LoggingMode to "Disabled", as well as adding a new logging reference with a different destination... All of which still do not get rid of the extra log entries... Is this possible & does anyone know how to get this done Thanks! Hi, Unfortunately I still haven't found a way to get this accomplished... At least I'm not the only one with the same problem.. . :) Thanks Bobette.. For now, we are ...Show All
SQL Server PDF Rendering bug
We are trying to publish a group of financial reports using SQL Server Reporting Services. We have hit a snag when we try to render the reports in PDF format. The leading spaces of each line are stripped in the output file. For example: Department 10.7240 - ICU Expenses SubDepartment -------- ------------- 1,200 100 454 150 Becomes: Department 10.7240 - ICU Expenses SubDepartment -------- ------------- 1,200 100 454 150 Does anyone know a solution for this problem By the way, we did upgrade to SP2. That did not correct the problem. Thanks for the information. Actually we are moving a fully formatted report from an old DEC Alpha system to .pdf ...Show All
Windows Forms General ListBox Question
Hi, In a CSharp project I am creating, I have a form named startForm. On that form I add a listBox. Usually I have then added items to the listBox right in the Form class. On this project I need to access the listBox from a different class. I have made the listBox public thinking that I would then be able to access it, that does not work. How would I get the listBox visable to the class that I have added Thanks Jeff Make sure you have a reference to the startForm instance available to the different class. Either the different class needs to create the startForm instance, needs to be passed the startForm instance via the constructor or a property on the different class, or available via a ...Show All
Visual Basic Print textbox
I have a textbox with test in it that looks like this: CONNECTION FRONT PAGE DATE Tuesday, September 26, 2006 GENERAL INPUT: GENERAL INPUT CONT: Actuator Weight (lbf): 411.0000 Design Pressure (psi): 210.0000 Actuator Size (sq in): 100 Operating Pressure (psi): 60.0000 Spring Type: ...Show All
Visual Studio 2008 (Pre-release) Why should I describe columns twice? (sqlmetal)
I use sqlmetal to create cs classes from xml definition. In .xml file I've described table with all it's columns and some types within <Table> tags to ensure inheritance. I had to copy column definitions from <Table> tag to it's <Type> tags. But why sould I do it Why not just specifiy column names in <Type> tag and take all other column related information from <Table> tag P.S.: System.ArgumentNullException in sqlmetal looks really ugly. Hope more meaningful exceptions will be provided soon... >> In the final version you must specify the columns under the type node only. Hope so. In current version sqlmetal throws exception if I have <association ...> in ...Show All
.NET Development prompt SerialiazationException
Hi all, I CodeCompileUnit object serializing MemoryStream,Obtains the binary character to reduce expenses to save to a XML document text node.The code is as follows: MemoryStream ms = new MemoryStream(); BinaryFormatter formatter = new BinaryFormatter(); formatter.Serialize(ms, codeCompileUnit); ms.Seek(0, SeekOrigin.Begin); byte[] bytes = ms.ToArray(); And I obtain the binary system to flow the counter-serializing code to be as follows: byte[] bytes = Encoding.UTF8.GetBytes(codeFileNode.ChildNodes[0].Value); ms.Write(bytes, 0, bytes.Length); ms.Position = 0; BinaryFormatter formatter = new BinaryFormatter(); codeCompileUnit = formatter.Deserialize(ms) as CodeCompileUnit; Th ...Show All
