The next version of Visual Studio, Microsoft® Visual Studio® 2008, will provide an industry-leading developer experience for Windows Vista, the 2007 Microsoft Office system, and the Web. In addition, it will continue in the Microsoft tradition of development language innovation.
Monday, August 06, 2007
Microsoft Visual Studio 2008
The next version of Visual Studio, Microsoft® Visual Studio® 2008, will provide an industry-leading developer experience for Windows Vista, the 2007 Microsoft Office system, and the Web. In addition, it will continue in the Microsoft tradition of development language innovation.
Wednesday, May 30, 2007
Adobe's ColdFusion warms to .Net
San Francisco (InfoWorld) - Adobe's ColdFusion software for building Internet applications and Web sites is being improved with Microsoft .Net support, enabling .Net objects to be invoked from within the ColdFusion language.
A public beta of ColdFusion 8, accessible here, is to be offered on Wednesday. The general release is set for mid-year. Version 8 is the first Adobe-branded release of the former Macromedia technology.
ColdFusion is a server-side Java application; it is partnered with a markup language for writing ColdFusion applications. .Net support in the upcoming version 8 bridges the Java and Microsoft worlds."Customers don't need to select one technology to the exclusion of the other," Tim Buntel, Adobe senior product marketing manager, said.
Also featured in ColdFusion 8 is generation of PDF documents as well as capabilities for working with PDF forms and manipulating existing PDF documents. Support for the JBoss application server has been added, also.
For developers, Adobe is adding interactive debugging based on the Eclipse IDE. A Server Monitor capability, meanwhile, identifies bottlenecks in the server.
Adobe's Flex rich Internet application technology and AJAX (Asynchronous JavaScript and XML) components are leveraged in the new product for integration of complex environments with intuitive interfaces, Adobe said.
ColdFusion differs from Flex in that Flex is a client-side technology featuring a language and compiler to convert code to Flash content. With ColdFusion, the server-side technology can integrate with databases and Java and .Net objects while also offering text searching. However, ColdFusion also can generate an HTML interface for Web applications.
The ColdFusion upgrade puts to rest questions about Adobe's commitment to the technology after acquiring Macromedia, said analyst Ray Valdes, research director for Internet platforms and Web services at Gartner.
"People may have wondered if Adobe appreciated ColdFusion, and I think they do. I think it's part of their enterprise software strategy," Valdes said.
While Adobe recently offered the Flex software development kit to the community at large via open source, there are no plans to open-source ColdFusion. This stance gives the company the ability to make certain ColdFusion integrates with other Adobe technologies, Buntel said.
Yahoo News
Friday, March 09, 2007
"Server Error in '/application name' Application"
You may receive the following error message while browsing an asp.net application.
"Server Error in '/application name' Application
------------------------------------------------
Runtime Error Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.
Details: To enable the details of this specific error message to be viewable on remote machines, please create a tag within a "web.config" configuration file located in the root directory of the current web application. This tag should then have its "mode" attribute set to "Off".
This error might occur due to two scenarios.
1. There is an error in the application's logic with the inputformat, Type etc., and you have set the Custom Error Mode in the web.config to "On" and not specified a default redirect error page.
2. The web.config file is not well formed or having invalid characters and the application is not able to pick up the settings from the same.
Solution
1. Set the custom error mode to "Off" to view the error.
After rectifying it and before deployment, change it to "On" and specify a default error page, as follows:-

