Showing posts from 2009

Could not load file or assembly 'System.Data.SqlServerCe'

Solution :
When I migrate my 32 Bit VB.NET application to 64 Bit VB.NET 2008 compact application it throws me the error saying "Could not load file or assembly 'System.Data.SqlServerCe' " or similar to this error mesage.

When you run the application it may throw the following error saying that could not load or assembly 'System.Data.SqlServerCe' even after installing the service pack for Vista 64 bit OS and also for .NET framework 3.5 the same error prsist.

Then I identified that something is wrong with the core reference thatis is missing with framework. Then I installed the "Microsoft SQL Server Compact 3.5 Service Pack 1 and Synchronization Services for ADO.NET version 1.0 Service Pack 1 for Windows Desktop"

This installation will solve you the problem.
And then the problem you face is the different one. :)
restart the your system and then follow as per the

Happy coding

Is it the difference?

Design Pattern: Programmatically how the whole system is going to be developed

Architecture: Systamatically how the solution is going to be developed.

Is Windows 7 a Greatest OS ever!!!???###

An excellect article I read, and I would like to share with you all.
go thro' the pcworld article on Windows 7
Hope everyone likes the same...

ASP.NET controls and CSS usage tips

While using ASP.NET controls its hard to override font styles properties from CSS classes, because ASP.NET controls have there own font style properties for most of the controls.
So have this in mind and dont keep on thinking why some of the CSS font style properties not reflecting in the ASP.NET control. Just the font properties of the controls while using ASP.NET controls.


Microsoft Surface Developer Challenge

The Microsoft Surface Developer Challenge is a fun entry into building intuitive and forward-thinking applications specifically for Microsoft Surface. Instead of simply retro-fitting existing applications for Microsoft Surface, this challenge starts and ends with touch. It’s about touch first computing on the Microsoft Surface platform.

Assembly 'AjaxControlToolkit, Version=3.0.30512.20315, Culture=neutral, PublicKeyToken=28f01b0e84b6d53e' uses 'System.Web.Extensions, Version=,

ErrorAssembly 'AjaxControlToolkit, Version=3.0.30512.20315, Culture=neutral, PublicKeyToken=28f01b0e84b6d53e' uses 'System.Web.Extensions, Version=, Culture=neutral, PublicKeyToken=31bf3856ad364e35' which has a higher version than referenced assembly 'System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'

The solution worked for me is...
1) I changed target framework to 3.5 in all the projects in my solution
2) Clean all the projects in the solution
3) Rebuild the full solution
4) Open the web.config file and remove the content
<runtime >
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<assemblyIdentity name="System.Web.Extensions" publicKeyToken="31bf3856ad364e35">
<bindingRedirect oldVersion="" newVersion="">

Visual Studio 2008 - The requested page cannot be accessed because the related configuration data for the page is invalid


Microsoft Visual Studio
Unable to start debugging on the web server.

Server Error
Internet Information Services 7.0

Error Summary
HTTP Error 500.19 - Internal Server Error
The requested page cannot be accessed because the related configuration data for the page is invalid.

Detailed Error InformationError Summary
HTTP Error 500.19 - Internal Server Error
The requested page cannot be accessed because the related configuration data for the page is invalid.

Config Source

Make sure the server is operating correctly. Verify there are no syntax errors in web.config by doing a Debug.Start Without Debugging. You may also want to refer to the ASP.NET and ATL Server debugging topic in the online documentation.
OK Help

You are using IIS 7.0 on a computer that is running Windows Vista. Additionally, you configure the Web site to use UNC Passthrough authentication to access a rem…

Types and there definitions in C#.NET

