Microsoft Technology

BobbyeM71hxwKnow- how to resolve ‘IN_PAGE_ERROR’ running Microsoft Office Setup

Monday, May 24th, 2010

File system and hard disk issues can be due to a variety of problems, which includes power outages, improper system maintenance, virus infection, human errors, hardware problems, etc. When this type of problems occurs, then the consequences are directly reflected in operations like installing a new application, accessing an existing file or folder, repairing the existing installations, and many more. Thus, one can easily analyze the file system corruption. And In worst cases, you might need to reformat the entire hard drive partitions and seek the help of Partition http://www.all1tunes.comRecovery tools, especially when no data backup is available.

Let’s check out the problem, which can occur when trying to set up or repair Microsoft Office on a Windows hard disk. Specifically, when you attempt to repair or install Microsoft Office 2002 (XP), Microsoft Office 2003 or Microsoft Office 2007, the setup may exit silently without notifying or displaying any error message on screen. For say, when you try to install or repair Office, it prompts you to specify the Product Identification key, but exits unexpectedly.

For typical Office setup failure, you can examine the associated log file, which is created by Office Setup in \Temp folder in .txt format. This file might contain one of the below or similar log entries with different module and function:

Exception code: C0000006 IN_PAGE_ERROR Module: C:\WINDOWS\System32\msi.dll Function: 0x7642452f

Or

Exception code: C0000006 IN_PAGE_ERROR Module: C:\WINDOWS\system32\IMAGEHLP.dll Function: 0x76c94afa

The depicted problem, as mentioned, is generally the result of file system damage or hard disk problems. Thus, to resolve the problem, consider implementing the solutions mentioned underneath:

‘Analyze’ and then ‘Defragment’ the hard disk using Disk Defragmenter tool. To do so, you must have administrative rights to access the partition/volume.

Repair the disk using Autochk.exe, Chkdsk.exe,, and Chkntfs.exe tools. If the problem persists, reformat the hard disk and restore the deleted data from backup. Use a Partition Recovery Software than any kind of backup issues.

Use of a Partition Recovery utility allows to scan the logically crashed hard disk and restore the lost/deleted partitions in just few simple steps.

http://get-a-designer.com

http://www.all1sourcetech.com

Tags: , , , ,
Posted in Microsoft Technology, Purely Technical

LolaTheriotDynamically Setting the Theme

Tuesday, March 9th, 2010

Themes can be used to customize the look of your Website. If you need to select the theme based on user settings, you’ll be glad to know that ASP.NET allows you to set the theme of a page dynamically when the page is being created. This process is pretty straight forward; however, there are a couple of issues that may arise.

First of all, ASP.NET establishes the current theme prior to the page’s Load() event. In order to dynamically change the theme before the Load() event, you’ll need to set it during the page’s PreInit() event.

Setting the Theme in the PreInit() Event

That was easy enough. But what happens if your site uses a master page? Master pages allow you to control the appearance of all the pages on your site from a single master page. So it makes sense to want to set the theme from the master page. However, master pages do not provide a PreInit() event. So setting the theme dynamically from a master page is not as easy as you might guess.

One way to deal with this is to create a class that derives from IHttpModule. This class can be made to respond to all page requests on your site, and it gets called just before the request is handled, in plenty of time to set the theme for the current page.

public class ThemeManager : IHttpModule
{
   public ThemeManager()
    {
    }
  public void Init(HttpApplication app)
    {
        // Set our handler to be called just before handling a request
        app.PreRequestHandlerExecute +=
            new EventHandler(Context_PreRequestHandlerExecute);
    }
  void Context_PreRequestHandlerExecute(object sender, EventArgs e)
    {
        // Note: If handler does not implement IRequiresSessionState or
        // IReadOnlySessionState then Session state will be unavailable
        if (HttpContext.Current.CurrentHandler is Page)
        {
            // Set theme
            Page page = (Page)HttpContext.Current.CurrentHandler;
            page.Theme = "MyTheme";
        }
        public void Dispose()
        {
        }
    }
}

Setting the Theme from an IHttpModule-Derived Class

In order to use this class, you’ll have to modify your web.config file.

<configuration>
 <system.web>
 <httpModules>
 <add />
 </httpModules>
 </system.web>
</configuration>

Web.config Changes

Also, be sure to clear any theme settings from your web.config file. Otherwise, it’s possible for ASP.NET to get confused and possibly reference multiple CSS files.

ASP.NET themes are quite powerful, and can be used to manage the appearance of various controls and images. Another thing themes do is let you specify CSS, or style sheets. If this is all your themes are used for, then a much simpler approach can be taken.

All you need to do is add a Literal control inside of the <head> section of your master page. Then, you can set it to include your style sheet during the master page’s Load event.

Since you aren’t modifying the look of controls using skins, there is no need to change this setting in the PreInit() handler. In fact, you could handle it even later than the Load event since all that needs to happen is your page references the correct CSS file.

http://www.all1tunes.com

http://www.all1social.com

Tags: , , , , , , , ,
Posted in Microsoft Technology

LolaTheriotASP.Net Compilation Tool – do you want to allow updates without redeploying?

Saturday, March 6th, 2010

If we have an ASP.Net website that:
1. We want to pre-compile before deploying to the live servers for the usual reasons of performance (no delay on first hit) and security (source code not hosted on the servers)
2. Before starting the web application, we automatically generate its web.config file
3. By default we want to disable view state in all the pages by adding a
node in the generated web.config
The main issue was that even though the generated web.config file had the correct setting in it, the view state wasn’t being disabled. This confused us for quite a while.
It turns out that the default setting when a website is compiled by the ASP.Net compiler doesn’t allow subsequent updates to the site.
In our particular case, this meant the compiled pages were using the (default) value in our non-existent web.config at compile time, not the one actually on the server at runtime.
Once we realised that, the solution was easy: simply add a –u parameter to the compiler flags which meant:
-u specifies that the Aspnet_compiler.exe should create a precompiled application that allows subsequent updates of contents such as .aspx pages.
If this option is omitted, the resulting application contains only compiled files and cannot be updated on the deployment server. You can update the application only by changing the source markup files and recompiling.

http://www.all1Press.com

http://www.all1tunes.com

http://www.all1social.com

Tags: , , , , ,
Posted in Microsoft Technology

BobbyeM71hxw4 Steps to Consume Web Services using Ajax

Thursday, March 4th, 2010

Normally the browser Ajax controls calls the ASP.NET code and the ASP.NET code consumes the web service, but there are scenarios where you would like to call the web services directly from the Ajax JavaScript functions rather than calling via the behind code.

Here, you can get the same following 4 steps-

Step 1: Create your Customer Class

The first step is to create the customer class as shown below. So the customer class has 4 properties on customer id, first name, address and designation.

