[WCF]Good article explaining the "aspNetCompatibilityEnabled" of IIS hosted application

Here is a blog entry from Wenlong Dong's blog which explains the "ASP.NET Compatibility Mode" in WCF:

#ASP.NET Compatibility Mode



Comments (2)

  1. gr8Ashish says:

    hi all

    i am new to VB.net and i need help

    i am using vb.net application programm for opening a excel file.

    the code is below-


    Imports Microsoft.Office.Interop.Excel

    Imports Excel = Microsoft.Office.Interop.Excel

    Public Class Form1

    Public xlApp As New Excel.Application

    Private Sub btnOpenFile_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnOpenFile.Click

    Dim strFileName As String

    strFileName = “C:Documents and SettingsadminMy DocumentsBook1.xls”

    TextBox1.Text = strFileName

    Dim oldCI As System.Globalization.CultureInfo = System.Threading.Thread.CurrentThread.CurrentCulture()

    System.Threading.Thread.CurrentThread.CurrentCulture = New System.Globalization.CultureInfo(”en-US”)

    Dim xlWB As Workbook

    xlWB = xlApp.Workbooks.Open(strFileName)

    xlWB.Application.Visible = True

    End Sub

    End Class


    This works fine and without any error opening MS excel file.

    I am using these reference-


    microsoft excel 12.0 object library=Microsoft.Office.Interop.Excel.dll

    microsoft office 12.0 object library=office.dll

    microsoft visual basic for application extensiblity 5.3=Interop.VBIDE.dll


    My problem is that i am using same reference and same code for web application but it not working there.

    everything is there is ok only last line of code is not set to true when debug and not open excel file and no error displayed.


    xlWB.Application.Visible = True

    ‘this shown to me as false in debug


    Please help me in this . … . . .

Skip to main content