Tuesday, December 15, 2009
Could not load file or assembly 'System.Data.SqlServerCe'
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 http://sqlserverce.org/blogs/faq/archive/2007/02/09/missing-system-data.aspx
Thanks
Happy coding
Wednesday, November 18, 2009
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.
Thursday, October 29, 2009
Is Windows 7 a Greatest OS ever!!!???###
go thro' the pcworld article on Windows 7
Hope everyone likes the same...
http://www.pcworld.com/businesscenter/article/174320/is_windows_7_the_greatest_os_ever_let_me_count_the_ways.html
Sunday, September 20, 2009
ASP.NET controls and CSS usage tips
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.
Thanks
Tuesday, September 01, 2009
Microsoft Surface Developer Challenge
Saturday, August 29, 2009
Assembly 'AjaxControlToolkit, Version=3.0.30512.20315, Culture=neutral, PublicKeyToken=28f01b0e84b6d53e' uses 'System.Web.Extensions, Version=3.5.0.0,
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">
<dependentAssembly>
<assemblyIdentity name="System.Web.Extensions" publicKeyToken="31bf3856ad364e35">
<bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0">
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Web.Extensions.Design" publicKeyToken="31bf3856ad364e35">
<bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0">
</dependentAssembly>
</assemblyBinding>
</runtime>
and save.
5) Now close the Visual Studio 2008 and open again, clean the full solution and rebuild.
oooorey It worked :)
Hope this may help someone.
Thursday, August 20, 2009
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
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
---------------------------
Solution
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 remote Universal Naming Convention (UNC) share.The IIS_IUSRS group does not have the appropriate permissions for the ApplicationHost.config file or for the Web.config file.
I have given rights to folder which contains the web.config file. Now it works for me...
Tuesday, August 04, 2009
Types and there definitions in C#.NET
Type
Base class that represents any type.
Value Type
Base class that represents any value type.
Reference Types
Any data types that are accessed through a reference and stored on the heap.
Built-in Value Types
Includes most of the standard primitive types, which represent numbers, Boolean values, or characters.
Enumerations
Sets of enumerated values.
User-defined Value Types
Types that have been defined in source code and are stored as value types. In C# terms, this means any struct.
Interface Types
Interfaces.
Pointer Types
Pointers.
Self-describing Types
Data types that provide information about themselves for the benefit of the garbage collector .
Arrays
Any type that contains an array of objects.
Class Types
Types that are self-describing but are not arrays.
Delegates
Types that are designed to hold references to methods.
User-defined Reference Types
Types that have been defined in source code and are stored as reference types. In C# terms, this means any class.
Boxed Value Types
A value type that is temporarily wrapped in a reference so that it can be stored on the heap.
Thursday, July 30, 2009
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.Tuesday, July 21, 2009
ASP.NET website "Cannot read configuration file due to insufficient permissions" in IIS 7 and Windows Server 2008
"Cannot read configuration file due to insufficient permissions"
Solution:
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
Monday, July 06, 2009
Save Green, Earn Green, Code Green
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 questions
The 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).
Monday, June 15, 2009
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. Sounding familiar yet?
Problem: The build fails because the *.vbproj.FileList.txt file is read-only so MSBuild can't write to it.
Reason: The file is read-only because you checked the \obj folder into source control in SteWhenevernevery you do a Getsourcesoruce control, the files are placed on the drive as read-only. The nightly build is configured to delete the prior run's source code (or should be) and Get from source control prior to building. Therefore every nightly build fails in the same way.
Solution: Delete the \obj folder from source control and check-in the change. That's it.
Tuesday, June 09, 2009
So what is XAMLFest?
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 msdev.com 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>
Tuesday, May 12, 2009
Solution and Authored Artifact Development Models for SharePoint Products and Technologies
This article was feel good resource for SharePoint professional...
happy reading >>
Friday, May 08, 2009
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=1.0.0.0, 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, due to possible environment corruption. Would you like to disable loading this package in the future? You may use 'devenv /resetskippkgs' to re-enable package loading.
---------------------------Yes No ---------------------------
After few analysis I found that the dll's are not properly loaded into the GAC and than using the gacutil.exe I loaded all the dlls to GAC. That solved my problem.
Reference command: C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\Bin>gacutil /i C:\Microsoft.Practices.ServiceFactory.VsPkg.dll
Microsoft (R) .NET Global Assembly Cache Utility. Version 2.0.50727.42Copyright (c) Microsoft Corporation. All rights reserved.
Assembly successfully added to the cache
Cheers :)
Thursday, April 30, 2009
Thursday, April 09, 2009
Server Application Unavailable in IIS for ASP.NET application
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 example, %root%\Inetpub\Wwwroot) or the path that the default Web site points to: Read
f) %windir%\System32: Read(Typically, the ASPNET account has already been granted user rights as a member of the Users group.)
-----
---------------------------Microsoft Visual Studio---------------------------
Unable to start debugging on the web server. The web server could not find the requested resource.
Click Help for more information.
---------------------------OK Help ---------------------------
Solution worked for me. Close all the applications and reset IIS in command promt 'iisreset'
problem solved :) cheers
Monday, April 06, 2009
Community Credit Winner! March 2009
Saturday, April 04, 2009
Unveiled new ASP.NET MVC
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...
The next generation luxurious UI framwork...
Learn more ...
Microsoft Most Valuable Professional 2009 :)
Friday, March 20, 2009
Visual Studio 2008 extensions for Windows SharePoint Services 3.0, v1.3
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...
Thursday, March 19, 2009
metadata file '.dll' could not found in Visual Studio 2005
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.NET Files
4. Delete all the files
5. Re-compile your application and then test.
Hope this help
Sunday, March 15, 2009
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.
More on codeplexFriday, March 13, 2009
How "VSTO 3.0 for Office 2007 Programming" book born, a true stroy!
Added new ideas and enhanced the content and approached the Europe’s leading technical publisher PackT Publication and get a green signal precede the project. Again started the works get going and finally the book was on store for sale! Thanks to all crew members of PackT Publishing for their dedication and commitment toward the launch of this book.
When I send message to people and friends I got a great appreciation and response from different people. Those messages are refreshing and boosted my confidence to write another book immediately.
Writing a book is a great adventure ... Congratulation for your book ...... very nice cover :) - Ludovic LefortCongratulations! An awesome accomplishment that requires a great deal of focus and sacrifice to execute on. Great job! - Amanda Murphy
Congratulations Vivek. This is a great achievement. Looking forward to seeing your book - soon! - SS AhmedVery nice... i post this in my blog... Congrats!!! - Vladimir MedinaCongratulations Vivek, this is indeed a great achievement! - Cristina Nardini
Congrats Vivek. Way to go! - Suprotim Agarwal
Great Stuff. It's an area waiting to explored. Glad you did it. Looking forward to see more from you :). - Niraj G Bhatt
excellent work Congratulations. - Ajay Pathak
Great Stuff Vivek!! - Amit Bansal
Congratulations – this looks like a great book. - Geetesh Bajaj
Congratulations !! Your hardwork has reaped you this success:):) - Vijayraj vm
Congrats man. Nice selection of subject. - Praveen Nair
Congrats Vivek Wish you follow it up with many more - Shanmuga Sundara Raman
Tuesday, March 10, 2009
WEB 2.0 from Microsoft
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>
Saturday, March 07, 2009
MVP Certification Hero Campaign
Help your community to take advantage of this offer to increase their credibility in the market! All they have to do is go to www.learnandcertify.com 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
Thursday, March 05, 2009
Get the Host name and IP address from ASP.NET
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);
}
Thursday, February 19, 2009
Composite Application Guidance for WPF and Silverlight v2.0 (PRISM)
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
Wednesday, February 18, 2009
Creating Custom Field Types in SharePoint using Visual Studio
> 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 New Item dialog box, expand the Visual C# Project Items node, and then select the SharePoint category.
> In the Templates pane, click Field Control. Specify LoginInfoID for the Name of the field control, and then click Add. Visual Studio adds the new field control to the project.
Upload all the .dll files into the Drive:\WINDOWS\assembly folder
At a command prompt, type iisreset to reset Internet Information Services (IIS).
In a view of the list to which you want to add the custom field type, click Settings, and then click Create Column.
Tuesday, February 17, 2009
Here the Training Course Directory in Microsoft
Click here for more
Thursday, February 05, 2009
CAML.NET IntelliSense for SharePoint
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
Monday, January 19, 2009
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)
Thursday, January 08, 2009
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.
ASP.NET MVC - Sport Facility Booking system
The project relies on some external service providers. Thus accessing them via their API requires authentication. An API Key need to be su...
-
"The server is configured to use pass-through authentication with a built-in account to access the specified physical path. However, II...
-
Excellent outcome by some of the Microsoft Technology community influencers. CAML.NET IntelliSense for SharePoint To build a SharePoint feat...
-
The project relies on some external service providers. Thus accessing them via their API requires authentication. An API Key need to be su...