Get error please help me the server threw an exception.

The server threw an exception. (Exception from HRESULT: 0x80010105 (RPC_E_SERVERFAULT))

My Code is

Private Function GetXlUsedRange(ByVal filePath As String) As Object(,)
        Dim xlApp As Excel.Application
        Dim xlWorkbooks As Excel.Workbooks
        Dim xlWorkbook As Excel.Workbook
        Dim xlSheets As Excel.Sheets
        Dim xlWorkSheet As Excel.Worksheet
        Dim xlRange As Excel.Range


        xlApp = New Excel.Application
        xlWorkbooks = xlApp.Workbooks
        xlWorkbook = xlWorkbooks.Open(filePath)
        xlSheets = xlWorkbook.Worksheets
        xlWorkSheet = CType(xlSheets("Data"), Excel.Worksheet)
        xlRange = xlWorkSheet.UsedRange

        Dim rangeValues(,) As Object
        rangeValues = CType(xlRange.Value, Object(,))


        xlWorkbook.Close()
        xlWorkbooks.Close()
        xlApp.Quit()

        releaseObject(xlRange)
        releaseObject(xlWorkSheet)
        releaseObject(xlSheets)
        releaseObject(xlWorkbook)
        releaseObject(xlWorkbooks)
        releaseObject(xlApp)

        Return rangeValues
    End Function

    Private Sub releaseObject(ByVal obj As Object)
        Try
            System.Runtime.InteropServices.Marshal.ReleaseComObject(obj)
            obj = Nothing
        Catch ex As Exception
            obj = Nothing
        End Try
    End Sub

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        Dim usedRange(,) As Object = GetXlUsedRange("C:\Users\Jayanta Modak\Desktop\import.xls")

        Dim fromRow As Integer = 7
        PopulateListView(usedRange, fromRow)
    End Sub

How to configure ip address , getway, DNS please help me

how can i configure ip address, submask, getway, DNS1 and also DNS2 please help me
i use this code but DNS not added what is the actual code for add all with DNS1 &2
Please help me

Protected Sub Button1_Click(ByVal sender As Object, ByVal e As EventArgs) Handles Button1.Click
     Button2_Click(sender, e)
     ' TxtNumIP.Text = Label1.Text
     Dim IPAddress As String = TxtNumIP.Text.Trim '192.168.1.6
     Dim SubnetMask As String = TxtSubnet.Text.Trim '"255.255.255.0" ' TxtSubnet.Text.Trim '255.255.255.0
     Dim Gateway As String = TxtGateway.Text.Trim  '192.168.1.1
     Dim DNS1 As String = txtdns1.Text.Trim
     Dim DNS2 As String = txtdns2.Text.Trim

     Dim objMC As ManagementClass = New ManagementClass("Win32_NetworkAdapterConfiguration")
     Dim objMOC As ManagementObjectCollection = objMC.GetInstances()

     For Each objMO As ManagementObject In objMOC
         If (Not CBool(objMO("IPEnabled"))) Then
             Continue For
         End If

         Try
             Dim objNewIP As ManagementBaseObject = Nothing
             Dim objSetIP As ManagementBaseObject = Nothing
             Dim objNewGate As ManagementBaseObject = Nothing
             Dim objdhcp As ManagementBaseObject = Nothing

             objNewIP = objMO.GetMethodParameters("EnableStatic")
             objNewGate = objMO.GetMethodParameters("SetGateways")

             'Set DefaultGateway
             objNewGate("DefaultIPGateway") = New String() {Gateway}
             objNewGate("GatewayCostMetric") = New Integer() {1}

             'Set IPAddress and Subnet Mask
             objNewIP("IPAddress") = New String() {IPAddress}
             objNewIP("SubnetMask") = New String() {SubnetMask}

             objSetIP = objMO.InvokeMethod("EnableStatic", objNewIP, Nothing)
             objSetIP = objMO.InvokeMethod("SetGateways", objNewGate, Nothing)

             ' Console.WriteLine("Updated IPAddress, SubnetMask and Default Gateway!")

         Catch ex As Exception
             ' MessageBox.Show("Unable to Set IP : " & ex.Message)
         End Try
     Next objMO
 End Sub

