troubleshooting Question

IIS Error while browsing for the publised website on the 2003 x64 server

Avatar of AnandSahoo
AnandSahoo asked on
Microsoft IIS Web Server
17 Comments2 Solutions493 ViewsLast Modified:
Dear Team,

Attached 2 error screenshot.
Screenshot1 - While accessing from any other client machine
Screenshot2 - While right click and click browse on in IIS website itself.

Have developed a simple website which access the Automatically generated Excel file and shows the data in gridview.

After configuring the IIS 6.0 in the server and publishing the website when I try to access the page I am getting above errors.

However its running absolutely fine on the local PC where its developed.

The server is running Windows server 2003 enterprise x64 edition.
IIS 6.0

Below is the code used....
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data.OleDb;
using System.Data;

    public partial class FCR : System.Web.UI.Page
        protected void Page_Load(object sender, EventArgs e)

            System.IO.FileInfo file = new System.IO.FileInfo("C:\\dcs\\ssfcr.xls");
            string Dat = Convert.ToString("Status As On: " + file.LastWriteTime);
            Label1.Text = Dat;        
                // Create connection string variable. Modify the "Data Source"
                // parameter as appropriate for your environment.
                String sConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;" +
                    "Data Source=C:\\dcs\\ssfcr.xls;" +
                    "Extended Properties=Excel 8.0;";

                // Create connection object by using the preceding connection string.
                OleDbConnection objConn = new OleDbConnection(sConnectionString);

                // Open connection with the database.

                // The code to follow uses a SQL SELECT command to display the data from the worksheet.

                // Create new OleDbCommand to return data from worksheet.
                OleDbCommand objCmdSelect = new OleDbCommand("Select * From [Sheet1$]", objConn);

                // Create new OleDbDataAdapter that is used to build a DataSet
                // based on the preceding SQL SELECT statement.
                OleDbDataAdapter objAdapter1 = new OleDbDataAdapter();

                // Pass the Select command to the adapter.
                objAdapter1.SelectCommand = objCmdSelect;

                // Create new DataSet to hold information from the worksheet.
                DataSet objDataset1 = new DataSet();

                // Fill the DataSet with the information from the worksheet.
                objAdapter1.Fill(objDataset1, "XLData");

                // Bind data to DataGrid control.
                grid_ssfcr.DataSource = objDataset1.Tables[0].DefaultView;

                // Clean up objects.
 Screenshot1 Screenshot2
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 2 Answers and 17 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 2 Answers and 17 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros