Thales Medeiros's Q&A profile
.NET Development Remoting, Event Handling
Hey Guys, I have a problem that not even research is seeming to help me solve. It is an issue with Remoting with C#. I am trying to figure out how to write an event handler for when a connection is made my server so i can just get the ip address of the remote computer. I would greatly appreciate it if you could help me here. Ok. That answers my question half way, but i'm back to square 1.5. To be more specific, how can i incorporate this into Remoting so that, when i register my service type on a port, i can listen for actions on that port, thus allowing me to intercept a message before it actually carries out its service call ...Show All
Software Development for Windows Vista Windows SDK January missing Graphedit components?
Previously when in DXSDK the graphedit has used proppage.dll that is used then viewing pin property pages etc for example. The latest Windows SDK does not have this and GraphEdit in it is giving "requested property page could not be displayed" in every turn... So should that proppage.dll still be included in the SDK or is this something that is being changed Can you, or someone else, please upload proppage.dll from the Windows Server 2003 R2 Platform SDK to an accessible location It feels like overkill to download the whole SDK just for this one missing file. ...Show All
Visual Studio "Add New" -> Class
H ey all, I was just wondering if anyone knows where (if there is one) the setting is which defaults the "Add new class" project option to create the class as public in vs2005. If I'm not explaining well enough, every time I add a new class I get: using System; using System.Collections.Generic; using System.Text; namespace Namespace { class ClassName { } } It would be terrific if VS defaulted to insert the protection level explicitly. Any help I personally use ReSharper which has that option. You can always modify the template located in: %programfiles%\Microsoft Visual Studio 8\Common7\IDE\ItemTemplatesCache\CSharp\1033\Class.zip\Class.cs Changing this will affect newly create ...Show All
Visual Studio 2008 (Pre-release) IErrorHandler and One-way contracts
I'm trying to figure out how to capture server side deserialization errors that happen on a one-way contract. The messages just appear to be "eaten". For example, if the request is not valid soap. I assumed implementing IErrorHandler would capture any exceptions happening in the receive call stack so I did that based on the sample. It appears it only gets exceptions from within actual message operations in practice. Whats the strategy for knowing when a message fails somewhere in the pipeline before it hits the operation code Keep in mind I'm not talking about passing errors back to the client, I just want to log them server side. In terms of a quick mental model of messages arriving and pass ...Show All
SQL Server System.Net.WebException: The request failed with HTTP status 404: Object Not Found.
We did configure reporting services to use a custom security extension on a Windows 2000 sp4 machine and using IIS 5.0. The website for reporting services is not using the default website in IIS. It uses IP address : 192.168.1.20 and host header name is rpt2.compagny.com. When accessing the report manager at http://rpt2.compagny.com/reports$sql_2005 from another machine or on the machine where reporting services is installed we get an error message. Error Message : The attempt to connect to the report server failed. Check your connection information and that the report server is a compatible version. The RSWebApplication.config file looks like the following : <UI> <CustomAuthenticationUI> ...Show All
Visual Basic automation error The object invoked has disconnected from its client
There is an application which is consist of many independent application. When I try to execute one exe out of them from the main application. I get the following error 'Run-Time Error '-21474417848 (80010108)': Automation Error - The Object invoked has Disconnected from its Clients. I tried ot unregister and then register them but still I am getting the same error. I dont think the problem is because of circular reference because the same application is working fine on some other system. That's irrelevant ... have you checked to see whether you have any circular references in your project ... if so, eliminate them ... for one thing it's a bad architecture, and for another, it would ...Show All
Software Development for Windows Vista How to program digitizer tablet, any tutorial?
Hi, I wish to program the digitizer tablet, and make it as a input device for the game. Can anyone suggest some tutorial for me Thanks. Depending on the make/model of digitizer you have, this link will probably be enough to get you started. http://www.wacomeng.com/devsupport/index.html --Hilton Locke Tablet PC Platform Test http://blogs.msdn.com/hiltonl ...Show All
SQL Server 'Processor Affinity from server properties
Hi everyone, Primary platform is 2005 under 64-bit. I'm trying to figure out what does 'Processor Affinity' and 'I/O Affinity' means when you're viewing server properties. We've got eight processors. Thanks for your comments, Processor Affinity is the list of processors that worker threads are allowed to execute on. The number is a bit mask with one bit aligning to each processor on the system. A value of 0 allows use of all processors. I/O affinity mask is the list of processors that are allowed to process IO operations, and uses the same bitmask scheme. In most cases there is no need to change either setting. If you do decide to make changes to either setting ensure that the same processor is not specified in ...Show All
Visual C# creating pdf using iTextSharp
Hello, I have a few questions with creating .tiff to pdf with iTextSharp. When I run tutorial from iTextSharp Chap0611, I got "A first chance exception of type 'System.Net.WebException' occurred in System.dll," but the file was created. My average one page .tiff file size is about 25KB, but the application takes about 5 to 10 mins to create one page. Is the file size slowing down the process My pc is also relatively slow when I am running the application. I can't do anything but to wait for the application to finish. Another thing is when I add the code to my application, I got "A first chance exception of type 'System.ArgumentException' occurred in System.dll." The file was created, but when I opened it, I got "Adobe Reader could no ...Show All
SQL Server Delete Snapshot Replication
When I try to drop the publication in this order: exec sp_dropsubscription @publication = @publicName , @subscriber = @servName , @article = N 'all' exec sp_droppublication @publication = @publicName I am getting the following error after dropping the publication Msg 16943, Level 16, State 4, Procedure sp_MSrepl_changesubstatus, Line 1271 Could not complete cursor operation because the table schema changed after the cursor was declared. Msg 16943, Level 16, State 4, Procedure sp_MSrepl_changesubstatus, Line 1271 Could not complete cursor operation because the table schema changed after the cursor was declared. Could anyone give me a suggestion about how to avoid this error Thanks! ...Show All
Visual Studio Team System Team Foundation Build and DB project.
We have a DB project that we have created a team foundation build type for and which does run fine, at least no errors in log file, but it does not create the output sql scipt file. If I build the db project from the build menu within the VS IDE it will create the .sql script file in the specified directory ok or if I use msbuild it also works fine. I have seen some documentation about modifying the tfsbuild.proj file along with the dbproj file for actually deploying the DB but at this point I only want to create the SQL script file using the team foundation build. Is this possible to do I am currently using latest TFS along with VS and SP1 applied to everything including the build machine. It ...Show All
Visual Studio 2008 (Pre-release) Passing additional parameters to the DataContext
Hello all, I am working on a ListBox where the selected item should a sub-ListBox (the idea is to simulate a top-level menu, and each menu has a sub-menu). I read Josh Smith's excellent blog-entry on setting the selected item's DataTemplate ( http://www.infusionblogs.com/blogs/jsmith/archive/2006/08/09/699.aspx ) And I worked on that to implement the sub-ListBox. I have the following within the DataTemplate of the top level listbox:- < local:SubMenuList x:Key = " subMenuListData " /> . . . < ListBox Name = " subMenu " DataContext = " {StaticResource subMenuListData} " ItemsSource = " {Binding} " ItemTemplate = " {StaticResource subItemTemplate} & ...Show All
Visual Studio 2008 (Pre-release) WCF Clients crash after IIS reset
Hi all, In "good old" ASMX-WebServices you could reset the IIS without restarting the client. The client has no problem to call the WebService again. In WCF I get the following exception if I call the IIS hosted WCF Service after an IIS reset ("No connection could be made because the target machine actively refused it"). I also have to restart the client. I think this should also work with WCF. A restart of the IIS should not need a restart of the clients. I think the behavior should be depends on the binding you are using, Whether it is sessionful or sessionless. Can you post your service/service's web.config and client/client's config ...Show All
SQL Server SQL Express user permissions?
I'm trying to build a web application using SQL2005 Express and Visual Studio Express. It all works OK on the local machine, but gives an error "Login failed for user xxxx\ASPNET" when used remotely. I can't find where I can set login permissions for SQLServer 2005 Expresss - can anyone help, please Thanks John This looks like a problem in the login control. The error reported probably has nothing to do with the actual error. The "login failed" error should always be logged to the errorlog file, if it did indeed happen. Probably the control is reporting incorrectly the error. Try contacting the VS team if this is a VS control. From what you have told me, there seems to be no problem with how ...Show All
SQL Server SQL 2005 upgrade to SP1
I have a Windows 2003 server running both a MSDE and SQL 2005 Database. I want to upgrade SQL to SP1. Does anyone know if upgrding SQL 2005 to SP1 will affect the MSDE Thanks -- Nor ...Show All
