Back in Action
Its been a Long time i looked into this blog. I am going to make it working again.
Application Development Security Guidance for .NET 2.0
This page explains the rationale behind the patterns & practices Security Guidance for .NET Framework 2.0 projects. Use this guidance to improve both the security of your applications and your approach to building secure applications.
For More info, please follow the link.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnpag2/html/AppSecGuidanceForFrameworkV2.asp
Looks at creating more dynamic user interfaces using JavaScript RPC to communicate with the server and update without requiring a browser refresh.
For more info check this link.
http://msdn.microsoft.com/asp.net/default.aspx?pull=/library/en-us/dnaspp/html/lifewithoutrefresh.asp
This, boys and girls, is possibly among the most common questions thrown online, in our time.
It ranks right up there with 'What's your email ID?' and 'Do you use an Instant Messenger?' For the ability to answer that question, here's what you need to know...
http://in.rediff.com/getahead/2005/jul/21blog.htm
Review the host of improvements and new features that make the Microsoft Visual Studio 2005 integrated development environment (IDE) even more impressive than its predecessors.
http://msdn.microsoft.com/library/default.asp?url=/library
/en-us/dnvs05/html/vs2005icons.asp
<%@ WebService Language="VB" Class="ConvertMoney" %>
Imports System.Web.Service
Public Class ConvertMoney
Inherits WebService
Public Function _
PoundsToDollars(BritishPounds As Double) As Double
Return BritishPounds * 1.44
End Function
End Class Here is the code to implement the same thing with a remotable component:Public Class ConvertMoney
Inherits System.MarshalByRefObject
Public Function _
PoundsToDollars(ByVal BritishPounds As Double) As Double
Return BritishPounds * 1.44
End Function
End Class The component looks simpler. In fact, the only difference is that it inherits from System.MarshalByRefObject. But remember, you need to build a host application that instantiates the object and listens for requests. The code for the host object could look like this:Imports System.Runtime.Remoting
Imports System.Runtime.Remoting.Channels
Imports System.Runtime.Remoting.Channels.Tcp
Imports RemoteConvertMoney
Module Module1
Sub Main()
Dim tcpChannel As New TcpChannel(7777)
ChannelServices.RegisterChannel(tcpChannel)
Dim ChangeMoney As New ConvertMoney
RemotingServices.Marshal(ChangeMoney, "ConvertMoney")
Console.ReadLine()
End Sub
End Module In this case, the host application is a console application. You start the application and it launches a console application and creates the object. The console application runs until someone presses the [Enter] key, and the object is available until needed.All the best software development practices and testing efforts in the world can not guarantee that there are no intermittent or unexplainable application issues when in production. Worst case scenario being application hangs and crashes. This article shows how to take dumps of .NET applications and analyze them. This helps developers to understand the issue and find the faulty code.
For More info please refer the following Link
SOS from your production environment
There are couple of ways we can retrieve the proxy settings in C# or VB.NET.
Method 1 : Read the settings directly from the registry.
When we change the proxy settings thorugh Internet Explorer, the settings is stored in the registry. We can read the registry values to check if the proxy is enabled and find the proxy server.Microsoft.Win32.RegistryKey key =
Microsoft.Win32.Registry.CurrentUser.OpenSubKey("Software\Microsoft\\Windows\\CurrentVersion\\Internet Settings");
string proxyEnabled = key.GetValue( "ProxyEnable" ).ToString();
The following code will return the proxy server address specified in the IE settings, even if it is not enabled.string proxyServer = key.GetValue("ProxyServer") == null ?
string.Empty : key.GetValue("ProxyServer").ToString();
Method 2 : We can use the Webproxy class to get details about the current proxy settings.System.Net.WebProxy webProxy = System.Net.WebProxy.GetDefaultProxy();
bool bypassProxyForLocal = webProxy.BypassProxyOnLocal;
Uri address = webProxy.Address;
if ( address != null )
{
string host = address.Host;
string port = address.Port.ToString();
}
Using the WebProxy class is a better solution. It exposes various properties using which we can retrieve information related to the proxy settings including port number, host address etc. Reading from registry directly returns a single string, which we may need to parse to extract the host address and port number.
Service orientation is a means for building distributed systems. Fundamental to the service model, is the separation between the interface, and the implementation. The invoker of a service need only understand the interface;
A service is nothing but a unit of work done by a service provider to achieve desired end results for a service consumer.
In fact Service orientation is a complement of object – orientation. Object orientation, focuses on the applications that are built from interdependent class libraries. However service-oriented development focuses on the systems that are built from autonomous services.
Microsoft decided to combine all these 4 stacks into a cleaner and a powerful stack and named it as Indigo services.
Interoperable Web Services - ASMX model
.NET – .NET Communication - .Net Remoting
Distributed Transactions - COM+ services
Queued Messaging - MSMQ
In the future the answer for all the above technological requirements is Indigo services.
Basically the protocol that indigo uses in the wire is SOAP which is a standard in the web services across all platforms.
Creation of service is easier. Each service will have 1 or more end points that are accessible by service consumers, and a Meta data information.
The "Indigo" service model makes service-oriented development explicit and simple from any CLR-targeted language.. The "Indigo" service model supports two kinds of contracts: service contracts and data contracts.
A service contract describes the pattern of message exchanges that are used to interact with a service. Service contracts are analogous to Web Services Description Language (WSDL) portType definitions.
Data contracts are structural in nature and describe the external format of a CLR type. A data contract is analogous to an XML schema definition.
To Create the Indigo service:
Step 1: Import The system.collections.generic;
Step 2: Create a Interface and provide the declaration of the methods that the service will offer. Methods will be declared with operationcontract attribute
Step 3: Mark the interface with ServiceContract attribute. It has two properties Name, Namespace.
Step 4: Create a class that implements your service interface and provide the Definition for the method declared in the interface here.
Step 5: Client.
Create the binding, Service host and URI objects here.
Step 6: Add end points to the service host.
Call the service methods. That’s it. You have your indigo service.
Hosting Indigo Services:
A class implementing an Indigo service is compiled into a library. Indigo provides two options for hosting libraries that implement services.
1. Use a host app domain and process provided by the Windows Activation Service
2. Host the service in any app domain running in an arbitrary process.
Indigo will use the SOAP Message Transmission Optimization Mechanism (MTOM) for the attachment technology. More over Indigo will support transactions and synchronous and asynchronous messaging and peer-peer interaction.
Begin building services that will be compatible with the Indigo services when released.
How a Request is handled and processed in IIS. Refer the following link.
http://www.dotnet247.com/247reference/msgs/12/62243.aspx