TypeBase class that represents any type.Value TypeBase class that represents any value type.Reference TypesAny data types that are accessed through a reference and stored on the heap.Built-in Value TypesIncludes most of the standard primitive types, which represent numbers, Boolean values, or characters.EnumerationsSets of enumerated values.User-defined Value TypesTypes that have been defined in source code and are stored as value types. In C# terms, this means any struct.Interface TypesInterfaces.Pointer TypesPointers.Self-describing TypesData types that provide information about themselves for the benefit of the garbage collector .ArraysAny type that contains an array of objects.Class TypesTypes that are self-describing but are not arrays.DelegatesTypes that are designed to hold references to methods.User-defined Reference TypesTypes that have been defined in source code and are stored as reference types. In C# terms, this means any class.Boxed Value TypesA value type that is tempor…

In-memory application cache for all kinds of data

Microsoft project code named “Velocity” provides a highly scalable in-memory application cache for all kinds of data. By using cache, you can significantly improve application performance by avoiding unnecessary calls to the data source. Distributed cache enables your application to match increasing demand with increasing throughput by using a cache cluster that automatically manages the complexities of load balancing. When you use “Velocity,” you can retrieve data by using keys or other identifiers, named “tags.” “Velocity” supports optimistic and pessimistic concurrency models, high availability, and a variety of cache configurations. “Velocity” includes an ASP.NET session provider object that enables you to store ASP.NET session objects in the distributed cache without having to write to databases, which increases the performance and scalability of ASP.NET applications. For more information, see the What’s New topic in the product documentation.

ASP.NET website "Cannot read configuration file due to insufficient permissions" in IIS 7 and Windows Server 2008

"The server is configured to use pass-through authentication with a built-in account to access the specified physical path. However, IIS Manager cannot verify whether the built-in account has access. Make sure that the application pool identity has Read access to the physical path. If this server is joined to a domain, and the application pool identity is NetworkService or LocalSystem, verify that \$ has Read access to the physical path. Then test these settings again."

"Cannot read configuration file due to insufficient permissions"

1. Add IIS_IUSRS with Read permission on files in the folder
2. Change IIS authentication method to BasicAuthentication
3. refresh the website. It will work

Save Green, Earn Green, Code Green

Enter the Will Code for Green! developer contest and if your economy or ecology themed web application is chosen as one of the two grand prize winners at the 2009 technology conference, you'll win $10,000 - enough to take the idea further! Imagine how that could help you help others!

Tell us how your application is either helping people deal with the worsening global economy or helping to improve the ecology of the planet Earth and Show Us how you're coding for green!

Check back every week as the entries grow and vote for your favorites (limit one per category) through August 12,2009! Please see the Official Rules for more information. Just enter your Email Address to begin.

Global SharePoint Survey

This is an independent survey being conducted to get a glimpse into the adoption and usage of Microsoft Office SharePoint products and technologies worldwide. The survey has been designed to ensure we are respectful of your time, no questions are mandatory, the majority of the questions are multiple choice, and the path of questions is customized based on your responses. In total there are fifteen questionsSharepointSurveyThe survey is open to both business and IT professional users of SharePoint. Those who participate in the survey will be eligible to win a conference pass to the 2009 Microsoft SharePoint Conference in Las Vegas (value USD $1199).

Could not write lines to file is denied. Visual Studio 2005

Error 11 Could not write lines to file "obj\Activities.csproj.FileList.txt". Access to the path 'D:\StarTeam\Activities\obj\Activities.csproj.FileList.txt' is denied. Activities
Issue: As you can see, MSBuild is trying to write to the *.vbproj.FileList.txt file in the \obj folder, but access is denied. If you look at this file on disk, you will notice that it is marked as read-only. No big deal, just turn off the read-only flag. You do this and rebuild, but the build passes. Very good! You go home with a nice case of the "warm fuzzies" and sleep like a baby. In the morning you come in to the office to find that the nightly build broke with the same exception. You look at the *.vbproj.FileList.txt file and it is read-only on the build machine. You scratch your head and let out a expletives and then delete the entire \obj folder. Then the nightly build is run again and if fails again damn it! Oh look, the *.vbproj.FileList.txt file is back to read-only. Sound…

So what is XAMLFest?

