Pedro Silva's Q&A profile
SQL Server SSIS Recordset
Hi, Can anyone tell me how can i remove records from a recordset through an IS script Also how can i write some records to an excel file from a script as well Thanks guys.. http://blogs.conchango.com/jamiethomson/archive/2006/01/04/2540.aspx -Jamie ...Show All
.NET Development Deserilization of the EventHandler Delegate Not Permitted
Hi, I am using .Net 2.0 and we are using remoting for a windows based application. I am getting the following exception when I am trying to call a remote method: Type System.DelegateSerializationHolder and the types derived from it (such as System.DelegateSerializationHolder) are not permitted to be deserialized at this security level. I have set the TypeFilterLevel to Full in both client and server but still I am getting the exception. Here is the client configuration: IDictionary channelProps = new Hashtable (); channelProps[ "port" ] = 0; channelProps[ "typeFilterLevel" ] = System.Runtime.Serialization.Formatters. TypeFil ...Show All
Windows Forms How to assign single Icon for all win forms
hello all, in my .NET 2.0 Winforms there are many forms. I want to apply my own icon for all forms and for EXE aslo. How to do this, any sounds will be appriciated thx for response but i need for all forms. Is there any facility like applying skin in ASP.NET. in my applicaiton there are many forms. How to do this ...Show All
Visual Studio 2008 (Pre-release) Presentation Host has encountered a problem and needs to close.
Hi, I am creating a Avalon Express Application and I have one button which has the click event and I am writting the code in the respective page.cs file. < TextBlock DockPanel.Dock = " Top " Margin = " 15,10,10,10 " > < Button Width = " 60 " Height = " 30 " Click = " btnSave_Click " >Save </ Button > </ TextBlock > The application is loading, but when I am clicking the button it says that "Presentation Host has encountered a problem and needs to close." Is anybody come across same problem Can anybody help me to solve this problem Thanks Rakheesh Hi Lau ...Show All
Windows Forms DataGridView Survey
Hello WinForms users, My team, which owns Windows Forms, would like to gather some information about the new DataGridView control that shipped in the .NET Framework 2.0. At the high level, we would like to figure out: - which features of the grid you are using - which features you wish were available - what works well, what does not - what’s the typical size of your grid Any feedback you may have would be welcome. If time permits, you can also mark the features you use in the table below (this is not an exhaustive list, just a small subset): Dat ...Show All
Visual Studio 2008 (Pre-release) Looking for a working Attached Events sample
Hi, has anybody either succesfully implemented a custom Attached Event or seen an example somewhere I can't find any documentation available aside from the fact that implementation is similar to the Attached Properties approach. Thanks I'm posting a sample that defines two things: first a custom control that exposes a RoutedEvent using bubbling strategy: public partial class CustomControl : Control { public static readonly RoutedEvent CustomNotificationEvent; public event RoutedEventHandler CustomNotification { add { base .AddHandler(CustomNotificationEvent, value ...Show All
Game Technologies: DirectX, XNA, XACT, etc. marking questions as answerd
If possible, I'd prefer to mark my questions as answered myself. I now had it a few times that my question was marked as answered by somebody, even if I had not read the answer! When I read it I can see if everything is clear to me, then I can mark it as answered. Thanks! Best regards Nico Can you not unmark answers in your own threads There are a number of people (mostly the MS staff and the MVP's as I understand it) that have "answer tagging" powers. It's forum policy to mark good answers using the system - whilst I'd hope it helps you, it's also for other members of the community who ...Show All
Visual Studio Team System Project Creation Wizard was not able to connect
How do I solve this : Error Unable to connect to the Windows SharePoint Services at 192.168.1.12 Explanation The Project Creation Wizard was not able to connect to the Windows SharePoint Services at 192.168.1.12. The reason for the failed connection cannot be determined at this time. Because the connection failed, the wizard was not able to complete creating the Windows SharePoint Services site. User Action Contact the administrator for the Windows SharePoint Services at 192.168.1.12 to confirm that the server is available on the network. Also, you might find additional helpful information in the project creation log. The lo ...Show All
Windows Forms Full Screen App: Tough Print Preview Control Question
I'm sure this problem is unique because the action that causes it cannot be surpressed... but here goes: To setup the question, I'm using a Windows app that runs full screen, over the Windows taskbar. There is a button on the main form that creates a new instance variable used to ShowDialog another form, called ViewCheck, that previews a report generated in code. The ViewCheck form uses a PrintPreviewControl to display the report on the form, not a pop-up view of the report. Setting the Document property of the PrintPreviewControl shows the report on itself: ppcCheck.Document = chk.TabularReport; Ok, here comes the problem and t ...Show All
SQL Server SQL Server 2005 did not install
When installing Visual Web Developer 2005 Express Edition, I got a message stating that Microsoft SQL server failed to install. I tried twice with the same result. Is this a package which can be used by a home user, on a 1.1 GHZ Celeron processor with Windows XP Home SP2, 512 MB memory and 40GB hard disk If so, what programs should be present in C:\Program Files These are what I find: Contents of C:\Program Files\Microsoft SQL Server\80\COM At 30/11/05 6:20:36 PM 1 File 116.5 KB sqlvdi.dll 116.5 KB 29/09/05 6:33:52 PM Contents of C:\Program Files\Microsoft SQL Server\80\Tools\Binn At 30/11/05 6:20:36 PM 1 File 116.5 KB sqlvdi.dll ...Show All
Visual Basic shDocVw.dll in VB.Net 2003
Hello in there... I'm having a small problem that's eluding attempts to resolve. I'm creating HTML in BuildCreateExportFilesResults(), which I'm writing to a file on the local hard drive. I want to display it in the shDocVw.webBrowser, but I can't make it work. Here's the code: Public Sub DisplayCreateFilesResults() Try m_strMsg = "" m_strMsg = BuildCreateExportFilesResults() '<-- creates a HTML page With fStreamWriter .WriteLine(m_strMsg) .Flush() .Close() End With strURL = Path.Combine(g_strApplicationDirectory, _ "DisplayProcFileResults. ...Show All
.NET Development How to get current user logon in windows service
Hello i want to run windows service on client machine that makes an entry of Current user logon in server database well i tried three ways to do it 1) Enviroment.username 2) System.security.Principals.windowsidentity.getCurrent(); 3) through windows registry All three methods work well when i use them in console application but when i make a windows service the first two returns me name of user who started the service and third method returns me nothing Here's my code that is written in my start method ///////////////////////////////////////////////////////////**************************** ...Show All
SQL Server Create Extended Procedures in VS 2005
Hi I am trying to write an extended procedure that accepts a string parameter and returns an integer value. The extended procedure calls a regular stored procedure of a database passing the string parameter as an input. The int value is an OUT parameter to this procedure. Can I some one suggest where do I get started with respect to this in VS 2005. Why do you want to write an extended stored procedure to call a TSQL SP This is overkill actually. Extended SPs are meant for computation intensive operations or other logic that cannot be performed efficiently using TSQL. It has it's limitations, performanc ...Show All
Visual Studio Failed to load viewstate
Hello, When I stay at one report for some minutes and push "Back to parent report button" I receive " Failed to load viewstate" message: Failed to load viewstate. The control tree into which viewstate is being loaded must match the control tree that was used to save viewstate during the previous request. For example, when adding controls dynamically, the controls added during a post-back must match the type and position of the controls added during the initial request. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more info ...Show All
Windows Forms Deploying .NET 2.0 Framework with app
I'm trying to do a deployment project using Visual Studio 2005. This is for deploying an application to the desktop. I would like to include the .NET 2.0 Framework with the deployment so that if necessary, it is installed as part of the application install. The best I've been able to find is an article entitled "Using Visual Studio .NET to Redistribute the .NET Framework" http://msdn.microsoft.com/library/default.asp url=/library/en-us/dnnetdep/html/vsredistdeploy.asp . But, this article (dated January 2002) was written for a previous version of Visual Studio and contains steps which just do not seem ...Show All
