Answer Questions
Nick The Newbie Strong name failed
Hi all, I've an assembly.I deley signed it and signed it back with full key pair after some time.But i still couldnt able to place the assembly in GAC.It says 'The check of the signature failed for assembly 'myassembly.dll'.How to fiz this I created keypair by sn -k keypair.snk and public key alone by sn -p keypair.snk public.snk I used this public.snk in AssemblyKeyFile attribute and compiled with Delay signed option. And after that i r ...Show All
SharonSalmon How to change screen resolution in C#
How would I go about changing the screen resolution The thing is that I'm not using directx... Hi, There is no managed class available for doing this. You will need to use the Win32 API call ChangeDisplaySettings. Here is a explanation and code sample for doing this: http://www.codeproject.com/csharp/CSDynamicScrRes.asp Regards, Vikram ...Show All
GraemeH Database UPDATE problem.
Just a question. Im really wondering why my sample database program wont update. It will say that it has updated the actual database but when i double check, it didnt. I am not using the command builder coz i want my own sql codes. When I test using the query builder, i will see the data being updated or added but when i use my own program, it really wont. Actually i have this one sample database prog ...Show All
PlanoPete Lan proxy server settings
Is there a way to automatically set the proxy server in code I am aware of the WebProxy class, but that only seems to work when you set the Proxy property of a WebRequest object. I am interested in automatically setting the proxy for the Lan Settings (Communications tab) in the Internet Properties dialog box under tools->options in IE. I found the registry key that I suppose I could use, but is that best practices Perhaps using WMI could it ...Show All
suslikovich Error when opening component containing OleDbDataAdapter
When I open an existing component containing an OleDbDataAdapter, or when I try to add an OleDbDataAdapter to a component, I receive the following error message. Up til today, this has worked flawlessly. I am using C# in VS.NET 2005 beta 2. Error HRESULT E_FAIL has been returned from a call to a COM component. at EnvDTE.OutputGroup.get_FileCount() at Microsoft.VisualStudio.Design.VSTypeResolutionService.GetProjectOutputs(Proj ...Show All
Serge Luca Adding a App.config to a Addin Project
hi, How to access the contents of App.config file in a addin project after adding the key value pair These statements are not working Properly. System.Configuration.ConfigurationSettings.AppSettings[keyname] System.Configuration.ConfigurationSettings.AppSettings.GetValues(keyname); This is working fine for other projects such as WindowsApplication and WebApplication and throwing error only in Addin Project. Thanks in Advance, Aravind ...Show All
SureshJayaraman SecurityAction.DemandeChoice is obsolete ?
I'm working with Beta 2 (v2.0.50215) and I'm using PrincipalPermissionAttribute. As I wished to use more than 1 attribute on a single method, I tried the new SecurityAction.DemandeChoice flag. To my surprise, the compiler said this flag is obsolete ! I've not found anything about that on the web (nothing about that on MSDN2 for example) except in a Mono mailing list. Has this new feature been removed Is there other removed feat ...Show All
STLL How to create not-documented, non-re-usable components
Avoid writing XML comments! These comments are readable from the developers that use your components. Intelli-sense is the worst enemy of your cause. Avoid using Roland Weigelt's GhostDoc . It can help you write XML comments making your components have intellisense support. Also avoid NDoc . This infernal tool can create MSDN-like documentation for your component. Never, never, never, never, NEVER create samples to demonstrate how to use your ...Show All
sreeni2219 error in Deserialization
i have a class thatz derived from MarshalByRefObject; i' have a client that has to serialize and deserialize this class.Deserialization throws exception. public class TestClass:MarshalByRefObject { public TestClass(){ } } in TestClient ihave this code //TestClient.cs BinaryServerFormatterSinkProvider provider = new BinaryServerFormatterSinkProvider(); provider.TypeFilterLevel = TypeFilterLevel.Full; ...Show All
A. Marshall TableMapping Error
(1) I am using the undersaid code in order to select from more than one table and map it app using TAbleMapping string query_String=""; query_String += "Select empno from emp;"; query_String += "Select ename from bonus;"; OleDbCommand o_command= new OleDbCommand(query_String,o_connection); OleDbDataAdapter o_adapter= new OleDbDataAdapter(o_command); o_adapter.TableMappings.Add("Table","emp"); o_adapter.TableMappings.Add("Table1","bon ...Show All
BrunoCO generics and Marshal.Sizeof, PtrToStructure
Hi, I had written some code that was using the Marshal class together with generic classes and it worked fine under the .Net 2.0 Beta 2. Now I recompiled with the Studio 2005 release version and ran it under the 2.0 Release, and suddenly it throws an ArgumentException. Indeed the documentation for Marshal.SizeOf says (in the release version, not in the beta version!) that the function (more precisely, the overload that accepts a t ...Show All
Russ05 Spring Framework in .Net Framework?!
Hi Does Microsoft .Net Team think of Spring Framework as a good design framework If not, do MS have its own road map If yes, will .Net Framework 3.0 have an implementation (namespace) on the IoC Thanks for your reply! The System.ComponentModel namespace does define some IoC classes/interfaces such as IComponent/Component, ISite, IServiceContainer/ServiceContainer and IServiceProvider (which is in System). These are used to su ...Show All
Dayn Barlow SocketException: Handle is invalid??
I have an application using Remoting and it started giving me intermittent errors a few days ago. This application has been running just fine for several months and still seems to run OK in our production environment, but is failing on my development workstation. I am concerned and need to confirm the cause of the issue to determine if it is something specifically wrong with my workstation. It fails when calling a remote method with a ...Show All
salim_555 Unmanaged application using managed library can't find referenced assemblies
There's a C# application with some DLL's. There's an unmanaged application (Total Commander) and I want to create a plugin for it that uses some functions from my C# libraries. I figured the best interface is a managed C++ library: it implements the unmanaged plugin interface by exporting the necessary functions, and it calls into my managed code, so I don't have to reimplement that library. Problem is, it can't find the referenced assemblies (F ...Show All
cmag1951 .NET 1.1 in Visual Studio 2005
I'm sure this might be a dumb question, but I thought I'd go right to the groups to hopefully get a quick explanation. I'm writing a client app in VS 2005 that references a web service I had written in VS 2003. The client app utilizes 2.0, the web service uses 1.1. I know that the two can communicate, but can I pull the web service project into the VS 2005 solution and still it will rely on 1.1 (because the hosting server is only 1.1 capable). A ...Show All