XAML its all you want...
Are you excited about WPF but concerned about the learning curve? Have you seen Silverlight but don’t know where to get started? Or are you curious about how tools like Expression Blend help designers and developers deliver great user experiences together? If so, join us at XamlFest!

XAMLfest Online is a five day event hosted by and delivered through both live sessions and recorded training. The recorded training can be viewed at any time, but each segment should be watched before you participate in a related live session. The table below should help illustrate how each session relates to another.

>Explore more>

Solution and Authored Artifact Development Models for SharePoint Products and Technologies

Learn about methodologies and strategies to reconcile differences between Microsoft SharePoint Products and Technologies artifact development and assembly development. The strategies include combining these two components into a single version control repository, such as Microsoft Visual Studio 2008 Team Foundation Server. (12 printed pages)

This article was feel good resource for SharePoint professional...
happy reading >>

Package Load Failure - You may use 'devenv /resetskippkgs' to re-enable package loading

Recently when I planned to explore on the Microsoft ServiceFactory, and leading to that I started setting up the development environment for the same. After installing ServiceFactoryV3 and Guidance Automation Extensions for my Visual Studio 2005, when I opened the Visual Studio IDE I was facing the first innovative task :) to be solved by me was the dll load error for the Service factory. Handling the error messages of the development tools is not going to the new task for Microsoft technology programmers :) . The following is the error I faced ---------------------------Microsoft Visual Studio---------------------------Package Load Failure
Package 'Microsoft.Practices.ServiceFactory.VsPkg.ModelProjectPackage, Microsoft.Practices.ServiceFactory.VsPkg, Version=, Culture=neutral, PublicKeyToken=628c8c43ff73aea8' has failed to load properly ( GUID = {3A053D37-49A0-4713-A3C4-6161158FB0C4} ). Please contact package vendor for assistance. Application restart is recommended, du…

Learn Windows 7


Server Application Unavailable in IIS for ASP.NET application

Problem :
Server Application Unavailable
The web application you are attempting to access on this web server is currently unavailable. Please hit the "Refresh" button in your web browser to retry your request.
Administrator Note: An error message detailing the cause of this specific request failure can be found in the application event log of the web server. Please review this log entry to discover what caused this error to occur.

Solution 1:
Open the command promt and direct to the folder C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727
and run the command to install ASP.NET in your IIS
aspnet_regiis.exe -i

Solution 2:
To work around this problem, verify that the ASPNET account has the correct user rights as follows:
a) %windir%\Microsoft.NET\Framework\Version\Temporary ASP.NET Files: Full Control
%windir%\Temp: Full Control
b) Application folder: Read
c) %installroot% hierarchy (for example, %windir%\Microsoft.Net\Framework\Version): Read
d) %windir%\Assembly: Read
e) Web site root (for exa…

Community Credit Winner! March 2009

Won 3rd Prize in the March 2009 Contest. As you may know, a lot of people competed, but only a few won. Nicely done! Please also keep in mind that your prize is not just a stupid, geeky gift, but it's also a symbol to represent your contributions to the development community. When folks ask you how you won, you can tell them that it was by helping out other geeks. Be proud and brag.

Unveiled new ASP.NET MVC

ASP.NET MVC enables you to build Model View Controller (MVC) applications by using the ASP.NET framework. ASP.NET MVC is an alternative, not a replacement, for ASP.NET Web Forms that offers the following benefits:
Clear separation of concerns
Testability - support for Test-Driven Development
Fine-grained control over HTML and JavaScript
Intuitive URLs

More on that...

Silverlight 3 Beta Available...

Silverlight 3 Beta was unveiled at MIX09. It is a preview release which continues Silverlight’s track record of rapid innovation - introducing more than 50 new features, including support for running Silverlight applications out of the browser, dramatic video performance and quality improvements, and features that radically improve developer productivity.
The next generation luxurious UI framwork...

Learn more ...

Microsoft Most Valuable Professional 2009 :)