such that your users will not be able to see the actual error and get your friendly error page where you can politely say "An error has occured! Contact the Application Help Support ..." .
2. If the above solution is not working (i.e. even after setting the custom error mode to On, the same "Server Error" occurs, then the likely chance is that your web.config file is not well formed and has invalid characters etc.,
To resolve, it copy paste the contents of the file to a notepad, save it as an xml file and try to browse the xml file in the browser. If the xml file is unable to be rendered by the browser and throws error, then you can find the place where the tags are not well formed or invalid character(s) exist and rectify them.
Things worth noting is Web.config is case sensitive (off, oFF,..etc) and even trailing/leading spaces can cause the above error.
you will encounter the same problem at the time of hosting a website to a remote webserver. Eventhough once you have change the web.conf you will get that above message.
solution is to check whether is to make sure that you have given appropriate/suitable permission to the folders like App_Data & to double check the .NET version.
hope all you guys can learn something about the above problem.
:-)
Monday, February 19, 2007
Visual Studio Add-Ins Every Developer Should Download Now
Tools for code and documentation management and generation
Tools for modifying the development environment
Tools for working with data
More Details
Saturday, February 10, 2007
POS for .NET and OPOS
OPOS is an existing implementation of UPOS for Microsoft Windows, based on Component Object Model (COM) technology. POS for .NET constitutes an improved, next-generation implementation of UPOS for Microsoft Windows, based on .NET. In comparison to OPOS, POS for .NET increases productivity of developers of both POS applications and service objects, by providing all the benefits of .NET managed code while at the same time exposing a set of easy to use interfaces and base classes.
POS for .NET is backward-compatible with OPOS version 1.8 service objects. In other words, applications using POS for .NET can simultaneously interact with .NET service objects written for POS for .NET and OPOS service objects.
POS for .NET Device Basic Classes
Each hardware device in POS for .NET is represented by both an abstract interface, such as CashDrawer class, and a “basic” class, such as CashDrawerBasic. Basic classes derive from the underlying interface and contain basic functional support for the device. POS for .NET provides generic support for opening, claiming, and enabling the device; device statistics; and management of delivery of events to the application. In addition, each basic class contains a set of inherited and protected methods that can be implemented by the service object. This topic provides summary information about basic classes that can be used by service objects that wish to derive from the device’s basic class, rather than taking advantage of the more fully implemented device base class
http://msdn2.microsoft.com/en-us/library/ms827970.aspxTuesday, February 06, 2007
New ConfigurationManager in VS 2005
System.Configuration.ConfigurationSettings.AppSettings["connstr"].ToString();
And the compiler gave me the following error.
Warning 1 'System.Configuration.ConfigurationSettings.AppSettings' is obsolete: 'This method is obsolete, it has been replaced by ConfigurationManager.AppSettings'
So I try and change my Code to the following ...
System.Configuration.ConfigurationManager.AppSettings["connstr"].ToString();
and I get a compiler error, saying the compiler can't find ConfigurationManager.
Well here's the confusion.... The Original System.Configuration.ConfigurationSettings class is found in the System.dll assembly. There is a new assembly with all the new ConfigurationManager classes as System.Configuration.dll. Before using the ConfigurationManager class, you must first set a reference to the new System.Configuration.dll.
Add a reference to System.Configuration by clicking Project -> Add Reference... and searching through the .NET components for System.Configuration
Friday, February 02, 2007
Mobiles to get portable hard drives
The first portable hard drives for phones are coming onto the market, promising a "multimedia revolution".
Seagate launched its Digital Audio Video Experience (Dave) range of mobile hard drives on 30th Jan 2007, which consist of a 1cm thick credit card sized unit storing 10GB to 20GB of storage and communicating with phones via Bluetooth.
The devices have a range of around 30ft and battery life of 14 days standby or 10 hours use. No pricing details have yet been released.
"Mobile telephony is undergoing a multimedia revolution, and the Dave mobile content platform will provide even more fuel for the growth of new music and video services over mobile networks," said Patrick King, senior vice president and general manager of Seagate's consumer electronics business unit.
"Products using Dave will enable digital content for business or entertainment to be stored, moved and connected in ways never before possible."
But Seagate has been beaten to the punch on the technology by Agere Systems with a similar device, the BlueOnyx, that can communicate via Bluetooth or Wi-Fi and can store up to 40GB.
Models are also available with USB and SD card ports, and costs range from £50 to £130.
"We wanted to create a highly mobile device that solves a lot of the connectivity issues consumers have while giving them all the storage they want at an affordable price," said Ruediger Stroh, general manager of Agere's storage division.
"The capability will finally make the PC just another consumer device instead of the centre of the digital universe."
Source: vnunet
ADO.NET Connection Strings
strConnection = _T("Driver={Microsoft Excel Driver (*.xls)};DriverId=790;" bq=C:\\DatabasePath\\DBSpreadSheet.xls;
DefaultDir=c:\\databasepath;");
ODBC Driver for Text
strConnection = _T("Driver={Microsoft Text Driver (*.txt; *.csv)};" "Dbq=C:\\DatabasePath\\;Extensions=asc,csv,tab,txt;");
Refer Connectionstrings
Wednesday, January 24, 2007
Articles
JavaScript with ASP.NET 2.0 Pages - Part 1
dotnetslackers.com
DATA POINTS
Revisiting System.Transactions
MSDN Article
SENDING EMAIL USING ASP.NET 2.0
Imports System.Net.Mail
Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles SendEmail.Click
Dim Msg As MailMessage = New MailMessage()
Dim MailObj As New SmtpClient
Try
Msg.From = New MailAddress(UsersEmail.Text, "Andy")
Msg.To.Add(New MailAddress("ammarfassy@gmail.com", "Author"))
MailObj.Host = "192.168.16.70"
MailObj.Port = 25
Msg.IsBodyHtml = "False"
Msg.Body = Body.Text
Msg.Subject = Subject.Text
MailObj.Send(Msg)
Label1.Text = "Email Sent!"
Catch ex As Exception
Label1.Text = ex.Message
End Try
End Sub
Add your IP Address (local) in your SMTP server & under the properies add the same IP address to Relay Restrictions (Grant & deny permissions to relay email through this SMTP virutal server).
The sent email will be a spam email!
extra notes on this:
under web.config under

namespace System.Net.Mail;
string UserName = System.Configuration.ConfigurationManager.AppSettings["smtpUsername"];
string Password = System.Configuration.ConfigurationManager.AppSettings["smtpPassword"];
string Host = System.Configuration.ConfigurationManager.AppSettings["smtpServer"]; string sFrom = "me@doman.com";
string sTo;
string sSubject = "sample subject";
string sBody = "sample html body";
string toAddress = "myaddress@someotherdomin.com,myaddress2@someotherdomin.com";
string msgSubject = sSubject;
string msgBody = sBody;
SmtpClient client = new SmtpClient(Host);
MailAddress from = new MailAddress(sFrom);
MailAddress to = new MailAddress(toAddress);
MailMessage message = new MailMessage(from, to);
message.Priority = MailPriority.High;
message.IsBodyHtml = true;
System.Net.NetworkCredential NTLMAuthentication = new System.Net.NetworkCredential(UserName, Password);
message.Subject = msgSubject;
message.Body = msgBody;
client.UseDefaultCredentials = false;
client.Credentials = NTLMAuthentication;
client.Send(message);
Friday, January 05, 2007
.NET Framework 3.0 is released!
.NET Framework 3.0 Runtime Components
Windows SDK for Vista and the .NET Framework 3.0
Visual Studio 2005 Extensions for .NET Framework 3.0 (Windows Workflow Foundation)
Visual Studio 2005 Extensions for .NET Framework 3.0 (WCF & WPF), November 2006 CTP
Note, if you are using Windows Vista the .NET Framework 3.0 Runtime Components are installed by default.
Thursday, January 04, 2007
Monday, January 01, 2007
WELCOME 2007

Life is like having a cup of tea.
You sit by the side of the window, lift the cup and take a careless sip, Only to realize, somebody forgot to put the sugar. Too lazy to go for it you somehow struggle through the sugarless cup. Until you discover un-dissolved sugar crystal sitting at the bottom...
I wish you the Love of friends and family...
I wish you the Beauty of nature...
I wish you Wisdom to choose priorities.. .
I wish you Generousity so you may share...
I wish you Happiness and Joy...
I wish you the best of everything.. .
Happy New Year!
Tuesday, December 26, 2006
Chicken Guinea
i had to stay @ Home for around 5 days because of this Fever & had to suffer a lot coz of this fever!
Chicken Guinea is a high fever accompanied wit joint stiffness & pains when bit by a mutant mosquitoes (usually with white patches over the legs & are usually seen only in the day light) symptons- high fever with joint pains & stiffness lasting for 4 days causes - 1 and only cause is by mosquito bite and is deadly in some cases if ignored.
Doctor asked only for Rest+have liquid stuffs for Hungry! Anyhow once the fever is over i cant eat anything coz the i wont feel any taste of anything! For that only liquid stuffs is good! Thanks my mama & for my family siblings to help me in this situation! I pray Almighty to not to give this fever for anyone!
Thursday, November 16, 2006
An attempt to attach an auto-named database for file "C:\AAA\database.mdf" failed. A database with the same name exists, or specified file cannot be o
An attempt to attach an auto-named database for file c:\hosting\webhost4life\member\shanti23\aba\LatestABAWebsite\App_Data\aspnetdb.mdf failed. A database with the same name exists, or specified file cannot be opened, or it is located on UNC share.
we have to add following few lines to the App.conf file as below:
just refer the link: http://dotnetforum.lk/blogs/ammar/default.aspx
alternatively you can rename the database at the time of deploying the web application if any further exception bugged you! hopes this will help you all!
Exception Details: System.Data.SqlClient.SqlException: Failed to update database.
Exception Details: System.Data.SqlClient.SqlException: Failed to update database "c:\hosting\webhost4life\member\abc23\aba\LatestABAWebsite\App_Data\aspnetdb.mdf" because the database is read-only.
This will happen mainly coz of the folder permission that we have to apply for the App_data folder: so to rectify this problem you have to follow these steps:
After selecting the 'properties' on the "App_Data" directory,
1. Select the security tab
2. CLick on Add... under "Group or User names:" table
3. On the next window, select Advanced, another window appears and on this, select or rather click on "find now" and a list of Groups and Users should appear on the bottom table.
4. Click on ASPNET followed by OK, and the same on the next 2 windows.
if you need to enable the security tab in Windows XP Professional you have to uncheck the setting for "Use simple file sharing (recommended)" under the View tab in the Folder Options control panel applet to enable the Security tab to be displayed. after that you can be able to view the security tab when you viewed any folder properties.
App_Offline.htm
ASP.NET will also then responds to all requests for dynamic pages in the application by sending back the content of the app_offline.htm file.
For example: you might want to have a “Site is under construction” or “the current website is down for maintenance” or "Uploading Changes" message.
This is one of the convenient & easy way to take down your application while you are making big changes or copying lots of new page functionality (at the same time you can avoid the annoying problem of people hitting and activating your site in the middle of a content update). It can also be a useful way to immediately unlock and unload a SQL Express 2005 database whose .mdf data files are residing in the /app_data directory. This will be applicable for the Access (*.mdb) files too!
Once you have removed the app_offline.htm file from the root, the very next request into the web application will cause ASP.NET to load the application and application domain again, and life will continue along as normal.
Thursday, November 02, 2006
AFTER A LONG TIME BACK RESTARTED BLOGGING
restarted blogging! i was so busy for last few months as i have joined with a new company here in colombo!
hope to see you all soon.
Ammar.
Tuesday, July 11, 2006
Tuesday, June 27, 2006
What is a Packet Sniffer?
All information that travels across a network is sent in "packets." For example, when an email is sent from one computer to another, it is first broken up into smaller segments. Each segment has the destination address attached, the source address, and other information such as the number of packets and reassembly order. Once they arrive at the destination, the packet's headers and footers are stripped away, and the packets reconstituted.
In the example of the simplest network where computers share an Ethernet wire, all packets that travel between the various computers are "seen" by every computer on the network. A hub broadcasts every packet to every machine or node on the network, then a filter in each computer discards packets not addressed to it. A packet sniffer disables this filter to capture and analyze some or all packets traveling through the ethernet wire, depending on the sniffer's configuration. This is referred to as "promiscuous mode." Hence, if Ms. Wise on Computer A sends an email to Mr. Geek on Computer B, a packet sniffer set up on Computer D could passively capture their communication packets without either Ms. Wise or Mr. Geek knowing. This type of packet sniffer is very hard to detect because it generates no traffic of its own.
A slightly safer environment is a switched Ethernet network. Rather than a central hub that broadcasts all traffic on the network to all machines, the switch acts like a central switchboard. It receives packets directly from the originating computer, and sends them directly to the machine to which they are addressed. In this scenario, if Computer A sends an email to Computer B, and Computer D is in promiscuous mode, it still won't see the packets. Therefore, some people mistakenly assume a packet sniffer cannot be used on a switched network.
But there are ways to hack the switch protocol. A procedure called ARP poisoning basically fools the switch to substituting the machine with the packet sniffer for the destination machine. After capturing the data, the packets can be sent to the real destination. The other technique is to flood the switch with MAC (network) addresses so that the switch defaults into "failopen" mode. In this mode it starts behaving like a hub, transmitting all packets to all machines to make sure traffic gets through. Both ARP poisoning and MAC flooding generate traffic signatures that can be detected by packet sniffer detection programs.
A packet sniffer can also be used on the Internet to capture data traveling between computers. Internet packets often have very long distances to travel, passing through several routers that act like intermediate post offices. A packet sniffer might be installed at any point along the way. It could also be clandestinely installed on a server that acts as a gateway or collects vital personal information.
A packet sniffer is not just a hacker's tool. It can be used for network troubleshooting and other useful purposes. However, in the wrong hands, a packet sniffer can capture sensitive personal information that can lead to invasion of privacy, identity theft, and other serious eventualities.
The best defense against a packet sniffer is a good offense: encryption. When strong encryption is used, all packets are unreadable to any but the destination address, making packet sniffers useless. They can still capture packets, but the contents will be undecipherable. This illustrates why it is so important to use secure sites to send and receive personal information, such as name, address, passwords, and certainly any credit card information or other sensitive data. A website that uses encryption starts with https. Email can be made secure by encrypting with a program like PGP (Pretty Good Privacy), which comes with seamless plug-ins for all major email programs.


