Answer Questions
perstam C# Regex Replace help needed
Hi, I have some code that reads a line from a text file and, using regular expression only returns words that are in caps: string sExpression = @"(\b[^\Wa-z0-9_]+\b)"; MatchCollection mc = Regex.Matches(sr.ReadLine(), sExpression); I'm not very good with regular expression and I wan't to know if there is a way I can not only get back all words that are in caps but also all occurences of the word Space. I.e. my line that has been read from the file would be something like: LButton O N L Y Space T I M E Space W I L L Space T E L L ShiftKey LShiftKey D1 LButton LButton LButton And I want to get back, by hopefulyl eventually replacing the word Space with " ": ONLY TIME WILL TELL Hope ...Show All
Kalaivani Prakash Add System.EnterpriseServices in cache
Hi!When I was trying to use DatagridView with OleDb, I had some problems...I know I have to add an assembly "System.EnterpriseServices" in cache, but I don't know where to find it and how I can add it there. Please, someone help-me... Thanks! How EnterpriseServices related to the DataGridView or OLEDB in your case Are you trying to use UI components inside of the Enterprise Services Matt Neerincx wrote: You just need to add a reference to it to your project if your project uses classes under System.EnterpiseServices. That's what I thought Matt and what I had suggested in his other post. Apparently it wasn't registered properly and the issue wasn't resolved until he added the assembly to the Assembly Ca ...Show All
Philip York The strategy of multiple Setting-files
Hi, I have a VS-solution with some projects inside. One executable and 2-3 libraries. Libraries rely on some Settings I save in library's app.configs. I found out that DLLs are unable to read their Settings-files, so I have to manually paste these settings into my executable's app.config. I find it's not the best practice, because the number of libraries may increase and there may be new library settings I may forget to copy into the main app.config. So, is there a strategy to this problem Something like an "auto merge" of all VS-Solution configuration files Konstantin Hmmm, sad to hear that. Hoped to make use of some new 2.0-configuration goodies, but it seems it's not yet the time for.. Anyway thanks for ...Show All
kkoston No connection could be made because the target machine actively refused it
Hi I experience problem accessing a web service installed on my development machine. If I create an ASP.Net web site, I can access the web service with no problem. I need to access the web service from a C# windows application. In order to do that, I added the webservice as a web reference to the project, initialise the proxy class. when I try to access a webservice service, I get the following exception. I am not binding the webservice to any port. Here is a code snippet: public Form1() { tmp = new TmpConvertProxy.Service(); tmp.ConvertTemperature(100); InitializeComponent(); } My IIS is setup so that anonymous access is enable. Can anyone help Thanks Frustrated Chris System.Net.WebException was unhandled Me ...Show All
rl_atc passing objects with webServices
i'm trying to write a web service that will store objects that are created on the clients. clients will send the objects to the server and the server will save them then, when one client calls the server will pass the object to the client again. How can i do that yes, that is exactly what i did. and also i made the class definitns available both to the web service and the application. but when i try to use it in my application, i get an error message similar to this,cannot convert from MyClass to localhost.MyClass.what is the problem here can you explain a bit more what's your problem.... it seems that what you want to do is just this: [WebMethod] public SomeObject SaveObject(SomeObject obj) { // save the object return o ...Show All
kconcept WSDL/XSD/.Net Serialiation Questions
Ok, I'm hoping someone can clarify some behaviour for me. I'm attempting to start with WSDL & XSD file to perform contract first style development in VS 2005/.NET 2.0. The web service contract is SvcReponseType svcResponse Execute( SvcRequestType svcRequest) The xsd created and referenced by wsdl is: < xml version = " 1.0 " encoding = " utf-8 " > < xs:schema xmlns = " http://www.ipdsolution.com/ultera/ipd/2006/10/xsd " xmlns:xs = " http://www.w3.org/2001/XMLSchema " targetNamespace = " http://www.ipdsolution.com/ultera/ipd/2006/10/xsd " elementFormDefault = " qualified " attributeFormDefault = " unqualified " > ...Show All
Pascal Frey windows 2000 networking
hi,my pc is currently running win 2000 prof and it's working on a domain. just a couple of days ago,it just banged out,it can't access through my network PCs. i decided to change to a workgroup and it worked,i can now access all my networked PCs...but when i try to go back to my domain,an error message says there is a conflict with an existing credentials and it wont go back to my old domain..what's this help... Hi there, These forums are intended for support on Microsoft Development products (mostly .NET). You might want to post your question of the microsoft.public.windows.server.networking newsgroup which you can find here: http://www.microsoft.com/communities/newsgroups/en-us/default.aspx dg=m ...Show All
Raoul_BennetH Using ConfigurationManager & custom configuration sections
Hi there, I'm trying to use the ConfigurationSection class from the ConfigurationManager because I need to store some repeated custom configuration settings that have multiple properties. Using C# Express Edition 2005 Beta 2, I've built the example below based on an example I downloaded from the Internet. It compiles OK but when I run it I get the following error message: An error occurred creating the configuration section handler for systems: Could not load type 'SystemsSection' from assembly 'ConfigConsoleApplication'. (C:\Documents and Settings\Jean\Local Settings\Application Data\Temporary Projects\ConfigConsoleApplication\bin\Debug\ConfigConsoleApplication.EXE.config line 4) I newbie to C#, I've been hea ...Show All
Nickolai DataGrid in VS 2.0
Is there a good ASP.Net Datagrid in VS 2.0 where we can have easy filtering and sorting options Something like a a filter bar in the first row of the Grid, where the search criteria can be given and the data in the grid is filtered accordingly Getting a free component will be great. ...Show All
jennl serialPort VC++
I am using Visual C++. I have developed an application to read from the serial port and write to the serial port. I thought that was the hard pard done!!! However I seem to be experiencing difficulty in reading the data. Please allow me to explain, I am sending out ascii characters, which is fine because the harware device that I am interfacing to is expecting them. The problem is that what it sends back is a byte of binary data. And I have to do a bit test upon each of the data bits within the byte. For example: BYTE BACK <D8 D7 D6 D5 D4 D3 D2 D1 D0> If d8 is high (1) then case A. If d8 is low (0) then case B. If d7 is high (1) then case C. etc etc I am using the following code: delegate void txtBxDele ...Show All
Can-Ann Change Assembly References without recompilation
Hi all. Here is the problem. I have assembly A.dll that refence the assembly B.dll, both are simply named ones. Then I sign the B.dll. Is there a way to change the assembly reference of A.dll to point to the newly signed assembly B.dll (change the PublicKeyToken from null to the new public key token.) without recompiling A.dll. Am I missing some configuration that has to be applied or some dirty hack is needed or it can't be done. It sounds like you need a publisher policy: http://msdn2.microsoft.com/en-us/library/dz32563a.aspx As I know publisher policy in the publisher policy you can specify only to bind to another version. But you cannot specify to bind to a simple named one to strongly named. I tried with assembly ...Show All
India_2007 give ref or code for remoting with different machine
i want sample code for remoting, (Data structure,DAL,Remoting,BL,UI )all should be in different machine. thanks Ezhil ...Show All
navarrodj VB6 Library import / tlbimp problem on x64
I have a VB6 DLL (with a class called PiWorker) that I need to import into a .NET 2.0 RCW. This works fine on x86, but I need to do this dynamically at runtime across a mix of x86 and x64. It doesn't work on x64. I am able to run VB6 applications fine, so this isn't just a VB6 runtime issue. I use the following code to load the library: Object typeLib; LoadTypeLibEx(typeLibraryFile, NativeMethods . RegKind .None, out typeLib); . . . TypeLibConverter converter = new TypeLibConverter (); ImporterNotifySink notifySink = new ImporterNotifySink (); AssemblyBuilder asm; Version asmVersion = new Version (1, 0); TypeLibImporterFlags flags = TypeLibImporterFlags .PreventClassMembers | TypeL ...Show All
Freedon Nadd Internal vs. Public
Sorry if this is simplistic, but is it a viable design choice to restrict visibility of as many type members as possible in a Windows application exe to internal, rather than public This client will necessarily never be consumed by any other class or application. It also suppresses various VS warnings about uncommented members, which are irrelevant anyway in many cases. Thoughts, comments Hello All. nobugz: You know, when you have the Output XML Documentation File property set to true, you get this in the Error List: Warning 2 Missing XML comment for publicly visible type or member 'WindowsApplication1.Form1.Form1()' C:\Documents and Settings\Mark\Local Settings\Application Data\Temporary Proj ...Show All
Jon Braganza Code access security question
I am helping a friend who has a .NET 2.0 Windows forms application that generates an error when installed on our Intranet. I'll paste the error at the end of this message. I can solve the problem by installing the .Net Framework 2.0 SDK on the client machine and running the .NET Framework 2.0 Configuration tool and getting into Configure Code Access Security Policy/Adjust Zone Security and setting the Intranet Zone to Full Trust. This is OK for us to do, but I'd like to find out if there's a simpler way to implement this setting using caspol or something like that without having to install the SDK on client machines, or maybe we can modify all machines on our network to have this setting by default. Thanks for any help, errors below.. john ...Show All