I have been awarded the Most Valuable Professional for third consecutive year by Microsoft. This was great moment in my life to get this honor. Thanks to Microsoft and all of you, for your great support and encouragement.

Visual Studio 2008 extensions for Windows SharePoint Services 3.0, v1.3

This is the SharePoint developer tools for Visual Studio 2008. These tools are suitable for use with Windows SharePoint Services 3.0 or Microsoft Office SharePoint Server 2007.
The tools provide item templates for List Definition, List Definition from Content Type, Content Type, Field Control, Web Part, Module, Root File, Template, Event Receiver, and List Instance. It provides project templates for Team Site Definition, Blank Site Definition, List Definition, Web Part and Empty. It works with Visual Basic .NET and C# languages and a comprehensive user guide is included.

There more and more widely enhanced new features are there... download now to explore more...

metadata file '.dll' could not found in Visual Studio 2005

When I try to run the ASP.NET 2.0 web application using Visual Studio 2005 i was struck up with some irritating error message "metadata file '.dll' could not found "
Later when I explored on this I found some solutions that solved the problem in my development environment. I would like to share it here, so that it may help others.

Cause of the problem:
Files in the format: App_Web_urfile.dll are created when you compile your web application project using Visual Studio 2005. Every time you compile your solution, the Application is compiled into a 'temp' directory which gets read by IIS or the internal web server available in Visual Studio 2005. In some scenerio, especially if you do a more of testing/debugging, the temp folder gets overload and become unable to understand by the application.

The first option is
1. Clear the temp cache files.
2. Stop or Restart IIS and close your Visual Studio 2005
3. Go to: C:\WINDOWS\Microsoft.NET\Framework\v2.0.__\Temporary ASP.N…

WCF REST Starter Kit Preview 2‏

The WCF REST Starter Kit is a set of features, Visual Studio templates, samples and guidance that enable users to create REST style services using WCF. While the October release of the WCF REST Starter Kit focused on building server-side REST services, the Preview 2 release adds features to make client-side REST development easier. Chief among the new functionality included in Preview 2 is a new class that provides a staged pipeline model for requesting resources over the web. Using this new HTTP client class allows the developer to plug into the various stages of communication to handle custom authentication, caching, and fault handling outside of the client’s application logic. on codeplex

How "VSTO 3.0 for Office 2007 Programming" book born, a true stroy!

VSTO 3.0 for Office 2007 Programming [Buy Now]

I started my career in Microsoft technologies. I was very much keen on exploring technologies and designing applications. When I joined one of the world’s largest software services and consulting company in 2006, I was asked to explore on Microsoft’s upcoming technology SharePoint. I was just started the training material and practicing the same. And suddenly the client work has been allotted for a few which includes me in that team. After the work has been allotted for each individual in the team, I and my colleague (and a best friend) got to work on VSTO programming for InfoPath 2003 which is part of our client project. But my best friend she was not interested in VSTO work and she feels this is not the right technology for her career and raised a question for me, do you feel comfortable in VSTO? Is it good for your career growth? I said for me technology is secondary, for me I was keen on the quality of the work I do, whatever the techn…

WEB 2.0 from Microsoft

KOBE – Web 2.0 Service Development Resource KitKobe is a “getting started” resource kit on planning, architecting, and implementing Web 2.0 applications and services using the Microsoft Platform.

The kit includes a variety of content (presentations, white papers, and a sample project with source code) that caters to these audiences. The implementation artifacts for the sample project included in the kit is targeted at solution architects and developers who are familiar with the Microsoft Platform, and who are looking for information on ways to apply related offerings in the context of architecting and implementing Web 2.0 applications & services.

>Learn more>

MVP Certification Hero Campaign

Get Microsoft Certified:

Help your community to take advantage of this offer to increase their credibility in the market! All they have to do is go to by March 31, 2009 to obtain a Microsoft Exam Voucher using your MVP Promotion Code.

This will get you more offers Your Unique Microsoft Certification Exam Voucher Code: GS00DRJ3UV