How to get special characters from a string in VB.Net

How can I check special characters are there (String) or Display on label?
I Use this but it is only count

Dim input As String = "Hi! Hello, How are you?"
        Dim pattern As String = "[!""#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~\s]"
        Dim matches As MatchCollection = Regex.Matches(input, pattern)
        MessageBox.Show(String.Format("There are {0} special characters in the input '{1}'", matches.Count, input))

how to display what special Chr are there in this string

How to get only internal HDD details…. Please help me

How can I get internal HDD_DETLAIS = SerialNumber, Model, Manufacturer,TotalHeads ...... etc.
Please help me.. Now my problem is my code run ok, but when I insert external HDD or pen drive then showing the last counting device Details please help ....
i want to show only internal HHD device means OS loaded disk "C" drive
Thanks

Dim HDD_DETLAIS As String
      Dim HDD As New ManagementObjectSearcher("select * from Win32_DiskDrive")

      For Each HDDDET In HDD.Get
          HDD_DETLAIS = HDDDET("SerialNumber") + "   Model-" + HDDDET("Model") + "   Manufacturer-- " + HDDDET("Manufacturer") ' + "  TotalHeads  -  " + hd("TotalHeads") '+ "   Signature - " + hd("Signature")
          TextBox1.Text = HDD_DETLAIS

      Next

Show error when I login SQL server management.

Show error when I login to the SQL server management. First, I change the server name. Second restart the server/1st stop services the start services. Then I check the server name

SELECT @@servername AS 'ServerName'

using this line the show new change server name. Then I closed the window of SQL server then open it and type the new change server but show error. Please help me.... I use SQL Server 2008 r2. Windows authentication

Click Here

SELECT  HOST_NAME() AS 'host_name()',
@@servername AS 'ServerName\InstanceName',
SERVERPROPERTY('servername') AS 'ServerName',
SERVERPROPERTY('machinename') AS 'Windows_Name',
SERVERPROPERTY('ComputerNamePhysicalNetBIOS') AS 'NetBIOS_Name',
SERVERPROPERTY('instanceName') AS 'InstanceName',
SERVERPROPERTY('IsClustered') AS 'IsClustered'

EXEC sp_DROPSERVER 'JAYANTA'
EXEC sp_ADDSERVER 'SIASERVER', 'local'

Show error! Cannot open MSSQLSSQLEXPRESS service on computer’.’.

**

Cannot open MSSQLSSQLEXPRESS service on computer'.'.

**

What I have tried:

Dim myController As New System.ServiceProcess.ServiceController("SQL Server (SQLEXPRESS)")
Private Sub Service_status()
        If myController.Status = ServiceProcess.ServiceControllerStatus.Running Then
            TextBox1.Text = "Started"
        ElseIf myController.Status = ServiceProcess.ServiceControllerStatus.Stopped Then
            TextBox1.Text = "Stopped"
        End If
    End Sub
    Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
            Service_status()
        End Sub
Private Sub BtnStop_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BtnStop.Click
        ProgressBar1.Value = 0
        Try
            myController.Stop()
        Catch ex As Exception
            MsgBox(ex.Message)
        Finally
            ProgressBar1.Value = 100
            myController.WaitForStatus(ServiceProcess.ServiceControllerStatus.Stopped) '//Add
            Service_status()
        End Try

End Sub
Private Sub BtnStart_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BtnStart.Click
        ProgressBar1.Value = 0
        Try
            myController.Start()
        Catch ex As Exception
            MsgBox(ex.Message)
        Finally
            ProgressBar1.Value = 100
            myController.WaitForStatus(ServiceProcess.ServiceControllerStatus.Running) '//Add
            Service_status()
        End Try

End Sub

All time show NULL value please help me…

All Time Show Null value
Please help me what is the wrong in my code

declare @mxdbvlu  int
 declare @dbvlunm int
  set @mxdbvlu= (select max(Database_name) from TBL_FY_SELECT_1)
 if @mxdbvlu = null 
 set @dbvlunm=1000
 else 
 set @dbvlunm=sum(@mxdbvlu+1)
  select @dbvlunm,@mxdbvlu