Posts Tagged C#

Request for the permission of type ‘System.Data…’ failed

While testing one of the old samples I found that it is giving me an exceptions of permissions. The exception raised was  Request for the permission of type 'System.Data.OleDb.OleDbPermission, System.Data, Version 2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed. Upon checking I found that I have opened the project from a Network Drive location which as causing the permissions problem.

To resolve this you can simply take the copy of code to local drive and reopen the project.

Tags: , , ,

My experiences with SOAP Web-service PHP vs .NET

Recently I have been developing web-services for integration of one of our flagship product to other POS software at Meditab Software. My official working platform is PHP and we have been developing web services for communication between our products to internal web applications in the past but it was like "We understand what we speak..!" as we have not been dealing with any external entity during these communications the input parameters used to be simple data-types and for output we understand what we give back using single simple data-type.

When I read requirement specification for the web service which I have developed recently I thought I could finish it in a day or two as I have been developing web-services recently. I went on and started and went into trouble with "complexType" declaration in WSDL. I was having C# example to work with provided by the company which was going to use my webservice. I tried that but the thing is when you use Microsoft ASP.NET platform to develop web services what developer needs to is just expose their method with [WebMethod] attribute and you are done! All hardwork and complex WSDL generation will be done by .NET framework. But when it comes to PHP you gotta deal with WSDL generation and make sure you do it perfectly or else your web-service won't work. Read the rest of this entry »

Tags: , , , ,