Use the above to get discount on your certification

Get the Host name and IP address from ASP.NET

To get the Host name and IP address from your ASP.NET application, we have option is .NET. Using the using System.Net; namespace you have access to the classes which can expose the Host name and IP address.

The sample code to explain the solution. Paste the same code in the page load event of the ASP.NET page.

using System.Net;
//Get the Host name
string strHostName = string.Empty;
strHostName = Dns.GetHostName();
// Then using host name, get the IP address list..
IPHostEntry ipEntry = Dns.GetHostByName(strHostName);
//Get the IP address
IPAddress [] addr = ipEntry.AddressList;
for (int i = 0; i < addr.Length; i++)
Response.Write("IP Address {0}: {1} " + i + addr[i].ToString() + ", HostName: " + strHostName);

Composite Application Guidance for WPF and Silverlight v2.0 (PRISM)

The Composite Client Application Guidance is designed to help you more easily build modular Windows Presentation Foundation (WPF) and Silverlight client line of business applications.

These types of applications typically feature multiple screens, rich, flexible user interaction and data visualization, and role-determined behavior. They are built to last and built for change. This means that the application's expected lifetime is measured in years and that it will change in response to new, unforeseen requirements. This application may start small and over time evolve into a composite client—composite applications use loosely coupled, independently evolvable pieces that work together in the overall application.

Read More

Creating Custom Field Types in SharePoint using Visual Studio

Here we are planning to create a Custom field will auto populate with the logged in user information. First we need create project with SharePoint assembly as reference. For this create empty SharePoint Application project.
> Start Visual Studio.
> On the File menu, click New, and then click Project.
> In the Project Types pane of the New Project dialog box, select Visual C#, and then select the SharePoint category.
>In the Templates pane, click Empty. Specify a Name and Location for the project, and then click OK. Visual Studio creates a solution that contains an empty project.

Visual Studio Extensions for Windows SharePoint Services 3.0 provides support
for creating SharePoint field types through the Field Control project item.
Now we need to add a Field Control to the Project we have created.
> In the Visual Studio Solution Explorer, right-click the empty project created in the previous procedure, click Add, and then click New Item.
> In the Categories pane of the Add Ne…

Here the Training Course Directory in Microsoft

Here the Training Course Directory in Microsoft, some collection of training videos and events which will be very usefull.

Click here for more

CAML.NET IntelliSense for SharePoint

Excellent outcome by some of the Microsoft Technology community influencers.
CAML.NET IntelliSense for SharePoint
To build a SharePoint feature, you must write CAML, but the raw CAML schemas produce only minimal editing support in Visual Studio. This project extends the raw CAML schemas with fully annotated XSDs that enable IntelliSense to display full SDK documentation while editing SharePoint XML files. Most SharePoint developers know how to add the SharePoint schemas to Visual Studio so you get IntelliSense when editing CAML files. This is a good first step, but only provides the bare minimum of information needed to build solutions. The result is that you spend a good deal of time searching through the SDK documentation for the necessary details for using a particular CAML element or attribute, or to see the list of valid attribute values.

Explore more

Make sure the application for the file type (.aspx) is installed.

After I created new WebSite in VS 2005 I'm getting this error---------------------------Microsoft Visual Studio---------------------------There is no editor available for 'C:\Documents and Settings\Administrator\My Documents\Visual Studio 2005\WebSites\WebSiteUpload\Default.aspx'.
Make sure the application for the file type (.aspx) is installed.---------------------------OK ---------------------------Solution:run from a Visual Studio Command Prompt, type "devenv.exe /setup" and then "devenv /resetskippkgs" (without the quotes)

It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level.

Error"It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS."This is the error message caused when I developed the ASP.NET application my development server. After few analysis I found that web.config should be moved to root directory from the sub directory. If you all want to have a web.config in the sub-directory, then the only settings you can specify are authorization, appsettings etc., Another root cause for the problem may be you may have one duplicate web.config file in a subfolder.