Thursday, July 31, 2008

This is a marker file generated by the precompilation tool, and should not be deleted!

We precompiled our aspx files without problem. The precompilation process work fine. After the precompilation process finsihed, We move all the file to the IIS and when we run the aspx file in the browser we see: "This is a marker file generated by the precompilation tool, and should not be deleted!" and not the original file rendered.

The following are the ways I would use to overcome this problem:

1. Make sure you have also uploaded the PrecompiledApp.config file and check if its not containing any illegal characters in it. Remove if it has.

2. This also occurs when IIS has lost its mappings to ASP.NET. Then try this...

a. Open a command prompt
b. Change to the following directory (or whatever version of the .NET Framework you are using): C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727
c. Run the command "aspnet_regiis.exe -i". This may take several minutes and will report the success/failure of the process.

Try now....worked? Yes (Cool)...or no (well sometimes it does not work, then reinstall IIS.)

Monday, May 26, 2008

Cannot convert from 'anonymous method' to 'System.Predicate'

List<MyClass> list = // get list

outputList = list.FindAll(delegate(MyClass item)
{
if (condition)
{
return true;
}

}
);

When compiling, we get a strange error message:
"cannot convert from 'anonymous method' to 'System.Predicate'".

Only when we tried to explicitly cast the anonymous delegate to a Predicate we get a proper compiler error:
'System.Predicate': not all code paths return a value'

Hope this helps

Thanks and Regards,

Hemant

Wednesday, June 20, 2007

Using the PayPal Payment System in ASP.NET

Those who create commercial sites are faced with the question: "How do I receive payments?" One of the most popular payment systems in the world is PayPal. This system is often chosen because it is reliable, easy to use, and allows an account to be opened easily. Click title to learn more...

Thursday, April 26, 2007

Using the EXCEPT operator, new in SQL Server 2005

The linked article shows how you can use the new EXCEPT operator in SQL Server 2005 using an example. Click here to learn more...

Tuesday, April 17, 2007

Email messages with embedded images in ASP.NET 2.0

Creating email messages with embedded images in ASP.NET 2.0. Read more here...

Thursday, April 05, 2007

CSS 101: Locate and style Web elements with selectors

This is second of the 101 series of article presented by Tony Patton on CSS. This goes about discussing Locating and styling Web elements with selectors. Click to learn more...

CSS 101: Handling multiple rules for the same element

This is first of the 101 series of article presented by Tony Patton on CSS. The first top goes about discussing Handling multiple rules for the same element. Click to learn more...

Wednesday, April 04, 2007

Common Table Expressions in SQL Server 2005

Common Table Expressions, or CTE, are a new construct introduced in Microsoft SQL Server 2005 that offer a more readable form of the derived table that can be declared once and referenced multiple times in a query. Read more...

Friday, March 30, 2007

Optimizing ASP.NET 2.0 Web Project Build Performance with VS 2005

The linked posts covers how to best optimize the build performance with Visual Studio 2005 when using web projects. If you are experiencing slow builds or want to learn how to speed them up please read on...

Deployment problems and their solutions of web application Asp.Net 2.0

Deploying ASP.NET 2 web site is the first issue facing the developer after finishing to create a web site is how to deploy the web site to a remote/Production server. Learn more...

Deploying a Crystal Reports Application to a Remote Server

When deploying a Crystal Reports application written in ASP.NET, must the remote server have the Crystal Reports .NET server components installed? Well.......know more from here...

Wednesday, March 28, 2007

VS 2005 Web Deployment Projects

Microsoft is shipping on the web a new free add-on to Visual Studio that enables what we call “Visual Studio 2005 Web Deployment Projects”. This add-on provides a lot of additional deployment features and capabilities that complement the built-in web project support in the product. Learn more...

How To: Write a MSBuild Task

Tasks provide the code that runs during the build process and are contained in targets. A library of common tasks is provided with MSBuild and you can also create your own tasks. Learn more...

Using Web Deployment Projects with Visual Studio 2005

Visual Studio 2005 provides deployment support through its Copy Web Site and Publish Web Site features. While these are ideal for many scenarios, there are other, more advanced scenarios where developers need the following capabilities:
  • More control over assembly naming and output.
  • Custom pre-processing and post-processing for the build.
  • The ability to exclude, add, and transform files and directories during builds.
  • The ability to modify the Web.config file to change database connection strings, application settings, or the URLs for Web references, depending on the build configuration. (For example, it might be necessary to use different values for development, test, staging, and release settings). Learn more...

Tuesday, March 27, 2007

Design Patterns for ASP.NET Developers, Part 2: Custom Controller Patterns

"Controller patterns," are also suitable for use in ASP.NET. These patterns extend the capability for displaying a single view by allowing applications to choose which view to display at runtime depending (usually) on user interaction. Learn more...

Design Patterns for ASP.NET Developers, Part 1: Basic Patterns

"Fundamental to any science or engineering discipline is a common vocabulary for expressing its concepts, and a language for relating them together."
"... a body of literature to help software developers resolve recurring problems encountered throughout all of software development."
"... a shared language for communicating insight and experience about these problems and their solutions."
"A pattern is a named nugget of insight that conveys the essence of a proven solution to a recurring problem within a certain context amidst competing concerns."

Learn more...

Monday, March 26, 2007

Working with ReportViewer control of ASP.NET 2.0

Reporting is one of the common requirement of any data driven business application. Since version 1.x ASP.NET was lacking this important feature. In spite of add ons such as Crystal Report Viewer the .NET framework always lacked native support for reporting engine. Fortunately, .NET 2.0 comes with a ReportViewer control that meets your basic reporting needs. Though it lacks some of the fancy frills provided by some other third party vendors it certainly fills the gap. More...

Friday, March 23, 2007

Common Web Project Conversion Issues and Solutions

As you convert your Visual Studio 2002/2003 Web projects to Visual Studio 2005, you may encounter issues with the changes made in the Web project system. In the linked article, we will look at both the conversion process and some of the common issues you may encounter during a conversion. Read more here...

ASP.NET 2.0 Tips, Tricks, Recipes and Gotchas

The linked page lists some of the more popular “ASP.NET 2.0 Tips, Tricks, Recipes and Gotchas” posts Scott Guthrie have done over the last year.

To learn more about ASP.NET, also make sure to watch all of the great “ASP.NET: How Do I?” videos (each week a new video is posted).