Answer Questions
lingga [SSL] "Context.Request.ClientCertificate" gives the ServerCertificate!? -> .net Framework 1.1
Hi there, I am running a simple WebService. I got Testcertificates a CA - Certificate, a ServerCertificate and a ClientCertificate. I "install" all 3 Certificates. I attach the server-Certificate to the WebService via IIS Manager. I enforce the Webservice to require SSL via the IIS Manager. (Is there a way to set this in the code of the webservice .asmx or other file ) Everything works fine, but i have a Problem accessing the ClientCertificate in the Webservice. For some reason I want the CommonName from the Client Certificate. In the Client Application I load the Client Certificate: CertificateStore certstore = CertificateStore.CreateFromPfxFile(certificatefilepath,certificatepw); Certificate[] certs = certstore.EnumCe ...Show All
kevin D. white Process.GetProcessesByName and case sensitivity/uppercasing of process name
When listing processes using Process.GetProcesses() I sometimes see “notepad”, and sometimes I see “NOTEPAD”, sometimes I find process named “iexplore” sometimes “IEXPLORE”. (This is consistent with Task manager displaying “notepad.exe” vs “NOTEPAD.EXE”.) What is even stranger the following code ProcessStartInfo startInfo = new ProcessStartInfo(“notepad”); Process result = Process.Start(startInfo); Resulted on couple of occasions with “NOTEPAD” process being launched as opposed to “notepad”. Unfortunately, using Process.GetProcessesByName(“notepad”) will NOT return any hits for processes with process with name “NOTEPAD”. This looks to me like a bug, if process name should be either consistently case sensitive or not, if it i ...Show All
etcheverrjc How to know what exceptions a method can throw?
I was reading in some other posts that you only have to catch known exceptions. And that it is not allowed to catch Exception like this: private void CheckCancelEntryWeighingRecords() { try { mis.Transfer(data.CsvData); //Call to a third party dll } catch (Exception ex) { LogError("Error occured in CheckCancelEntryWeighingRecords", ex); } } How can I know what exceptions a method can throw So that i can decide on which situation i can recover and on which not I know that the Framework.NET has documented the most exceptions. But what about third party dll's with bad of no documentation I also know i could use reflector to look what the possible exceptions a ...Show All
AlexBB LocalIntranet permissions on whole network
Good afternoon, My company has been developing this application that uses .NET Framework 1.1, and we are attempting to set up the users with the ability to execute it. Instead of distributing the executables to each desktop locally, we have put them on the network and supplied links to the software. However, going down this route requires permissions for LocalIntranet to be set to Full Trust (quick way) or adding each DLL and EXE to the known files in the .NET Framework Configuration manager. Once these settings are put in place, the software is able to run. My question is, is there a way to automate this to avoid going through all the user machines and setting this option by hand We are going to be pushing out the netfx.msi though the net ...Show All
adisciullo XmlDoc.LoadXml() Issue
Hello Experts, I have Html Document stored in a String and would like to parse that string using XML DOM. This is sample of my string printXml (which stores inner html). When I print this string on console, it shows following: -------------------------------------------------------------------------------------------------------------------------------------- <TBODY> <TR> <TD height="1%"> <TABLE style="TABLE-LAYOUT: fixed" cellSpacing=0 cellPadding=3 width="100%" valign="top"> <COLGROUP> <COL width=115> <COL> <COL style="PADDING-LEFT: 20px" width=135> ... etc --------------------------------------------------------------------------- ...Show All
ibrahimK Get XML from a XSD file
I have an ASP.NET 2.0 applciation that has a XSD file in the project. The XSD file is quite large with table information etc... and I was wondering if there was a way to get a XML document based on the Schema of the XSD file Is there a WriteToXML() method that I am missing or something XSD is XML so you don't need to write it to XML. If you mean create a sample XML that is valid according to given DTD, this may be possible, but .NET Framework doesn't provide such functionality. Read this MSDN article by Priya Lakshminarayanan Generating XML Documents from XML Schemas Cheers, Dimitre Novatchev Hey thanks guy for the tips, I will let you know ...Show All
Kim Carlsen Controling the Order of Xml Serialization
I have an object which serializes fine to xml, but when I deserialize back to an object I need to ensure that certain elements deserialize before their dependant siblings. The schema that I'm using doesn't define a specific order, so sometimes it comes in different order ie: <RootNode> <DependantNode/> <Non-DependantNode/> </RootNode> or <RootNode> <Non-DependantNode/> <DependantNode/> </RootNode> Is there a way to tell the serializer to only process a certain field after it has processed another Or do I need to modify the Xml before deserializing Thanks for any help, Matt Bell How are you defining the object T ...Show All
Timothy Greer Sending a Mail
Hi, How to send a mail from one system to another system with in a same LAN, Using vb.net Windows application [using SMTP] Please Help me. thread will be moved to the appropriate forum once the forums are back up if you run a quick forum search, you will get quite a few hits on the solution :-) ...Show All
hfann Socket connection between two mobile devices
Hi, Has anyone tried to establish a socket connection between two mobile devices Is it possible Thanks Not tried it, I connected Mobile Device to PC works fine. And I'm sure Mobile device to Mobile device will also work the same way bacause .Net Compact framework supports litening socket. Why dont you give it a try Cheers ;-) ...Show All
Bill Poole Error when running my app from a net folder
I need to use some of the apps i build in my company through the network. When i try to run them locally, from my local hard drive, they run fine and i have no problem, but, when i finish developing them, i have to put them in a network forder that everybody in the company can see.. this folder is in the company's server and the problem is that, when i try to run the app, i get an error message that says something like this: The application tryed to perform a not allowed action because of the security directives. For giving this app the needed permission, get in contact with the system administrator or use the Microsoft .NET Framework configuration tool. If you click on continue, the app will skip this error and try to go on. If you click ...Show All
shengren advpack error
when I try to install the .net framework 2.0 I get a message saying"Error creating process <C:\DOCUME~1\"username"\LOCALS~1\Temp\IXP000.TMP\Install.exe> Reason: C:\WINDOWS\system32\advpack.dll" Why is this happening and what can I do to fix this. try to execute Install.exe directly from C:\DOCUME~1\"username"\LOCALS~1\Temp\IXP000.TMP\ i was getting the same error but with another file in that directory when i try to install msn. (I don't remember exactly. boot.. somthing). I run it from there and the installation works fine. Try extracting with the "-c" option and then install from there. "dotnetfx.exe ...Show All
pcd Error while unloading appdomain. (Exception from HRESULT: 0x80131015)
Hi, I am using Wiasrc.dll component for displaying a selecting dialog box on user machine.Its web base project.It runs fine in vs2005 which use built-in web server.But when i run on IIS. It give a following error after 5 to 10. Error while unloading appdomain. (Exception from HRESULT: 0x80131015) System.CannotUnloadAppDomainException was unhandled Message="Error while unloading appdomain. (Exception from HRESULT: 0x80131015)" Source="mscorlib" StackTrace: at System.AppDomain.Unload(AppDomain domain) at System.Web.HttpRuntime.ReleaseResourcesAndUnloadAppDomain(Object state) at System.Threading._ThreadPoolWaitCallback.WaitCallback_Context(Object state) at System.Threading.ExecutionContext.Run(E ...Show All
james_cline_ How to debug this.invoke in clientProxy
Can anyone explain what going on inside this.invoke e.g.debug this.invoke [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/HelloWorld", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] public string HelloWorld() { object [] results = this .Invoke("HelloWorld", new object [0]); return (( string )(results[0])); } Thanks you very much Pablo. There are a couple of methods available for debugging webservices. One simple way is to add the webservice into the tools-deb ...Show All
ACCOUNTINGONLINE.US MSDataSetGenerator and Null Values
Is there an update for MSDataSetGenerator in the works so that it will make use of the new nullable datatypes in c# Kyle Jedrusiak ...Show All
Andy E Exception Details: System.Security.SecurityException: Request for the permission of type 'System.Configuration.Configuration
Hi, I face problem on my project which is related to security, Exception Details: System.Security.SecurityException: Request for the permission of type 'System.Configuration.ConfigurationPermission, System.Configuration, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' failed. for more detail please check following url : http://www.aditechinfosys.com/aspdotnetstorefront6/default.aspx Please help me by providing solution. with regards, You link does not provide the same error. Which error do you need help with Recheck the version your domian is running in( change it to V1) and also set the medium application for your domain. I have made some changes in two day ago for sloving problem. ...Show All