public class Customers
{
// private properties
private int _intCustomerID;
private string _strFirstName;
private string _strAddress;
private string _strDesignation;

// Public property and
public int CustomerID
{
get
{
return _intCustomerID;
}
set
{
_intCustomerID = value;
}
}
public string FirstName
{
get
{
return _strFirstName;
}
set
{
_strFirstName = value;
}
}

public class Customers
{
// private properties
private int _intCustomerID;
private string _strFirstName;
private string _strAddress;
private string _strDesignation;
// Public property and
public int CustomerID
{
get
{
return _intCustomerID;
}
set
{
_intCustomerID = value;
}
}
public string FirstName
{
get
{
return _strFirstName;
}
set
{
_strFirstName = value;
}
}

Step 2: Create your Web Service

The next step is to create the web service which exposes the customer class to UI. Here is a simple web service which has encapsulated customer collection. In the constructor, we are loading some dummy data into the list of customers as shown in the below code snippet:

[System.Web.Script.Services.ScriptService]
public class Customer : System.Web.Services.WebService {

// Customer collection
List<Customers> listcust = new List<Customers>();
public Customer ()
{
//Load some dummy data in to customer collection.
listcust.Clear();

Customers cust = new Customers();
cust.CustomerID = 1;
cust.FirstName = “Dan”;
cust.Address = “Live in UK”;
cust.Designation = “Software Developer”;
listcust.Add(cust);

cust = new Customers();
cust.CustomerID = 2;
cust.FirstName = “Sheen”;
cust.Address = “Live in Austrailia”;
cust.Designation = “Web Designer”;
listcust.Add(cust);

cust = new Customers();
cust.CustomerID = 3;
cust.FirstName = “Koraine”;
cust.Address = “Live in London”;
cust.Designation = “Architect”;
listcust.Add(cust);
}

// This function exposes all customers to the end client’
[WebMethod]
public List<Customers> LoadCustomers()
{
return listcust;
}

// This function helps us to get customer object based in ID
[WebMethod]
public Customers LoadSingleCustomers(int _customerid)
{
return (Customers)listcust[_customerid-1];
}

Two functions have been exposed with the web service, one which gives out a list of customers and another which gives out individual customer data based on customer id.

Step 3: Reference your Web Service using the asp:servicereference

Using the ‘asp:ServiceReference’, the path to the ASMX file will be pointed as shown in the below code snippet. This will generate the JavaScript proxy which can be used to call the customer object.

<asp:ScriptManager ID="ScriptManager1" runat="server">
    <Services>
        <asp:ServiceReference Path="Customer.asmx" />
    </Services>
</asp:ScriptManager>

Step 4: Call the Webservice and the JavaScript Code

Once you have defined the proxy, you can now call the ‘Customer’ proxy directly to make method calls.

function LoadAll()
{
Customer.LoadCustomers(LoadCustomerToSelectOption, ErrorHandler, TimeOutHandler);
}

When you call the JavaScript proxy object, then you need to provide three functions; the first function (‘LoadCustomerToSelectOption’) will be called when the web service finishes and returns data. The data will be returned in the fill variable which will then be looped and added to the customer combo box.

function LoadCustomerToSelectOption(Fill)
{
var select = document.getElementById(“cmbCustomers“);

for (var i = 0; i < Fill.length; i++)
{
var value = new Option(Fill[i].FirstName, Fill[i].CustomerID);
select.options.add(value);
}
}

There are two more functions which are attached; one which handles error and the other which handles time out.

function ErrorHandler(result)
{
var msg = result.get_exceptionType() + “\r\n“;
msg += result.get_message() + “\r\n“;
msg += result.get_stackTrace();
alert(msg);
}
function TimeOutHandler(result)
{
alert(“Timeout :” + result);
}

http://www.all1martpro.com
http://get-a-designer.com

Tags: , , , , , ,
Posted in Microsoft Technology, Purely Technical

BobbyeM71hxwNew Release- MySQL 5.1.44 / 5.5.2 Milestone 2

Wednesday, March 3rd, 2010

MySQL is the World’s Most Popular Open Source Database. It is a widely used and fast SQL database server.

MySQL is a client and server implementation, which consists of a server daemon (mysqld) and many different client programs/libraries. It is a type of SQL database management featured in Thelix hosting plans. A database is an organized collection of information that a computer uses to select and display data.

Databases can help organize and enhance your site content. Sites with dynamic pages and/or shopping cart software often need an underlying database structure.

It is to be pronounced as “my ess cue el” (each letter separately) and not “my SEE kwill.” MySQL is an open source RDBMS that relies on SQL for processing the data in the database. MySQL provides APIs for the languages C, C++, Eiffel, Java, Perl, PHP and Python. In addition, OLE DB and ODBC providers exist for MySQL data connection in the Microsoft environment. A MySQL

NET Native Provider, which allows native MySQL to .NET access without the need for OLE DB, is also available. MySQL is most commonly used for Web applications and for embedded applications and has become a popular alternative to proprietary database systems because of its speed and reliability. MySQL can run on UNIX, Windows and Mac OS.

MySQL is a relational database management system, which means it stores data in separate tables rather than putting all the data in one big area. This adds flexibility, as well as speed.

The SQL part of MySQL stands for “Structured Query Language,” which is the most common language used to access databases. The MySQL database server is the most popular open source database in the world. It is extremely fast and easy to customize, due to its architecture.

Extensive reuse of code within the software, along with a minimalist approach to producing features with lots of functionality, gives MySQL unmatched speed, compactness, stability, and ease of deployment.

Their unique separation of the core server from the storage engine makes it possible to run with very strict control, or with ultra fast disk access, whichever is more appropriate for the situation.

http://get-a-designer.com

http://www.all1sourcetech.com

Tags: , , , , , , ,
Posted in Microsoft Technology, New Product Release

BobbyeM71hxwMicrosoft Releases 3 New BlueTrack Mice

Friday, February 26th, 2010

Microsoft has released three new mice featuring its BlueTrack technology, indicating that the products featuring the innovation developed in-house are available at their lowest price ever. In fact, the Wireless Mobile Mouse 3500, Wireless Mouse 2000 and Comfort Mouse 4500 all come with price tags of under $30, and are already up for grabs for customers.

When it launched the first BlueTrack products, the Redmond Company was confident enough in the technology it had developed that it encouraged users to start saying goodbye to their old laser mouse forever.

In response to people’s increasingly mobile lifestyles, BlueTrack Technology was created, letting them ditch their mouse pad and use their BlueTrack mouse virtually anywhere — from the granite kitchen counter and the wood table at the coffee shop to the armrest at the airport.

As the BlueTrack Technology debuted in September 2008, but finally it’s now available in eight Microsoft mice so consumers can choose the best design, color and price to fit their need, explained the software giant.

Users will be able to buy the Wireless Mobile Mouse 3500 in two colors, Loch Ness Gray and Dragon Fruit Pink, while the Wireless Mouse 2000 will only be offered in a gray version. Microsoft underlined that while the Wireless Mobile Mouse 3500 was smaller than the normal mouse average size; the Wireless Mouse 2000 is a bit bigger, giving end users the chance to choose the product that best suits their hands.

Mobility is, of course, the key aspect of both the Wireless Mobile Mouse 3500, which comes with a Nano transceiver less than a centimeter long when connected to a USB port, but also for the Wireless Mouse 2000, that allows customers to stick a mini-transceiver into the bottom of the mouse.

The Comfort Mouse 4500 is the first wired mouse featuring BlueTrack Technology, making it a great choice for people who never want to deal with changing batteries. Like its wireless counterparts, the Comfort Mouse 4500 will track on virtually any surface2 and will be available in black as well as three fresh special-edition colors: Sea Blue, Poppy Red and Strawberry Pink.

All the new mice can already be purchased via Amazon.com. The Wireless Mouse 2000 and Comfort Mouse 4500 cost $29.95 and $24.95, and are scheduled to hit store shelves in March. The Wireless Mobile Mouse 3500 will be just $29.95 and general availability is planned for April.

`
http://www.all1press.com

http://www.all1tunes.com

Tags: , , , , ,
Posted in Microsoft Technology, New Product Release

LolaTheriotPostback Text Processing with the AJAX Modal Dialog

Friday, February 26th, 2010

In this case the developer wanted to use an AJAX Editor Control inside a ModalPopup control.

This isn’t a problem but, the user needed to clicking the OK button to cause a post-back so that he could execute some server –side logic.

The ”Ok” Button is an ASP.NET control but adding a Click Event Handler for the button didn’t solve the problem because it didn’t get executed when the use Clicked on the “Ok” button.

Normally the ModalPopupExtender would be used like this.

    <ajaxToolkit:ModalPopupExtender ID="ModalPopupExtender1" runat="server"
                 TargetControlID="LinkButton1"
                 PopupControlID="Panel1"
                 BackgroundCssClass="modalBackground"
                 DropShadow="true"
     1.)         OkControlID="OkButton"
     2.)         OnOkScript="onOk()"
                 CancelControlID="CancelButton" />

Line number 1 tells the control to catch the click event for the Ok Button Control instance and line 2 specifies when CLIENT SIDE JavaScript code to execute when the control specifies in line 1 is clicked.

The post-back doesn’t happen (even if the ASP.NET Button control has a click event handler defined in code behind because the control doesn’t propagate it.)

So Just delete those two lines !

It turns out that they are optional and if you delete them the click event is not trapped and the code behind will execute as expected.

So just nake it look like this:

    <ajaxToolkit:ModalPopupExtender ID="ModalPopupExtender1" runat="server"
                 TargetControlID="LinkButton1"
                 PopupControlID="Panel1"
                 BackgroundCssClass="modalBackground"
                 DropShadow="true"
                 CancelControlID="CancelButton" />

http://www.all1sourcetech.com

http://www.all1martpro.com

Tags: , , , , ,
Posted in Microsoft Technology, Purely Technical

LolaTheriotData Loss in Windows 7 System Post BIOS Upgradation

Thursday, February 25th, 2010

A system BIOS (Basic Input/Output System) is a first program that is executed when you turn on your system. It ensures that the chips, ports, hard disks, video display card, and CPU (Central Processing Unit) are working together.

Upgradation in BIOS is performed by a firmware upgrade, which is called as ‘flashing. While BIOS upgradation is an easy process, the data saved in the hard drive might become inaccessible after the completion of the process. This happens primarily due to a bootable error message that appears at the time of booting the system. In such cases, if you need to access the hard drive data, then you can restore in from an updated backup. However, if no backup is backup is available, or the backup file is damaged, then you will need to use advanced third-party Data Recovery Software to recover the data.

To illustrate the above scenario, consider a practical case where you have a Windows 7 based computer system. You upgrade your BIOS on your system. However, when you try to boot your system after upgradataion, you receive a BSOD (Blue Screen Of Death).

After the above error message appears, your system becomes unbootable and the data saved in the hard drive becomes inaccessible. Additionally, the same error message pops up every time you attempt to boot your system.

Cause:

The primary reason liable for the occurrence of a BSOD error message in such cases is that the Windows 7 operating system sees your system as a different machine.

Resolution:

To resolve the BSOD error message and access the hard drive data, you will need to format the hard drive and reinstall Windows 7 operating system. While formatting the hard drive proves to be an adequate solution to overcome the error message, it also results in erasing the data saved in the hard drive. In such cases, the data erased after the formatting can be recovered by using advanced third-party Data Recovery Software.

A data recovery tools ensures complete recovery of all the files, irrespective of their reason of inaccessibility.

Windows Data Recovery is a user-friendly data recovery software that recovers data from formatted FAT12, FAT16, FAT32, VFAT, NTFS, and NTFS5 file system volumes. The original data in hard drive, however, remains untouched and unmodified. Compatible with Windows 7, Vista, XP, 2003, and 2000, the read only tool allows you to store the recovered data at your desired location.

http://www.all1martpro.com

http://www.all1social.com

Tags: , , , , , , , , , , , , , , , , ,
Posted in Microsoft Technology

BobbyeM71hxwVisual Studio 2010 clean application level web.config

Friday, February 19th, 2010

Introducing new small improvement that has been made in Visual Studio 2010 & .NET 4 to reduce the size of the ASP.NET application level web.config 3.0 and 3.5 web.config

As ASP.NET technology evolved, the application level Web.config had new things added to it. Since the earlier frameworks were using the same set of machine level configuration files, incremental feature that was added subsequent to the 2.0 release resulted in additional config settings included in the file.
.NET 4 web.config

With .NET 4, the web.config is tremendously reduced in size to improve the simplicity of ASP.NET

The config settings have been moved down to the machine config file. This includes registers all of the ASP.NET tag sections, handlers, modules and settings for the following:
• ASP.NET AJAX
• ASP.NET Dynamic Data
• ASP.NET Routing
• ASP.NET Chart Control

You can look at the trimmed down web.config by creating a .Net 4 ‘ASP.NET Empty Web Application’ in Visual Studio 2010.

Following is the web.config file for .NET 4 C# ‘ASP.NET Empty Web Application’:

The config file above has settings to tell ASP.NET to enable debugging by default for the application and provides the version of .NET framework to use.

http://www.all1tunes.com

http://www.all1social.com

Tags: , , , , , , ,
Posted in Microsoft Technology, Purely Technical