Showing posts with label script. Show all posts
Showing posts with label script. Show all posts

Monday, March 19, 2012

.rss methods no longer supported

I am having a problem running a sql2k report service script on my new sql2005 server. It seems that the methods SessionHeader() and rs.render are no longer suport. can someone help me figure out what I need to do to continue automating my report running?

rss file contents: (the parts that should matter)

--

Report Parameters
Dim branch as string = nothing

Dim skipreport as string = nothing
dim skip as integer = 0

dim allbranchreport as string = nothing
dim allbranch as integer = 0

dim report as CatalogItem
dim repname as string = nothing
dim specificreport as string = nothing
dim filepath as string = nothing
dim errorpath as string = nothing
dim basefilepath as string = nothing
dim baseerrorpath as string = nothing
dim errorlog as integer = 0
Dim parameters() As ParameterValue = nothing
Dim paramcount as integer = 0

' Render arguments
Dim result As Byte() = Nothing
Dim reportPath As String = nothing
'Dim format As String = "PDF"
Dim format as string = "EXCEL"
Dim historyID As String = Nothing
Dim devInfo as string = Nothing
Dim credentials As DataSourceCredentials() = Nothing
Dim showHideToggle As String = Nothing
Dim encoding As String
Dim mimeType As String
Dim warnings As Warning() = Nothing
Dim reportHistoryParameters As ParameterValue() = Nothing
Dim streamIDs As String() = Nothing
Dim sh As New SessionHeader()
rs.SessionHeaderValue = sh

Dim omitdocmap as string = "True"
'**************************************

'**************************************
'Repset run
Dim repset as string = ""
for each repset in repsetlist
specificreports = specificreportsstart
if specificreports = 0 then
select case repset.tolower
case "all"
specificreports = 0
case "brkctr"
specificreports = 1
reportcount = reportset_brkctr.getupperbound(0)
redim specificreportslist(reportcount)
for reportloop = 0 to reportcount
specificreportslist(reportloop) = reportset_brkctr(reportloop)
next
case "cashmgmt"
specificreports = 1
reportcount = reportset_cashmgmt.getupperbound(0)
redim specificreportslist(reportcount)
for reportloop = 0 to reportcount
specificreportslist(reportloop) = reportset_cashmgmt(reportloop)
next
case "com"
specificreports = 1
reportcount = reportset_com.getupperbound(0)
redim specificreportslist(reportcount)
for reportloop = 0 to reportcount
specificreportslist(reportloop) = reportset_com(reportloop)
next
case "com_vw"
specificreports = 1
reportcount = reportset_com_vw.getupperbound(0)
redim specificreportslist(reportcount)
for reportloop = 0 to reportcount
specificreportslist(reportloop) = reportset_com_vw(reportloop)
next
repset = "com"
case "comcons"
specificreports = 1
reportcount = reportset_comcons.getupperbound(0)
redim specificreportslist(reportcount)
for reportloop = 0 to reportcount
specificreportslist(reportloop) = reportset_comcons(reportloop)
next
case "cons"
specificreports = 1
reportcount = reportset_cons.getupperbound(0)
redim specificreportslist(reportcount)
for reportloop = 0 to reportcount
specificreportslist(reportloop) = reportset_cons(reportloop)
next
case "cons_vw"
specificreports = 1
reportcount = reportset_cons_vw.getupperbound(0)
redim specificreportslist(reportcount)
for reportloop = 0 to reportcount
specificreportslist(reportloop) = reportset_cons_vw(reportloop)
next
repset = "cons"
case "dep"
specificreports = 1
reportcount = reportset_dep.getupperbound(0)
redim specificreportslist(reportcount)
for reportloop = 0 to reportcount
specificreportslist(reportloop) = reportset_dep(reportloop)
next
case "staff"
specificreports = 1
reportcount = reportset_staff.getupperbound(0)
redim specificreportslist(reportcount)
for reportloop = 0 to reportcount
specificreportslist(reportloop) = reportset_staff(reportloop)
next
omitdocmapbranch = "False"
case "staff2"
specificreports = 1
reportcount = reportset_staff2.getupperbound(0)
redim specificreportslist(reportcount)
for reportloop = 0 to reportcount
specificreportslist(reportloop) = reportset_staff2(reportloop)
next
omitdocmapbranch = "False"
case else
specificreports = 1
redim specificreportslist(0)
specificreportslist(0) = "Undefined"
end select

if repset.tolower = "staff2" then repset = "staff"
End if


'Base values
basefilepath = basepath & client & "\" & repset & "\"
baseerrorpath = basepath & client & "\" & "error_" & repset & "_"


'Reports List
Dim reports() as CatalogItem
reports = rs.ListChildren(basereportpath, False)

'Execution
if datasourceok = 1 then
for each report in reports

skip = 0
allbranch = allbranchrun

for each skipreport in skipreports
if report.name.tolower = skipreport.tolower then skip = 1
next

if skip = 0 then
if specificreports = 1 then
skip = 1
for each specificreport in specificreportslist
if report.name.tolower = specificreport.tolower then skip = 0
next
end if
end if

if skip = 0 then
for each allbranchreport in allbranchreports
if report.name.tolower = allbranchreport.tolower then allbranch = 1
next

Redim parameters(1)
parameters(0) = New ParameterValue()
parameters(0).name = "branchall"
parameters(1) = New ParameterValue()
parameters(1).Name = "branch"

'5 parameters reports
repname = report.name
if (repname.substring(0,5).tolower = "loans" or repname.substring(0,4).tolower = "locs") then paramcount = 4
if (repname.length >= 13) then
if repname.substring(0,13).tolower = "loans_beacons" then paramcount = 1
end if

if paramcount = 4 then
paramcount = 0
redim preserve parameters(4)

parameters(2) = New ParameterValue()
parameters(2).name = "comconsall"
if repset.tolower = "cons" or repset.tolower = "com" then parameters(2).value = 0 else parameters(2).value = 1

parameters(3) = New ParameterValue()
parameters(3).Name = "comcons"
if repset.tolower = "com" then parameters(3).value = "commercial" else parameters(3).value = "consumer"

parameters(4) = New ParameterValue()
parameters(4).Name = "brokered"
parameters(4).value = 0
if repset.substring(0,3).tolower = "brk" then parameters(4).value = 1
end if

'All Branches Reports
if allbranch = 1 then

parameters(0).value = "1"
parameters(1).value = "admin"
if client = "CSCU" then parameters(1).value = "newwst"
if clienttype = "vw" then parameters(1).value = "1"

errorlog = 0
filepath = basefilepath & report.name & ".xls"
errorpath = baseerrorpath & report.name & ".txt"
reportpath = basereportpath & "/" & report.name
omitdocmap = omitdocmapall
devinfo = "<DeviceInfo><OmitDocumentMap>" & omitdocmap & "</OmitDocumentMap></DeviceInfo>"

Console.WriteLine (repset.toupper & " " & report.name & " All branches")

Try
result = rs.Render(reportPath, format, historyID, devInfo, parameters, _
credentials, showHideToggle, encoding, mimeType, reportHistoryParameters, warnings, streamIDs)
sh.SessionId = rs.SessionHeaderValue.SessionId
Catch e As SoapException
errorlog = 1
Console.WriteLine(e.Detail.OuterXml)
Catch f as Exception
errorlog = 1
Console.writeline(f.message)
End Try

' Create an error log
If errorlog <> 0 then
Try
Dim stream As FileStream = File.Create(errorpath, 1024)
Console.WriteLine("Errorlog created: " & errorpath)
stream.Close()
Catch g As Exception
Console.WriteLine(g.Message)
End Try
End if

' Write the contents of the report to a file.
If errorlog <> 1 then
Try
Dim stream As FileStream = File.Create(filepath, result.Length)
stream.Write(result, 0, result.Length)
Console.WriteLine("Result written to file: " & filepath)
stream.Close()

Catch e As Exception
Console.WriteLine(e.Message)
End Try
end if


'Other Reports
else
parameters(0).value = "0"

for each branch in branches
parameters(1).value = branch

errorlog = 0
if branch <> "h/o" then
filepath = basefilepath & branch & "\" & report.name & ".xls"
else
filepath = basefilepath & "ho\" & report.name & ".xls"
end if
if branch <> "h/o" then
errorpath = baseerrorpath & branch & "_" & report.name & ".txt"
else
errorpath = baseerrorpath & "ho_" & report.name & ".txt"
end if
reportpath = basereportpath & "/" & report.name
omitdocmap = omitdocmapbranch
devinfo = "<DeviceInfo><OmitDocumentMap>" & omitdocmap & "</OmitDocumentMap></DeviceInfo>"

Console.WriteLine (repset.toupper & " " & report.name & " " & "Branch: " & branch)

Try
result = rs.Render(reportPath, format, historyID, devInfo, parameters, _
credentials, showHideToggle, encoding, mimeType, reportHistoryParameters, warnings, streamIDs)
sh.SessionId = rs.SessionHeaderValue.SessionId
Catch e As SoapException
errorlog = 1
Console.WriteLine(e.Detail.OuterXml)
Catch f as Exception
errorlog = 1
Console.writeline(f.message)
End Try

' Create an error log
If errorlog <> 0 then
Try
Dim stream As FileStream = File.Create(errorpath, 1024)
Console.WriteLine("Errorlog created: " & errorpath)
stream.Close()
Catch g As Exception
Console.WriteLine(g.Message)
End Try
End if

' Write the contents of the report to a file.
If errorlog <> 1 then
Try
Dim stream As FileStream = File.Create(filepath, result.Length)
stream.Write(result, 0, result.Length)
Console.WriteLine("Result written to file: " & filepath)
stream.Close()

Catch e As Exception
Console.WriteLine(e.Message)
End Try
end if

next
end if

end if
next
end if
next

-

I get this error message from cmd when I try and run my batch:

-

J:\PRA Publisher>rs -i pra_publisher.rss -s http://localhost/reportserver -l 0

The specified script failed to compile with the following errors:
J:\PRA Publisher> "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\vbc.exe" /t:exe
/main:MainModule /utf8output /R:"System.dll" /R:"System.Xml.dll" /R:"System.Web
.Services.dll" /R:"C:\Program Files\Microsoft SQL Server\90\Tools\binn\rs.exe" /
out:"C:\Documents and Settings\netop\Local Settings\Temp\1\bfw7qn9k.exe" /debug-
"C:\Documents and Settings\netop\Local Settings\Temp\1\bfw7qn9k.0.vb" "C:\Docu
ments and Settings\netop\Local Settings\Temp\1\bfw7qn9k.1.vb"


Microsoft (R) Visual Basic Compiler version 8.0.50727.42
for Microsoft (R) .NET Framework version 2.0.50727.42
Copyright (c) Microsoft Corporation. All rights reserved.

C:\Documents and Settings\netop\Local Settings\Temp\1\bfw7qn9k.1.vb(253) : error
BC30002: Type 'SessionHeader' is not defined.

Dim sh As New SessionHeader()
~~~~~~~~~~~~~
C:\Documents and Settings\netop\Local Settings\Temp\1\bfw7qn9k.1.vb(254) : error
BC30456: 'SessionHeaderValue' is not a member of 'Microsoft.SqlServer.Reporting
Services2005.ReportingService2005'.

rs.SessionHeaderValue = sh
~~~~~~~~~~~~~~~~~~~~~
C:\Documents and Settings\netop\Local Settings\Temp\1\bfw7qn9k.1.vb(434) : error
BC30456: 'Render' is not a member of 'Microsoft.SqlServer.ReportingServices2005
.ReportingService2005'.

result = rs.Render(reportPath, format, historyID, de
vInfo, parameters, _
~~~~~~~~~

C:\Documents and Settings\netop\Local Settings\Temp\1\bfw7qn9k.1.vb(436) : error
BC30456: 'SessionHeaderValue' is not a member of 'Microsoft.SqlServer.Reporting
Services2005.ReportingService2005'.

sh.SessionId = rs.SessionHeaderValue.SessionId
~~~~~~~~~~~~~~~~~~~~~
C:\Documents and Settings\netop\Local Settings\Temp\1\bfw7qn9k.1.vb(496) : error
BC30456: 'Render' is not a member of 'Microsoft.SqlServer.ReportingServices2005
.ReportingService2005'.

result = rs.Render(reportPath, format, historyID
, devInfo, parameters, _
~~~~~~~~~

C:\Documents and Settings\netop\Local Settings\Temp\1\bfw7qn9k.1.vb(498) : error
BC30456: 'SessionHeaderValue' is not a member of 'Microsoft.SqlServer.Reporting
Services2005.ReportingService2005'.

sh.SessionId = rs.SessionHeaderValue.SessionId
~~~~~~~~~~~~~~~~~~~~~

--

Any advice on how to fix this would be graetly appreciated. Thanks!

The version of rs.exe that ships with SQL 2005 is configured to run against the new 2005 management SOAP endpoint by default. The old 2000 endpoint is still supported. Just add -e mgmt2000 to the command line to use the old endpoint. You can get more information on this option by running rs.exe /? or in the MSDN help files.|||

Thank you so much!!!

That seems to be working beautifully. Just started the batch and its running smoothly so far!

|||

Hi,

my opinion is that this is not a solution, only a workaround. How would a script look like, which is using the ReportingServices2005 endpoint and methods.

I could use the endpoint by this

Dim rs As New ReportingService2005()

But now the debugger tells me that the render method is not a member of Microsoft.SqlServer.ReportingServices2005.ReportingServices2005 .

I want to render a report to the file system. This is the whole script:

' Export report to pdf format to the specified path under filePath and to the file which is specified under fileN
Dim format as string = "PDF"
Dim filePath as String = "D:\temp\"
Dim fileN as String = "reportx"
'Dim Datum as String = CString(Date)
Dim fileName as String = filePath + fileN + ".pdf"
Dim reportPath as String = "/reportx/reportx

Public Sub Main()

' Prepare Render arguments
Dim historyID as string = Nothing
Dim deviceInfo as string = Nothing
Dim showHide as string = Nothing
Dim results() as Byte
Dim encoding as string
Dim mimeType as string = "application/pdf"
Dim warnings() AS Warning = Nothing
Dim reportHistoryParameters() As ParameterValue = Nothing
Dim streamIDs() as string = Nothing
'Windows Credentials were send to Reporting server service
Dim rs As New ReportingService2005()
rs.Credentials = System.Net.CredentialCache.DefaultCredentials


' Report Parameters
Dim parameters(0) As ParameterValue
results = rs.Render(reportPath, format, _
Nothing, Nothing, Nothing, _
Nothing, Nothing, encoding, mimeType, _
reportHistoryParameters, warnings, streamIDs)

' Open a file stream and write out the report
Dim stream As FileStream = File.OpenWrite(fileName)
stream.Write(results, 0, results.Length)
stream.Close()

End Sub

'End of script

.rss methods no longer supported

I am having a problem running a sql2k report service script on my new sql2005 server. It seems that the methods SessionHeader() and rs.render are no longer suport. can someone help me figure out what I need to do to continue automating my report running?

rss file contents: (the parts that should matter)

--

Report Parameters
Dim branch as string = nothing

Dim skipreport as string = nothing
dim skip as integer = 0

dim allbranchreport as string = nothing
dim allbranch as integer = 0

dim report as CatalogItem
dim repname as string = nothing
dim specificreport as string = nothing
dim filepath as string = nothing
dim errorpath as string = nothing
dim basefilepath as string = nothing
dim baseerrorpath as string = nothing
dim errorlog as integer = 0
Dim parameters() As ParameterValue = nothing
Dim paramcount as integer = 0

' Render arguments
Dim result As Byte() = Nothing
Dim reportPath As String = nothing
'Dim format As String = "PDF"
Dim format as string = "EXCEL"
Dim historyID As String = Nothing
Dim devInfo as string = Nothing
Dim credentials As DataSourceCredentials() = Nothing
Dim showHideToggle As String = Nothing
Dim encoding As String
Dim mimeType As String
Dim warnings As Warning() = Nothing
Dim reportHistoryParameters As ParameterValue() = Nothing
Dim streamIDs As String() = Nothing
Dim sh As New SessionHeader()
rs.SessionHeaderValue = sh

Dim omitdocmap as string = "True"
'**************************************

'**************************************
'Repset run
Dim repset as string = ""
for each repset in repsetlist
specificreports = specificreportsstart
if specificreports = 0 then
select case repset.tolower
case "all"
specificreports = 0
case "brkctr"
specificreports = 1
reportcount = reportset_brkctr.getupperbound(0)
redim specificreportslist(reportcount)
for reportloop = 0 to reportcount
specificreportslist(reportloop) = reportset_brkctr(reportloop)
next
case "cashmgmt"
specificreports = 1
reportcount = reportset_cashmgmt.getupperbound(0)
redim specificreportslist(reportcount)
for reportloop = 0 to reportcount
specificreportslist(reportloop) = reportset_cashmgmt(reportloop)
next
case "com"
specificreports = 1
reportcount = reportset_com.getupperbound(0)
redim specificreportslist(reportcount)
for reportloop = 0 to reportcount
specificreportslist(reportloop) = reportset_com(reportloop)
next
case "com_vw"
specificreports = 1
reportcount = reportset_com_vw.getupperbound(0)
redim specificreportslist(reportcount)
for reportloop = 0 to reportcount
specificreportslist(reportloop) = reportset_com_vw(reportloop)
next
repset = "com"
case "comcons"
specificreports = 1
reportcount = reportset_comcons.getupperbound(0)
redim specificreportslist(reportcount)
for reportloop = 0 to reportcount
specificreportslist(reportloop) = reportset_comcons(reportloop)
next
case "cons"
specificreports = 1
reportcount = reportset_cons.getupperbound(0)
redim specificreportslist(reportcount)
for reportloop = 0 to reportcount
specificreportslist(reportloop) = reportset_cons(reportloop)
next
case "cons_vw"
specificreports = 1
reportcount = reportset_cons_vw.getupperbound(0)
redim specificreportslist(reportcount)
for reportloop = 0 to reportcount
specificreportslist(reportloop) = reportset_cons_vw(reportloop)
next
repset = "cons"
case "dep"
specificreports = 1
reportcount = reportset_dep.getupperbound(0)
redim specificreportslist(reportcount)
for reportloop = 0 to reportcount
specificreportslist(reportloop) = reportset_dep(reportloop)
next
case "staff"
specificreports = 1
reportcount = reportset_staff.getupperbound(0)
redim specificreportslist(reportcount)
for reportloop = 0 to reportcount
specificreportslist(reportloop) = reportset_staff(reportloop)
next
omitdocmapbranch = "False"
case "staff2"
specificreports = 1
reportcount = reportset_staff2.getupperbound(0)
redim specificreportslist(reportcount)
for reportloop = 0 to reportcount
specificreportslist(reportloop) = reportset_staff2(reportloop)
next
omitdocmapbranch = "False"
case else
specificreports = 1
redim specificreportslist(0)
specificreportslist(0) = "Undefined"
end select

if repset.tolower = "staff2" then repset = "staff"
End if


'Base values
basefilepath = basepath & client & "\" & repset & "\"
baseerrorpath = basepath & client & "\" & "error_" & repset & "_"


'Reports List
Dim reports() as CatalogItem
reports = rs.ListChildren(basereportpath, False)

'Execution
if datasourceok = 1 then
for each report in reports

skip = 0
allbranch = allbranchrun

for each skipreport in skipreports
if report.name.tolower = skipreport.tolower then skip = 1
next

if skip = 0 then
if specificreports = 1 then
skip = 1
for each specificreport in specificreportslist
if report.name.tolower = specificreport.tolower then skip = 0
next
end if
end if

if skip = 0 then
for each allbranchreport in allbranchreports
if report.name.tolower = allbranchreport.tolower then allbranch = 1
next

Redim parameters(1)
parameters(0) = New ParameterValue()
parameters(0).name = "branchall"
parameters(1) = New ParameterValue()
parameters(1).Name = "branch"

'5 parameters reports
repname = report.name
if (repname.substring(0,5).tolower = "loans" or repname.substring(0,4).tolower = "locs") then paramcount = 4
if (repname.length >= 13) then
if repname.substring(0,13).tolower = "loans_beacons" then paramcount = 1
end if

if paramcount = 4 then
paramcount = 0
redim preserve parameters(4)

parameters(2) = New ParameterValue()
parameters(2).name = "comconsall"
if repset.tolower = "cons" or repset.tolower = "com" then parameters(2).value = 0 else parameters(2).value = 1

parameters(3) = New ParameterValue()
parameters(3).Name = "comcons"
if repset.tolower = "com" then parameters(3).value = "commercial" else parameters(3).value = "consumer"

parameters(4) = New ParameterValue()
parameters(4).Name = "brokered"
parameters(4).value = 0
if repset.substring(0,3).tolower = "brk" then parameters(4).value = 1
end if

'All Branches Reports
if allbranch = 1 then

parameters(0).value = "1"
parameters(1).value = "admin"
if client = "CSCU" then parameters(1).value = "newwst"
if clienttype = "vw" then parameters(1).value = "1"

errorlog = 0
filepath = basefilepath & report.name & ".xls"
errorpath = baseerrorpath & report.name & ".txt"
reportpath = basereportpath & "/" & report.name
omitdocmap = omitdocmapall
devinfo = "<DeviceInfo><OmitDocumentMap>" & omitdocmap & "</OmitDocumentMap></DeviceInfo>"

Console.WriteLine (repset.toupper & " " & report.name & " All branches")

Try
result = rs.Render(reportPath, format, historyID, devInfo, parameters, _
credentials, showHideToggle, encoding, mimeType, reportHistoryParameters, warnings, streamIDs)
sh.SessionId = rs.SessionHeaderValue.SessionId
Catch e As SoapException
errorlog = 1
Console.WriteLine(e.Detail.OuterXml)
Catch f as Exception
errorlog = 1
Console.writeline(f.message)
End Try

' Create an error log
If errorlog <> 0 then
Try
Dim stream As FileStream = File.Create(errorpath, 1024)
Console.WriteLine("Errorlog created: " & errorpath)
stream.Close()
Catch g As Exception
Console.WriteLine(g.Message)
End Try
End if

' Write the contents of the report to a file.
If errorlog <> 1 then
Try
Dim stream As FileStream = File.Create(filepath, result.Length)
stream.Write(result, 0, result.Length)
Console.WriteLine("Result written to file: " & filepath)
stream.Close()

Catch e As Exception
Console.WriteLine(e.Message)
End Try
end if


'Other Reports
else
parameters(0).value = "0"

for each branch in branches
parameters(1).value = branch

errorlog = 0
if branch <> "h/o" then
filepath = basefilepath & branch & "\" & report.name & ".xls"
else
filepath = basefilepath & "ho\" & report.name & ".xls"
end if
if branch <> "h/o" then
errorpath = baseerrorpath & branch & "_" & report.name & ".txt"
else
errorpath = baseerrorpath & "ho_" & report.name & ".txt"
end if
reportpath = basereportpath & "/" & report.name
omitdocmap = omitdocmapbranch
devinfo = "<DeviceInfo><OmitDocumentMap>" & omitdocmap & "</OmitDocumentMap></DeviceInfo>"

Console.WriteLine (repset.toupper & " " & report.name & " " & "Branch: " & branch)

Try
result = rs.Render(reportPath, format, historyID, devInfo, parameters, _
credentials, showHideToggle, encoding, mimeType, reportHistoryParameters, warnings, streamIDs)
sh.SessionId = rs.SessionHeaderValue.SessionId
Catch e As SoapException
errorlog = 1
Console.WriteLine(e.Detail.OuterXml)
Catch f as Exception
errorlog = 1
Console.writeline(f.message)
End Try

' Create an error log
If errorlog <> 0 then
Try
Dim stream As FileStream = File.Create(errorpath, 1024)
Console.WriteLine("Errorlog created: " & errorpath)
stream.Close()
Catch g As Exception
Console.WriteLine(g.Message)
End Try
End if

' Write the contents of the report to a file.
If errorlog <> 1 then
Try
Dim stream As FileStream = File.Create(filepath, result.Length)
stream.Write(result, 0, result.Length)
Console.WriteLine("Result written to file: " & filepath)
stream.Close()

Catch e As Exception
Console.WriteLine(e.Message)
End Try
end if

next
end if

end if
next
end if
next

-

I get this error message from cmd when I try and run my batch:

-

J:\PRA Publisher>rs -i pra_publisher.rss -s http://localhost/reportserver -l 0

The specified script failed to compile with the following errors:
J:\PRA Publisher> "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\vbc.exe" /t:exe
/main:MainModule /utf8output /R:"System.dll" /R:"System.Xml.dll" /R:"System.Web
.Services.dll" /R:"C:\Program Files\Microsoft SQL Server\90\Tools\binn\rs.exe" /
out:"C:\Documents and Settings\netop\Local Settings\Temp\1\bfw7qn9k.exe" /debug-
"C:\Documents and Settings\netop\Local Settings\Temp\1\bfw7qn9k.0.vb" "C:\Docu
ments and Settings\netop\Local Settings\Temp\1\bfw7qn9k.1.vb"


Microsoft (R) Visual Basic Compiler version 8.0.50727.42
for Microsoft (R) .NET Framework version 2.0.50727.42
Copyright (c) Microsoft Corporation. All rights reserved.

C:\Documents and Settings\netop\Local Settings\Temp\1\bfw7qn9k.1.vb(253) : error
BC30002: Type 'SessionHeader' is not defined.

Dim sh As New SessionHeader()
~~~~~~~~~~~~~
C:\Documents and Settings\netop\Local Settings\Temp\1\bfw7qn9k.1.vb(254) : error
BC30456: 'SessionHeaderValue' is not a member of 'Microsoft.SqlServer.Reporting
Services2005.ReportingService2005'.

rs.SessionHeaderValue = sh
~~~~~~~~~~~~~~~~~~~~~
C:\Documents and Settings\netop\Local Settings\Temp\1\bfw7qn9k.1.vb(434) : error
BC30456: 'Render' is not a member of 'Microsoft.SqlServer.ReportingServices2005
.ReportingService2005'.

result = rs.Render(reportPath, format, historyID, de
vInfo, parameters, _
~~~~~~~~~

C:\Documents and Settings\netop\Local Settings\Temp\1\bfw7qn9k.1.vb(436) : error
BC30456: 'SessionHeaderValue' is not a member of 'Microsoft.SqlServer.Reporting
Services2005.ReportingService2005'.

sh.SessionId = rs.SessionHeaderValue.SessionId
~~~~~~~~~~~~~~~~~~~~~
C:\Documents and Settings\netop\Local Settings\Temp\1\bfw7qn9k.1.vb(496) : error
BC30456: 'Render' is not a member of 'Microsoft.SqlServer.ReportingServices2005
.ReportingService2005'.

result = rs.Render(reportPath, format, historyID
, devInfo, parameters, _
~~~~~~~~~

C:\Documents and Settings\netop\Local Settings\Temp\1\bfw7qn9k.1.vb(498) : error
BC30456: 'SessionHeaderValue' is not a member of 'Microsoft.SqlServer.Reporting
Services2005.ReportingService2005'.

sh.SessionId = rs.SessionHeaderValue.SessionId
~~~~~~~~~~~~~~~~~~~~~

--

Any advice on how to fix this would be graetly appreciated. Thanks!

The version of rs.exe that ships with SQL 2005 is configured to run against the new 2005 management SOAP endpoint by default. The old 2000 endpoint is still supported. Just add -e mgmt2000 to the command line to use the old endpoint. You can get more information on this option by running rs.exe /? or in the MSDN help files.|||

Thank you so much!!!

That seems to be working beautifully. Just started the batch and its running smoothly so far!

|||

Hi,

my opinion is that this is not a solution, only a workaround. How would a script look like, which is using the ReportingServices2005 endpoint and methods.

I could use the endpoint by this

Dim rs As New ReportingService2005()

But now the debugger tells me that the render method is not a member of Microsoft.SqlServer.ReportingServices2005.ReportingServices2005 .

I want to render a report to the file system. This is the whole script:

' Export report to pdf format to the specified path under filePath and to the file which is specified under fileN
Dim format as string = "PDF"
Dim filePath as String = "D:\temp\"
Dim fileN as String = "reportx"
'Dim Datum as String = CString(Date)
Dim fileName as String = filePath + fileN + ".pdf"
Dim reportPath as String = "/reportx/reportx

Public Sub Main()

' Prepare Render arguments
Dim historyID as string = Nothing
Dim deviceInfo as string = Nothing
Dim showHide as string = Nothing
Dim results() as Byte
Dim encoding as string
Dim mimeType as string = "application/pdf"
Dim warnings() AS Warning = Nothing
Dim reportHistoryParameters() As ParameterValue = Nothing
Dim streamIDs() as string = Nothing
'Windows Credentials were send to Reporting server service
Dim rs As New ReportingService2005()
rs.Credentials = System.Net.CredentialCache.DefaultCredentials


' Report Parameters
Dim parameters(0) As ParameterValue
results = rs.Render(reportPath, format, _
Nothing, Nothing, Nothing, _
Nothing, Nothing, encoding, mimeType, _
reportHistoryParameters, warnings, streamIDs)

' Open a file stream and write out the report
Dim stream As FileStream = File.OpenWrite(fileName)
stream.Write(results, 0, results.Length)
stream.Close()

End Sub

'End of script

|||

This link helped me: http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=69650

I also saw that render error. Since I'm using rs.exe, I used the -e parameter to specify the endpoint. Here's the command line I used: rs -i sample2.rss -s http://localhost/reportserver -e Exec2005

And here's the contents of sample2.rss (very similar to yours):

'Dim format as string = "Excel"
'Dim fileName as String = "C:\Export2.xls"
Dim format as string = "PDF"
Dim fileName as String = "C:\Export2.pdf"
Dim reportPath as String = "/My_Reports/Test_Report"

Public Sub Main()

' Prepare Render arguments
Dim historyID as string = Nothing
Dim deviceInfo as string = Nothing
Dim showHide as string = Nothing
Dim results() as Byte
Dim encoding as string = Nothing
'Dim mimeType as string = "ms-excel"
'Dim extension as string = "xls"
Dim mimeType as string = "application/pdf"
Dim extension as string = "pdf"
Dim warnings() AS Warning = Nothing
Dim reportHistoryParameters() As ParameterValue = Nothing
Dim streamIDs() as string = Nothing

rs.Credentials = System.Net.CredentialCache.DefaultCredentials

Dim parameters(1) As ParameterValue
parameters(0) = New ParameterValue()
parameters(0).Name = "UserID"
parameters(0).Value = "myuserid"
parameters(1) = New ParameterValue()
parameters(1).Name = "GroupNum"
parameters(1).Value = Nothing
Dim execHeader AS New ExecutionHeader()
Dim rpt AS New ExecutionInfo
rpt = rs.LoadReport(reportPath, Nothing)
rs.SetExecutionParameters(parameters, "en-us")
rs.ExecutionHeaderValue = execHeader
rs.ExecutionHeaderValue.ExecutionID = rpt.ExecutionID
results = rs.Render(format, deviceInfo, extension, mimeType, encoding, warnings, streamIDs)

' Open a file stream and write out the report
Dim stream As FileStream = File.OpenWrite(fileName)
stream.Write(results, 0, results.Length)
stream.Close()

End Sub

Saturday, February 25, 2012

.NET /script/T-SQL Code to deliberately cause Cluster Failover

I'm looking for help in locating a script that would allow deliberately
causing a cluster to failover. (For demonstration and testing purposes.)
And ideas or suggestions would be appreciated.
Thanks,
Arnie Rowland
You can use the CLUSTER.EXE command from the command line prompt to force a
failure. Look up Cluster.exe in the on-line help files for Windows Server.
Everything you can do from the GUI, you can do from the command-line.
Example:
Cluster MyClusterName resource MYSQLCluster Resource /fail
Will cause the specific resource to fail. You can then watch how the
cluster reacts.
Geoff N. Hiten
Microsoft SQL Server MVP
Senior Database Administrator
Careerbuilder.com
I support the Professional Association for SQL Server
www.sqlpass.org
"Arnie Rowland" <arnie@.1568.com> wrote in message
news:uyoFczoHFHA.1528@.TK2MSFTNGP09.phx.gbl...
> I'm looking for help in locating a script that would allow deliberately
> causing a cluster to failover. (For demonstration and testing purposes.)
> And ideas or suggestions would be appreciated.
> Thanks,
> Arnie Rowland
>
>
|||Thanks Geoff,
I forget that it was also command line! Du-oh...
-Arnie
"Geoff N. Hiten" <SQLCraftsman@.gmail.com> wrote in message
news:#7m#$FpHFHA.1172@.TK2MSFTNGP12.phx.gbl...
> You can use the CLUSTER.EXE command from the command line prompt to force
a
> failure. Look up Cluster.exe in the on-line help files for Windows
Server.
> Everything you can do from the GUI, you can do from the command-line.
> Example:
> Cluster MyClusterName resource MYSQLCluster Resource /fail
> Will cause the specific resource to fail. You can then watch how the
> cluster reacts.
> --
> Geoff N. Hiten
> Microsoft SQL Server MVP
> Senior Database Administrator
> Careerbuilder.com
> I support the Professional Association for SQL Server
> www.sqlpass.org
> "Arnie Rowland" <arnie@.1568.com> wrote in message
> news:uyoFczoHFHA.1528@.TK2MSFTNGP09.phx.gbl...
>
|||That's OK. I goofed up the example and put RESOURCE in there twice. I
should know better than to answer posts right after lunch.
Geoff N. Hiten
Microsoft SQL Server MVP
Senior Database Administrator
Careerbuilder.com
I support the Professional Association for SQL Server
www.sqlpass.org
"Arnie Rowland" <arnie@.1568.com> wrote in message
news:OBwY0HpHFHA.3612@.TK2MSFTNGP09.phx.gbl...[vbcol=seagreen]
> Thanks Geoff,
> I forget that it was also command line! Du-oh...
> -Arnie
>
> "Geoff N. Hiten" <SQLCraftsman@.gmail.com> wrote in message
> news:#7m#$FpHFHA.1172@.TK2MSFTNGP12.phx.gbl...
force[vbcol=seagreen]
> a
> Server.
deliberately[vbcol=seagreen]
purposes.)
>
|||Yeah, I caught that part. ;-)
"Geoff N. Hiten" <SQLCraftsman@.gmail.com> wrote in message
news:ePtnyJpHFHA.2740@.TK2MSFTNGP12.phx.gbl...
> That's OK. I goofed up the example and put RESOURCE in there twice. I
> should know better than to answer posts right after lunch.
> --
> Geoff N. Hiten
> Microsoft SQL Server MVP
> Senior Database Administrator
> Careerbuilder.com
> I support the Professional Association for SQL Server
> www.sqlpass.org
> "Arnie Rowland" <arnie@.1568.com> wrote in message
> news:OBwY0HpHFHA.3612@.TK2MSFTNGP09.phx.gbl...
> force
> deliberately
> purposes.)
>

Thursday, February 16, 2012

**FIXED** IE 7 Script Errors **FIXED**

Hi, I recently installed IE7 which works well, but when I try to Edit any of my settings in NIS 2005, I get a script error, which reads as follows:

An error has occured in the script on this page

Line: 6

Char:1

Error:Object expected

Code:0

URL: res://C\\program files\common files\Symantec Shared\Options\Options.dll/Options.htm

Do you want to continue running scripts on this page Yes/No

The only way I can correct this fault is to un-install IE7, then NIS2005 works correctly.

Any help will be appreciated.

UPDATE: 02/15/07

FOR NORTON PRODUCTS FROM 2005 or earlier:

1)If you are getting the "szmodify is undefined" error when trying to change firewall settings:

I can fix the problem for you but due to the large amount of people requesting this fix I am now charging $5 for my time fixing your software. Please click on the link below to pay me $5 and I will promptly send you your fixed dll. (Read below for further instructions)

** CLICK HERE to pay $5 to errorhelp@.gmail.com with Paypal**

BEFORE you email me your files.. please run liveupdate to your norton product to verify that you have the most current files . Run it repeatedly until it tells you everything is current (reboot your computer in between update sessions) THEN send me an email.

Anyone who emails me please include:

a. The name of the product you are using

b. the error message u are getting and what you were doing when you got the error

c. please attach your niscmnht.dll in your email . I will edit it for you and email it back to u to fix your problem.

if you dont know how to do that: go to start.. then click search..all files and folders...type in niscmnht.dll . do a search for it.. rt click on it and copy..then go to your desktop and rt click and paste.. now you can find the file to attach it in an email to errorhelp@.gmail.com

** CLICK HERE to pay $5 to errorhelp@.gmail.com with Paypal**

You should feel secure that I can fix your issue as many have reported on this very site. (See all 4 pages)

2)If you are getting the "object expected" error when trying to access Norton AntiSpam settings (Maybe other situations as well):

I have never had this problem personally, but after many people asking me to fix it I have a fix that worked for many people (but not all). This is what to do:

Uninstall Internet Explorer 7, reboot, then:

a)If you have your NORTON installation cd: uninstall norton and liveupdate and all norton parts then reboot then reinstall norton and update it repeatedly until you are told there are no more updates then reboot. Then disable norton internet security (firewall) and antivirus for 1 hour (not until reboot) then reinstall ie7 and do all updates. Reboot and reenable all norton products (or just wait the hour) and you should be good. Has worked for many people with this issue. Thank you, Duncan Webberley for your help with this issue.

b)If you DO NOT have your norton installation cd: Disable all norton products for 1 hour (do not uninstall them) then reinstall ie7 wih norton disabled. Now reboot. Make sure all Norton products are reenabled.

FOR NORTON PRODUCTS FROM 2006 or newer:

2006 products were supposed to be fixed through liveupdate and 2007 products should not contain any errors at all. (At least regarding these issues) I have found out that norton is giving free upgrades to users of Norton Internet Security 2006, Norton AntiVirus 2006, Norton System Works 2006, or Norton System Works Premier 2006 with a current subscription (not expired). You are eligible to download and use the latest product versions (2007 or newer as they come out) for your Norton product as they become available during your subscription period. This is their new policy supposedly for future products so people can always have the newest software. This is probably to save them the money of supporting older versions. From symantecs website:

http://www.symantec.com/home_homeoffice/support/special/upgrade2007/index.jsp

THEY ARE NOT PUBLICIZING THIS SO PLEASE SPREAD THIS AROUND TO EVERYONE YOU KNOW WHO USES NORTON.
Also, the 2007 version of Internet Security doesn't automatically come with Norton AntiSpam, Ad Blocking, Norton Parental Control or Confidential Information Blocking (which all came with 2006 version of NIS)
BUT there is a free add-on download from Norton that adds all of these features for this version once you upgrade to 2007, here:

http://service1.symantec.com/SUPPORT/custserv.nsf/docid/2006092616462646

Enjoy!!

Michael Belsky

errorhelp@.gmail.com

ORIGINAL POST:

i get a similar error when going to the general rules button in the advanced settings of the firewall in norton internet security 2005 antispyware edition. The result is i cant create any new firewall rules! This only occurs since I installed Internet Explorer 7.

The Exact error is:

An error has occured in the sript on this page.

Line: 475

Char: 8

Error: 'szModify' is undefined

Code: 0

URL: res://fwui.dll/ruleSummary.htm

Do you want to continue using scripts on this page? YES/NO

|||

I'm getting the same with NIS 2005 non-antispyware version. NIS hangs when I click yes or no or try to close the dialog box.

Microsoft PLEASE HELP -

|||

Hi, Thanks for your reply, I have now uninstalled IE7 and the problem has now gone so I guess its a problem with IE7 working with NIS 2005

Regards

|||I have the same problem with norton personal firewall. Is there a fix short of removing IE 7?|||

I found the solution at http://pjondevelopment.50webs.com/blog/2006/01/ie7-sw-2005-follow-up.html

There is a problem in the niscmnht.dll that comes with NIS 2005 and it does not work with IE7.

I edited the file and fixed it. However, Symantec should fix the file to recognize IE7.

|||I spent about 2 hours via email/online chat with Symantec running me through various help, installing various parts and pieces, nothing came out of it except "We are working on the fix"...uninstall IE7, and install IE6. And a waste of my 2 hours. The above site was very helpful! It seems that Symantec doesn't want to fix the problem. Wonder how much more of this type of coding issues is throughout Symantec's products? Is this the face that Symantec wants to show the public who purchases their products?|||

I also have contacted symantec and they seem determined to get all of us (users of 2005 and 2006 norton programs to upgrade to 2007 editions. Does anyone know if the problem is in fact fixed in 2007?

Following is my chat session with symantec in which i try to get them to read the site linked above http://pjondevelopment.50webs.com/blog/2006/01/ie7-sw-2005-follow-up.html

which clearly explains the problem and how they can fix it.

They were not helpful at all and refused to say whether they even looked at the site i sent them.

chat id : 093f44f3-4e5b-4d9b-bfaa-d2f0220b0b17
Problem : i am getting a script error after i upgrade to internet explorer 7
Venkatesh: Hello Michael_Bel. My name is Venkatesh.
Michael_Bel: hi
Venkatesh: Thank you for contacting Symantec Live Technical Support. Please make a note of the Chat Request Id 87602 for future reference.
Michael_Bel: im having a problem that many others on the net are having
Venkatesh: Can you confirm the telephone number as **********?
Michael_Bel: ye
Michael_Bel: yes
Venkatesh: I understand that you see script error. Am I correct?
Michael_Bel: yes
Michael_Bel: i have figured out the problem
Michael_Bel: the check version functions in one of your dlls only checks up to version 6
Michael_Bel: see info here:
Michael_Bel: http://pjondevelopment.50webs.com/blog/2006/01/ie7-sw-2005-follow-up.html
Michael_Bel: well I didnt figure it out.. this guy did
Michael_Bel: are you still there?
Venkatesh: Yes, I am with you.
Michael_Bel: hi
Michael_Bel: are you familiar with this problem?
Michael_Bel: the error in the code seems pretty obvious
Michael_Bel: apparently that dll is used in many of your products
Venkatesh: This issue can happen due to corrupted Windows Script files. To fix this issue, you need to reinstall it. To do this, please refer the link provided below:
Michael_Bel: no i did that already
Venkatesh: http://service1.symantec.com/Support/nip.nsf/docid/2001061413320736
Michael_Bel: didnt work
Michael_Bel: i told you what the issue is
Michael_Bel: yeah i saw that one already it didnt work
Venkatesh: In this case, you need to uninstall and reinstall Norton completely.
Michael_Bel: i reinstalled norton internet security.. i reinsstalled script files
Michael_Bel: i did
Michael_Bel: the problem is with your program.. did you read the page i sent you in the link?
Michael_Bel: you guys need to come out with a patch for any of your programs using niscmnht.dll
Michael_Bel: to fix the check version function
Venkatesh: Michael, I do understand that your concern. So, in the latest version of Norton Internet Security we have removed this issue feature itself.
Michael_Bel: wait.. do u understand or do you not understand?
Michael_Bel: ok but what about the older products?
Venkatesh: In older programs, by uninstalling and reinstall it should fix the issue.
Venkatesh: Did you run the Norton Removal tool?
Michael_Bel: it didnt
Michael_Bel: i said this already
Michael_Bel: yes
Michael_Bel: and i reinstalled scripts
Michael_Bel: i have done everything in all of your online resource guides but it didnt fix anything bc as ive said, the problem is in the faulty code of your dll
Michael_Bel: can i speak to a supervisor?
Michael_Bel: please
Venkatesh: Michael, may I know how many days is left for the subscription to expire?
Michael_Bel: ~100
Venkatesh: In this case, I suggest you to purchase Norton Internet Security 2007 and install it. However, you can add the remaining part of Norton 2005 subscription to Norton 2007.
Venkatesh: In Norton Internet Security 2007 program we have overcome the faulty dll file.
Michael_Bel: so your company isnt planning on patching the dll in the other programs through liveupdate?
Michael_Bel: many people on the web are wondering this and i will be posting this chat session online
Venkatesh: May I know the exact text of error message displayed on the screen?
Michael_Bel: An error has occured in the sript on this page.
Michael_Bel: Line: 475
Michael_Bel: Char: 8
Michael_Bel: Error: 'szModify' is undefined
Michael_Bel: Code: 0
Michael_Bel: URL: res://fwui.dll/ruleSummary.htm
Michael_Bel: Do you want to continue using scripts on this page? YES/NO
Michael_Bel: this hasppens when i try to create firewall rules
Michael_Bel: and again...
Michael_Bel: info on why it is happening is here
Michael_Bel: http://pjondevelopment.50webs.com/blog/2006/01/ie7-sw-2005-follow-up.html

Michael_Bel: i mean here
Venkatesh: After the release of IE 7.0 Symantec has released program updates which will make Norton 2005 programs compatible with IE 7.0. Once you download those program updates you should not be getting the script errors.
Venkatesh: However, if you are still getting the script errors even after downloading the latest program updates, I suggest you to uninstall IE 7.0 and install IE 6.0.
Michael_Bel: did you read the site i sent you?
Michael_Bel: ?
Michael_Bel: are you still there?
Venkatesh: Analyst has closed chat and left the room

she fled..... and wouldnt give me a supervisor.. Symantec could fix this so easily through liveupdate it isnt funny. They should stop being so stubborn and fix the problematic coding.

|||

I have edited the dll using the new code supplied by pjondevelopment in A. Jordan's post. BTW i used a program called PE Explorer free 30 day trial to edit the dll.

I just reinstalled windows so i will be testing the functionality of my new dll after i update windows and internet explorer.

Will let people know how it works and the dll will be available by email. (If i was successful)

The only thing im worried about is whether the dlls are the same throughout the norton products (and therefore if my edited dll from my norton internet security 2005 antispyware edition will work for people with different programs or versions). Worst comes to worst.. people can email me their existing niscmnht.dll and i can edit it for them and reemail the fixed versions.

Anyone with any info please post.

|||

I was successful in fixing the problem!!

I have updated to internet explorer 7 and my norton problems started. I then replaced the dll with the edited version i made and it works fine. If anyone wants the fix or instructions on how to do it post your email address and ill respond accordingly.

Please verify that your niscmnht.dll is the same version as mine.. do a search for it.. rt click on it and go to properties..version tab.. then click on file version and it should be 8.2.0.23

If it isnt that version... post me your email and ill email you so you can send me a copy of your dll and ill edit it and sent it back to you.

PROBLEM SOLVED

|||

Michael Bel wrote:

I was successful in fixing the problem!!

I have updated to internet explorer 7 and my norton problems started. I then replaced the dll with the edited version i made and it works fine. If anyone wants the fix or instructions on how to do it post your email address and ill respond accordingly.

Please verify that your niscmnht.dll is the same version as mine.. do a search for it.. rt click on it and go to properties..version tab.. then click on file version and it should be 8.2.0.23

If it isnt that version... post me your email and ill email you so you can send me a copy of your dll and ill edit it and sent it back to you.

PROBLEM SOLVED

Michael

I'm getting the exact same script error message that the original poster was getting which appears to be slightly different to yours. Would your fix work for that problem also? My version is different to yours as well - 8.2.0.21

Any instruction would need to be pretty easy to follow for me or I fear it may be out of my league!

If you reckon I could get Norton 2005 working again without the script errors I;ll post my email on reply.

Thanks.

|||

Hi Michael, I posted the original error, yes please could you help me in sorting this problem. My email address is raw3353@.hotmail.com my .dll version is 8.01.21

Thank you.

|||

I got this response from Symantec after a couple of emails giving me things to try and then sending them the link to this page:

Hello,

Welcome back to Symantec Online Technical support.

Please note that the Symantec development team is currently working on this issue. We may release a patch to fix this issue as soon as possible. Hence, I request you to ignore the alert message that you are receiving from Norton Protection Center (NPC) for the time being and continue using your Norton product.

If you need further assistance, please feel free to contact us.

Regards,

Symantec Authorized Technical Support

I'm afraid I've decided to ditch my Norton software and I've installed alternative software that's working perfectly.

|||Can someone help me out with mine. I need the file edited properly to fix this error and my version number is 8.0.0.112

Im using Norton Anti Virus 2005.|||

ok so ive made a new email address for myself so people can send me their files. It is errorhelp@.gmail.com

This is to prevent spam to my real email.

BEFORE you email me your files.. please run liveupdate to your norton product to verify that you have the most current files . Run it repeatedly until it tells you everything is current (reboot your computer in between update sessions) When it tells you they are current then reboot then check if your problem is fixed and if not THEN send me an email.

So anyone who emails me please include:

1. The name of the product you are using

2. the error message u are getting and what you were doing when you got the error

3. please attach your niscmnht.dll in your email . I will edit it for you and email it back to u to fix your problem.

if you dont know how to do that: go to start.. then click search..all files and folders...type in niscmnht.dll . do a search for it.. rt click on it and copy..then go to your desktop and rt click and paste.. now you can find the file to attach it in an email to errorhelp@.gmail.com

Rob Wheeler & du1608 - Your problem may be a little different . please do the same as above but ALSO attach your options.dll file.

UPDATE: 12/16/06

I have responded to all of the emails i have received either with fixed dlls or with instructions on how to fix it ( a little complicated). Please post if your problem is fixed.

Rob Wheeler and du1608 - Rob has sent me his dlls and after looking at his options.dll i didnt see any html at all so i think your options. dll files may be corrupt. Please make sure that u have done all liveupdates and if that doesnt fix it try to reinstall the norton product and if not email me @. errorhelp @.gmail.com and we can try me emailing you my options.dll (that i see has the mentioned options html) . I use norton internet security 2005 Antispyware Edition

- Michael Belsky

UPDATE: 12/25/06

I have been mostly successful in fixing the problems but for those I have been unable to help... I have found Norton Internet Security 2007 on ebay.com for under $24. Do an advanced search on ebay for norton internet security and check "buy it now" and sort by lowest price first. I just bought one today for my mother-in-law. While I hate promoting Symantecs agenda of getting us all to upgrade to 2007 version, I am glad to help people get it for cheaper than $70 (what a ripoff) Basically I buy a new one every year from ebay.. Cheaper than renewing. If anyone needs help email me.

-Michael Belsky

UPDATE: 12/29/06

Some people have been getting additional script errors after using my fixed DLLs (permission denied and others). The fix is to rt click on the dll and go to properties..then on the general tab if there is an "UNBLOCK" button.. push it to fix the issues. Apparently the dll keeps some kind of signatures from my system and if your computer realizes that the dll is from a different machine, it blocks some access to it, causing the errors. Thanks to Simon Verlee for the help on this one.

-Michael Belsky

errorhelp@.gmail.com

UPDATE: 12/31/06

So I was about to fix the faulty code on my mother-in-laws laptop after I upgraded her to ie7 . She uses Norton Internet Security 2006 so I expected the szmodify is undefined error but it didnt happen when accessing my firewall rules. So I checked out the code in the dll and it appears that symantec has fixed the code at some point? The code was not the same as the one I used that would work for an ie8 or ie9 but nortons code will only work for ie7 (guess they didnt learn their lesson of programming limitations with lazy code.

Still getting the script error when accessing log viewer but if you click no once it stops until u exit the log viewer so who really cares I guess (I saw a fix to add about:blank to the trusted sites of ie7 but that seems like a crazy security risk as many spyware and viruses can use this as a way into your system, so I wouldnt recommend that fix.. Havent seen any others on he net yet..

-Michael Belsky

**FIXED** IE 7 Script Errors **FIXED**

Hi, I recently installed IE7 which works well, but when I try to Edit any of my settings in NIS 2005, I get a script error, which reads as follows:

An error has occured in the script on this page

Line: 6

Char:1

Error:Object expected

Code:0

URL: res://C\\program files\common files\Symantec Shared\Options\Options.dll/Options.htm

Do you want to continue running scripts on this page Yes/No

The only way I can correct this fault is to un-install IE7, then NIS2005 works correctly.

Any help will be appreciated.

UPDATE: 02/15/07

FOR NORTON PRODUCTS FROM 2005 or earlier:

1)If you are getting the "szmodify is undefined" error when trying to change firewall settings:

I can fix the problem for you but due to the large amount of people requesting this fix I am now charging $5 for my time fixing your software. Please click on the link below to pay me $5 and I will promptly send you your fixed dll. (Read below for further instructions)

** CLICK HERE to pay $5 to errorhelp@.gmail.com with Paypal**

BEFORE you email me your files.. please run liveupdate to your norton product to verify that you have the most current files . Run it repeatedly until it tells you everything is current (reboot your computer in between update sessions) THEN send me an email.

Anyone who emails me please include:

a. The name of the product you are using

b. the error message u are getting and what you were doing when you got the error

c. please attach your niscmnht.dll in your email . I will edit it for you and email it back to u to fix your problem.

if you dont know how to do that: go to start.. then click search..all files and folders...type in niscmnht.dll . do a search for it.. rt click on it and copy..then go to your desktop and rt click and paste.. now you can find the file to attach it in an email to errorhelp@.gmail.com

** CLICK HERE to pay $5 to errorhelp@.gmail.com with Paypal**

You should feel secure that I can fix your issue as many have reported on this very site. (See all 4 pages)

2)If you are getting the "object expected" error when trying to access Norton AntiSpam settings (Maybe other situations as well):

I have never had this problem personally, but after many people asking me to fix it I have a fix that worked for many people (but not all). This is what to do:

Uninstall Internet Explorer 7, reboot, then:

a)If you have your NORTON installation cd: uninstall norton and liveupdate and all norton parts then reboot then reinstall norton and update it repeatedly until you are told there are no more updates then reboot. Then disable norton internet security (firewall) and antivirus for 1 hour (not until reboot) then reinstall ie7 and do all updates. Reboot and reenable all norton products (or just wait the hour) and you should be good. Has worked for many people with this issue. Thank you, Duncan Webberley for your help with this issue.

b)If you DO NOT have your norton installation cd: Disable all norton products for 1 hour (do not uninstall them) then reinstall ie7 wih norton disabled. Now reboot. Make sure all Norton products are reenabled.

FOR NORTON PRODUCTS FROM 2006 or newer:

2006 products were supposed to be fixed through liveupdate and 2007 products should not contain any errors at all. (At least regarding these issues) I have found out that norton is giving free upgrades to users of Norton Internet Security 2006, Norton AntiVirus 2006, Norton System Works 2006, or Norton System Works Premier 2006 with a current subscription (not expired). You are eligible to download and use the latest product versions (2007 or newer as they come out) for your Norton product as they become available during your subscription period. This is their new policy supposedly for future products so people can always have the newest software. This is probably to save them the money of supporting older versions. From symantecs website:

http://www.symantec.com/home_homeoffice/support/special/upgrade2007/index.jsp

THEY ARE NOT PUBLICIZING THIS SO PLEASE SPREAD THIS AROUND TO EVERYONE YOU KNOW WHO USES NORTON.
Also, the 2007 version of Internet Security doesn't automatically come with Norton AntiSpam, Ad Blocking, Norton Parental Control or Confidential Information Blocking (which all came with 2006 version of NIS)
BUT there is a free add-on download from Norton that adds all of these features for this version once you upgrade to 2007, here:

http://service1.symantec.com/SUPPORT/custserv.nsf/docid/2006092616462646

Enjoy!!

Michael Belsky

errorhelp@.gmail.com

ORIGINAL POST:

i get a similar error when going to the general rules button in the advanced settings of the firewall in norton internet security 2005 antispyware edition. The result is i cant create any new firewall rules! This only occurs since I installed Internet Explorer 7.

The Exact error is:

An error has occured in the sript on this page.

Line: 475

Char: 8

Error: 'szModify' is undefined

Code: 0

URL: res://fwui.dll/ruleSummary.htm

Do you want to continue using scripts on this page? YES/NO

|||

I'm getting the same with NIS 2005 non-antispyware version. NIS hangs when I click yes or no or try to close the dialog box.

Microsoft PLEASE HELP -

|||

Hi, Thanks for your reply, I have now uninstalled IE7 and the problem has now gone so I guess its a problem with IE7 working with NIS 2005

Regards

|||I have the same problem with norton personal firewall. Is there a fix short of removing IE 7?|||

I found the solution at http://pjondevelopment.50webs.com/blog/2006/01/ie7-sw-2005-follow-up.html

There is a problem in the niscmnht.dll that comes with NIS 2005 and it does not work with IE7.

I edited the file and fixed it. However, Symantec should fix the file to recognize IE7.

|||I spent about 2 hours via email/online chat with Symantec running me through various help, installing various parts and pieces, nothing came out of it except "We are working on the fix"...uninstall IE7, and install IE6. And a waste of my 2 hours. The above site was very helpful! It seems that Symantec doesn't want to fix the problem. Wonder how much more of this type of coding issues is throughout Symantec's products? Is this the face that Symantec wants to show the public who purchases their products?|||

I also have contacted symantec and they seem determined to get all of us (users of 2005 and 2006 norton programs to upgrade to 2007 editions. Does anyone know if the problem is in fact fixed in 2007?

Following is my chat session with symantec in which i try to get them to read the site linked above http://pjondevelopment.50webs.com/blog/2006/01/ie7-sw-2005-follow-up.html

which clearly explains the problem and how they can fix it.

They were not helpful at all and refused to say whether they even looked at the site i sent them.

chat id : 093f44f3-4e5b-4d9b-bfaa-d2f0220b0b17
Problem : i am getting a script error after i upgrade to internet explorer 7
Venkatesh: Hello Michael_Bel. My name is Venkatesh.
Michael_Bel: hi
Venkatesh: Thank you for contacting Symantec Live Technical Support. Please make a note of the Chat Request Id 87602 for future reference.
Michael_Bel: im having a problem that many others on the net are having
Venkatesh: Can you confirm the telephone number as **********?
Michael_Bel: ye
Michael_Bel: yes
Venkatesh: I understand that you see script error. Am I correct?
Michael_Bel: yes
Michael_Bel: i have figured out the problem
Michael_Bel: the check version functions in one of your dlls only checks up to version 6
Michael_Bel: see info here:
Michael_Bel: http://pjondevelopment.50webs.com/blog/2006/01/ie7-sw-2005-follow-up.html
Michael_Bel: well I didnt figure it out.. this guy did
Michael_Bel: are you still there?
Venkatesh: Yes, I am with you.
Michael_Bel: hi
Michael_Bel: are you familiar with this problem?
Michael_Bel: the error in the code seems pretty obvious
Michael_Bel: apparently that dll is used in many of your products
Venkatesh: This issue can happen due to corrupted Windows Script files. To fix this issue, you need to reinstall it. To do this, please refer the link provided below:
Michael_Bel: no i did that already
Venkatesh: http://service1.symantec.com/Support/nip.nsf/docid/2001061413320736
Michael_Bel: didnt work
Michael_Bel: i told you what the issue is
Michael_Bel: yeah i saw that one already it didnt work
Venkatesh: In this case, you need to uninstall and reinstall Norton completely.
Michael_Bel: i reinstalled norton internet security.. i reinsstalled script files
Michael_Bel: i did
Michael_Bel: the problem is with your program.. did you read the page i sent you in the link?
Michael_Bel: you guys need to come out with a patch for any of your programs using niscmnht.dll
Michael_Bel: to fix the check version function
Venkatesh: Michael, I do understand that your concern. So, in the latest version of Norton Internet Security we have removed this issue feature itself.
Michael_Bel: wait.. do u understand or do you not understand?
Michael_Bel: ok but what about the older products?
Venkatesh: In older programs, by uninstalling and reinstall it should fix the issue.
Venkatesh: Did you run the Norton Removal tool?
Michael_Bel: it didnt
Michael_Bel: i said this already
Michael_Bel: yes
Michael_Bel: and i reinstalled scripts
Michael_Bel: i have done everything in all of your online resource guides but it didnt fix anything bc as ive said, the problem is in the faulty code of your dll
Michael_Bel: can i speak to a supervisor?
Michael_Bel: please
Venkatesh: Michael, may I know how many days is left for the subscription to expire?
Michael_Bel: ~100
Venkatesh: In this case, I suggest you to purchase Norton Internet Security 2007 and install it. However, you can add the remaining part of Norton 2005 subscription to Norton 2007.
Venkatesh: In Norton Internet Security 2007 program we have overcome the faulty dll file.
Michael_Bel: so your company isnt planning on patching the dll in the other programs through liveupdate?
Michael_Bel: many people on the web are wondering this and i will be posting this chat session online
Venkatesh: May I know the exact text of error message displayed on the screen?
Michael_Bel: An error has occured in the sript on this page.
Michael_Bel: Line: 475
Michael_Bel: Char: 8
Michael_Bel: Error: 'szModify' is undefined
Michael_Bel: Code: 0
Michael_Bel: URL: res://fwui.dll/ruleSummary.htm
Michael_Bel: Do you want to continue using scripts on this page? YES/NO
Michael_Bel: this hasppens when i try to create firewall rules
Michael_Bel: and again...
Michael_Bel: info on why it is happening is here
Michael_Bel: http://pjondevelopment.50webs.com/blog/2006/01/ie7-sw-2005-follow-up.html

Michael_Bel: i mean here
Venkatesh: After the release of IE 7.0 Symantec has released program updates which will make Norton 2005 programs compatible with IE 7.0. Once you download those program updates you should not be getting the script errors.
Venkatesh: However, if you are still getting the script errors even after downloading the latest program updates, I suggest you to uninstall IE 7.0 and install IE 6.0.
Michael_Bel: did you read the site i sent you?
Michael_Bel: ?
Michael_Bel: are you still there?
Venkatesh: Analyst has closed chat and left the room

she fled..... and wouldnt give me a supervisor.. Symantec could fix this so easily through liveupdate it isnt funny. They should stop being so stubborn and fix the problematic coding.

|||

I have edited the dll using the new code supplied by pjondevelopment in A. Jordan's post. BTW i used a program called PE Explorer free 30 day trial to edit the dll.

I just reinstalled windows so i will be testing the functionality of my new dll after i update windows and internet explorer.

Will let people know how it works and the dll will be available by email. (If i was successful)

The only thing im worried about is whether the dlls are the same throughout the norton products (and therefore if my edited dll from my norton internet security 2005 antispyware edition will work for people with different programs or versions). Worst comes to worst.. people can email me their existing niscmnht.dll and i can edit it for them and reemail the fixed versions.

Anyone with any info please post.

|||

I was successful in fixing the problem!!

I have updated to internet explorer 7 and my norton problems started. I then replaced the dll with the edited version i made and it works fine. If anyone wants the fix or instructions on how to do it post your email address and ill respond accordingly.

Please verify that your niscmnht.dll is the same version as mine.. do a search for it.. rt click on it and go to properties..version tab.. then click on file version and it should be 8.2.0.23

If it isnt that version... post me your email and ill email you so you can send me a copy of your dll and ill edit it and sent it back to you.

PROBLEM SOLVED

|||

Michael Bel wrote:

I was successful in fixing the problem!!

I have updated to internet explorer 7 and my norton problems started. I then replaced the dll with the edited version i made and it works fine. If anyone wants the fix or instructions on how to do it post your email address and ill respond accordingly.

Please verify that your niscmnht.dll is the same version as mine.. do a search for it.. rt click on it and go to properties..version tab.. then click on file version and it should be 8.2.0.23

If it isnt that version... post me your email and ill email you so you can send me a copy of your dll and ill edit it and sent it back to you.

PROBLEM SOLVED

Michael

I'm getting the exact same script error message that the original poster was getting which appears to be slightly different to yours. Would your fix work for that problem also? My version is different to yours as well - 8.2.0.21

Any instruction would need to be pretty easy to follow for me or I fear it may be out of my league!

If you reckon I could get Norton 2005 working again without the script errors I;ll post my email on reply.

Thanks.

|||

Hi Michael, I posted the original error, yes please could you help me in sorting this problem. My email address is raw3353@.hotmail.com my .dll version is 8.01.21

Thank you.

|||

I got this response from Symantec after a couple of emails giving me things to try and then sending them the link to this page:

Hello,

Welcome back to Symantec Online Technical support.

Please note that the Symantec development team is currently working on this issue. We may release a patch to fix this issue as soon as possible. Hence, I request you to ignore the alert message that you are receiving from Norton Protection Center (NPC) for the time being and continue using your Norton product.

If you need further assistance, please feel free to contact us.

Regards,

Symantec Authorized Technical Support

I'm afraid I've decided to ditch my Norton software and I've installed alternative software that's working perfectly.

|||Can someone help me out with mine. I need the file edited properly to fix this error and my version number is 8.0.0.112

Im using Norton Anti Virus 2005.

|||

ok so ive made a new email address for myself so people can send me their files. It is errorhelp@.gmail.com

This is to prevent spam to my real email.

BEFORE you email me your files.. please run liveupdate to your norton product to verify that you have the most current files . Run it repeatedly until it tells you everything is current (reboot your computer in between update sessions) When it tells you they are current then reboot then check if your problem is fixed and if not THEN send me an email.

So anyone who emails me please include:

1. The name of the product you are using

2. the error message u are getting and what you were doing when you got the error

3. please attach your niscmnht.dll in your email . I will edit it for you and email it back to u to fix your problem.

if you dont know how to do that: go to start.. then click search..all files and folders...type in niscmnht.dll . do a search for it.. rt click on it and copy..then go to your desktop and rt click and paste.. now you can find the file to attach it in an email to errorhelp@.gmail.com

Rob Wheeler & du1608 - Your problem may be a little different . please do the same as above but ALSO attach your options.dll file.

UPDATE: 12/16/06

I have responded to all of the emails i have received either with fixed dlls or with instructions on how to fix it ( a little complicated). Please post if your problem is fixed.

Rob Wheeler and du1608 - Rob has sent me his dlls and after looking at his options.dll i didnt see any html at all so i think your options. dll files may be corrupt. Please make sure that u have done all liveupdates and if that doesnt fix it try to reinstall the norton product and if not email me @. errorhelp @.gmail.com and we can try me emailing you my options.dll (that i see has the mentioned options html) . I use norton internet security 2005 Antispyware Edition

- Michael Belsky

UPDATE: 12/25/06

I have been mostly successful in fixing the problems but for those I have been unable to help... I have found Norton Internet Security 2007 on ebay.com for under $24. Do an advanced search on ebay for norton internet security and check "buy it now" and sort by lowest price first. I just bought one today for my mother-in-law. While I hate promoting Symantecs agenda of getting us all to upgrade to 2007 version, I am glad to help people get it for cheaper than $70 (what a ripoff) Basically I buy a new one every year from ebay.. Cheaper than renewing. If anyone needs help email me.

-Michael Belsky

UPDATE: 12/29/06

Some people have been getting additional script errors after using my fixed DLLs (permission denied and others). The fix is to rt click on the dll and go to properties..then on the general tab if there is an "UNBLOCK" button.. push it to fix the issues. Apparently the dll keeps some kind of signatures from my system and if your computer realizes that the dll is from a different machine, it blocks some access to it, causing the errors. Thanks to Simon Verlee for the help on this one.

-Michael Belsky

errorhelp@.gmail.com

UPDATE: 12/31/06

So I was about to fix the faulty code on my mother-in-laws laptop after I upgraded her to ie7 . She uses Norton Internet Security 2006 so I expected the szmodify is undefined error but it didnt happen when accessing my firewall rules. So I checked out the code in the dll and it appears that symantec has fixed the code at some point? The code was not the same as the one I used that would work for an ie8 or ie9 but nortons code will only work for ie7 (guess they didnt learn their lesson of programming limitations with lazy code.

Still getting the script error when accessing log viewer but if you click no once it stops until u exit the log viewer so who really cares I guess (I saw a fix to add about:blank to the trusted sites of ie7 but that seems like a crazy security risk as many spyware and viruses can use this as a way into your system, so I wouldnt recommend that fix.. Havent seen any others on he net yet..

-Michael Belsky

**FIXED** IE 7 Script Error **FIXED**

Hi, I recently installed IE7 which works well, but when I try to Edit any of my settings in NIS 2005, I get a script error, which reads as follows:

An error has occured in the script on this page

Line: 6

Char:1

Error:Object expected

Code:0

URL: res://C\\program files\common files\Symantec Shared\Options\Options.dll/Options.htm

Do you want to continue running scripts on this page Yes/No

The only way I can correct this fault is to un-install IE7, then NIS2005 works correctly.

Any help will be appreciated.

UPDATE: 02/15/07

FOR NORTON PRODUCTS FROM 2005 or earlier:

1)If you are getting the "szmodify is undefined" error when trying to change firewall settings:

I can fix the problem for you but due to the large amount of people requesting this fix I am now charging $5 for my time fixing your software. Please click on the link below to pay me $5 and I will promptly send you your fixed dll. (Read below for further instructions)

** CLICK HERE to pay $5 to errorhelp@.gmail.com with Paypal**

BEFORE you email me your files.. please run liveupdate to your norton product to verify that you have the most current files . Run it repeatedly until it tells you everything is current (reboot your computer in between update sessions) THEN send me an email.

Anyone who emails me please include:

a. The name of the product you are using

b. the error message u are getting and what you were doing when you got the error

c. please attach your niscmnht.dll in your email . I will edit it for you and email it back to u to fix your problem.

if you dont know how to do that: go to start.. then click search..all files and folders...type in niscmnht.dll . do a search for it.. rt click on it and copy..then go to your desktop and rt click and paste.. now you can find the file to attach it in an email to errorhelp@.gmail.com

** CLICK HERE to pay $5 to errorhelp@.gmail.com with Paypal**

You should feel secure that I can fix your issue as many have reported on this very site. (See all 4 pages)

2)If you are getting the "object expected" error when trying to access Norton AntiSpam settings (Maybe other situations as well):

I have never had this problem personally, but after many people asking me to fix it I have a fix that worked for many people (but not all). This is what to do:

Uninstall Internet Explorer 7, reboot, then:

a)If you have your NORTON installation cd: uninstall norton and liveupdate and all norton parts then reboot then reinstall norton and update it repeatedly until you are told there are no more updates then reboot. Then disable norton internet security (firewall) and antivirus for 1 hour (not until reboot) then reinstall ie7 and do all updates. Reboot and reenable all norton products (or just wait the hour) and you should be good. Has worked for many people with this issue. Thank you, Duncan Webberley for your help with this issue.

b)If you DO NOT have your norton installation cd: Disable all norton products for 1 hour (do not uninstall them) then reinstall ie7 wih norton disabled. Now reboot. Make sure all Norton products are reenabled.

FOR NORTON PRODUCTS FROM 2006 or newer:

2006 products were supposed to be fixed through liveupdate and 2007 products should not contain any errors at all. (At least regarding these issues) I have found out that norton is giving free upgrades to users of Norton Internet Security 2006, Norton AntiVirus 2006, Norton System Works 2006, or Norton System Works Premier 2006 with a current subscription (not expired). You are eligible to download and use the latest product versions (2007 or newer as they come out) for your Norton product as they become available during your subscription period. This is their new policy supposedly for future products so people can always have the newest software. This is probably to save them the money of supporting older versions. From symantecs website:

http://www.symantec.com/home_homeoffice/support/special/upgrade2007/index.jsp

THEY ARE NOT PUBLICIZING THIS SO PLEASE SPREAD THIS AROUND TO EVERYONE YOU KNOW WHO USES NORTON.
Also, the 2007 version of Internet Security doesn't automatically come with Norton AntiSpam, Ad Blocking, Norton Parental Control or Confidential Information Blocking (which all came with 2006 version of NIS)
BUT there is a free add-on download from Norton that adds all of these features for this version once you upgrade to 2007, here:

http://service1.symantec.com/SUPPORT/custserv.nsf/docid/2006092616462646

Enjoy!!

Michael Belsky

errorhelp@.gmail.com

ORIGINAL POST:

i get a similar error when going to the general rules button in the advanced settings of the firewall in norton internet security 2005 antispyware edition. The result is i cant create any new firewall rules! This only occurs since I installed Internet Explorer 7.

The Exact error is:

An error has occured in the sript on this page.

Line: 475

Char: 8

Error: 'szModify' is undefined

Code: 0

URL: res://fwui.dll/ruleSummary.htm

Do you want to continue using scripts on this page? YES/NO

|||

I'm getting the same with NIS 2005 non-antispyware version. NIS hangs when I click yes or no or try to close the dialog box.

Microsoft PLEASE HELP -

|||

Hi, Thanks for your reply, I have now uninstalled IE7 and the problem has now gone so I guess its a problem with IE7 working with NIS 2005

Regards

|||I have the same problem with norton personal firewall. Is there a fix short of removing IE 7?|||

I found the solution at http://pjondevelopment.50webs.com/blog/2006/01/ie7-sw-2005-follow-up.html

There is a problem in the niscmnht.dll that comes with NIS 2005 and it does not work with IE7.

I edited the file and fixed it. However, Symantec should fix the file to recognize IE7.

|||I spent about 2 hours via email/online chat with Symantec running me through various help, installing various parts and pieces, nothing came out of it except "We are working on the fix"...uninstall IE7, and install IE6. And a waste of my 2 hours. The above site was very helpful! It seems that Symantec doesn't want to fix the problem. Wonder how much more of this type of coding issues is throughout Symantec's products? Is this the face that Symantec wants to show the public who purchases their products?|||

I also have contacted symantec and they seem determined to get all of us (users of 2005 and 2006 norton programs to upgrade to 2007 editions. Does anyone know if the problem is in fact fixed in 2007?

Following is my chat session with symantec in which i try to get them to read the site linked above http://pjondevelopment.50webs.com/blog/2006/01/ie7-sw-2005-follow-up.html

which clearly explains the problem and how they can fix it.

They were not helpful at all and refused to say whether they even looked at the site i sent them.

chat id : 093f44f3-4e5b-4d9b-bfaa-d2f0220b0b17
Problem : i am getting a script error after i upgrade to internet explorer 7
Venkatesh: Hello Michael_Bel. My name is Venkatesh.
Michael_Bel: hi
Venkatesh: Thank you for contacting Symantec Live Technical Support. Please make a note of the Chat Request Id 87602 for future reference.
Michael_Bel: im having a problem that many others on the net are having
Venkatesh: Can you confirm the telephone number as **********?
Michael_Bel: ye
Michael_Bel: yes
Venkatesh: I understand that you see script error. Am I correct?
Michael_Bel: yes
Michael_Bel: i have figured out the problem
Michael_Bel: the check version functions in one of your dlls only checks up to version 6
Michael_Bel: see info here:
Michael_Bel: http://pjondevelopment.50webs.com/blog/2006/01/ie7-sw-2005-follow-up.html
Michael_Bel: well I didnt figure it out.. this guy did
Michael_Bel: are you still there?
Venkatesh: Yes, I am with you.
Michael_Bel: hi
Michael_Bel: are you familiar with this problem?
Michael_Bel: the error in the code seems pretty obvious
Michael_Bel: apparently that dll is used in many of your products
Venkatesh: This issue can happen due to corrupted Windows Script files. To fix this issue, you need to reinstall it. To do this, please refer the link provided below:
Michael_Bel: no i did that already
Venkatesh: http://service1.symantec.com/Support/nip.nsf/docid/2001061413320736
Michael_Bel: didnt work
Michael_Bel: i told you what the issue is
Michael_Bel: yeah i saw that one already it didnt work
Venkatesh: In this case, you need to uninstall and reinstall Norton completely.
Michael_Bel: i reinstalled norton internet security.. i reinsstalled script files
Michael_Bel: i did
Michael_Bel: the problem is with your program.. did you read the page i sent you in the link?
Michael_Bel: you guys need to come out with a patch for any of your programs using niscmnht.dll
Michael_Bel: to fix the check version function
Venkatesh: Michael, I do understand that your concern. So, in the latest version of Norton Internet Security we have removed this issue feature itself.
Michael_Bel: wait.. do u understand or do you not understand?
Michael_Bel: ok but what about the older products?
Venkatesh: In older programs, by uninstalling and reinstall it should fix the issue.
Venkatesh: Did you run the Norton Removal tool?
Michael_Bel: it didnt
Michael_Bel: i said this already
Michael_Bel: yes
Michael_Bel: and i reinstalled scripts
Michael_Bel: i have done everything in all of your online resource guides but it didnt fix anything bc as ive said, the problem is in the faulty code of your dll
Michael_Bel: can i speak to a supervisor?
Michael_Bel: please
Venkatesh: Michael, may I know how many days is left for the subscription to expire?
Michael_Bel: ~100
Venkatesh: In this case, I suggest you to purchase Norton Internet Security 2007 and install it. However, you can add the remaining part of Norton 2005 subscription to Norton 2007.
Venkatesh: In Norton Internet Security 2007 program we have overcome the faulty dll file.
Michael_Bel: so your company isnt planning on patching the dll in the other programs through liveupdate?
Michael_Bel: many people on the web are wondering this and i will be posting this chat session online
Venkatesh: May I know the exact text of error message displayed on the screen?
Michael_Bel: An error has occured in the sript on this page.
Michael_Bel: Line: 475
Michael_Bel: Char: 8
Michael_Bel: Error: 'szModify' is undefined
Michael_Bel: Code: 0
Michael_Bel: URL: res://fwui.dll/ruleSummary.htm
Michael_Bel: Do you want to continue using scripts on this page? YES/NO
Michael_Bel: this hasppens when i try to create firewall rules
Michael_Bel: and again...
Michael_Bel: info on why it is happening is here
Michael_Bel: http://pjondevelopment.50webs.com/blog/2006/01/ie7-sw-2005-follow-up.html

Michael_Bel: i mean here
Venkatesh: After the release of IE 7.0 Symantec has released program updates which will make Norton 2005 programs compatible with IE 7.0. Once you download those program updates you should not be getting the script errors.
Venkatesh: However, if you are still getting the script errors even after downloading the latest program updates, I suggest you to uninstall IE 7.0 and install IE 6.0.
Michael_Bel: did you read the site i sent you?
Michael_Bel: ?
Michael_Bel: are you still there?
Venkatesh: Analyst has closed chat and left the room

she fled..... and wouldnt give me a supervisor.. Symantec could fix this so easily through liveupdate it isnt funny. They should stop being so stubborn and fix the problematic coding.

|||

I have edited the dll using the new code supplied by pjondevelopment in A. Jordan's post. BTW i used a program called PE Explorer free 30 day trial to edit the dll.

I just reinstalled windows so i will be testing the functionality of my new dll after i update windows and internet explorer.

Will let people know how it works and the dll will be available by email. (If i was successful)

The only thing im worried about is whether the dlls are the same throughout the norton products (and therefore if my edited dll from my norton internet security 2005 antispyware edition will work for people with different programs or versions). Worst comes to worst.. people can email me their existing niscmnht.dll and i can edit it for them and reemail the fixed versions.

Anyone with any info please post.

|||

I was successful in fixing the problem!!

I have updated to internet explorer 7 and my norton problems started. I then replaced the dll with the edited version i made and it works fine. If anyone wants the fix or instructions on how to do it post your email address and ill respond accordingly.

Please verify that your niscmnht.dll is the same version as mine.. do a search for it.. rt click on it and go to properties..version tab.. then click on file version and it should be 8.2.0.23

If it isnt that version... post me your email and ill email you so you can send me a copy of your dll and ill edit it and sent it back to you.

PROBLEM SOLVED

|||

Michael Bel wrote:

I was successful in fixing the problem!!

I have updated to internet explorer 7 and my norton problems started. I then replaced the dll with the edited version i made and it works fine. If anyone wants the fix or instructions on how to do it post your email address and ill respond accordingly.

Please verify that your niscmnht.dll is the same version as mine.. do a search for it.. rt click on it and go to properties..version tab.. then click on file version and it should be 8.2.0.23

If it isnt that version... post me your email and ill email you so you can send me a copy of your dll and ill edit it and sent it back to you.

PROBLEM SOLVED

Michael

I'm getting the exact same script error message that the original poster was getting which appears to be slightly different to yours. Would your fix work for that problem also? My version is different to yours as well - 8.2.0.21

Any instruction would need to be pretty easy to follow for me or I fear it may be out of my league!

If you reckon I could get Norton 2005 working again without the script errors I;ll post my email on reply.

Thanks.

|||

Hi Michael, I posted the original error, yes please could you help me in sorting this problem. My email address is raw3353@.hotmail.com my .dll version is 8.01.21

Thank you.

|||

I got this response from Symantec after a couple of emails giving me things to try and then sending them the link to this page:

Hello,

Welcome back to Symantec Online Technical support.

Please note that the Symantec development team is currently working on this issue. We may release a patch to fix this issue as soon as possible. Hence, I request you to ignore the alert message that you are receiving from Norton Protection Center (NPC) for the time being and continue using your Norton product.

If you need further assistance, please feel free to contact us.

Regards,

Symantec Authorized Technical Support

I'm afraid I've decided to ditch my Norton software and I've installed alternative software that's working perfectly.

|||Can someone help me out with mine. I need the file edited properly to fix this error and my version number is 8.0.0.112

Im using Norton Anti Virus 2005.|||

ok so ive made a new email address for myself so people can send me their files. It is errorhelp@.gmail.com

This is to prevent spam to my real email.

BEFORE you email me your files.. please run liveupdate to your norton product to verify that you have the most current files . Run it repeatedly until it tells you everything is current (reboot your computer in between update sessions) When it tells you they are current then reboot then check if your problem is fixed and if not THEN send me an email.

So anyone who emails me please include:

1. The name of the product you are using

2. the error message u are getting and what you were doing when you got the error

3. please attach your niscmnht.dll in your email . I will edit it for you and email it back to u to fix your problem.

if you dont know how to do that: go to start.. then click search..all files and folders...type in niscmnht.dll . do a search for it.. rt click on it and copy..then go to your desktop and rt click and paste.. now you can find the file to attach it in an email to errorhelp@.gmail.com

Rob Wheeler & du1608 - Your problem may be a little different . please do the same as above but ALSO attach your options.dll file.

UPDATE: 12/16/06

I have responded to all of the emails i have received either with fixed dlls or with instructions on how to fix it ( a little complicated). Please post if your problem is fixed.

Rob Wheeler and du1608 - Rob has sent me his dlls and after looking at his options.dll i didnt see any html at all so i think your options. dll files may be corrupt. Please make sure that u have done all liveupdates and if that doesnt fix it try to reinstall the norton product and if not email me @. errorhelp @.gmail.com and we can try me emailing you my options.dll (that i see has the mentioned options html) . I use norton internet security 2005 Antispyware Edition

- Michael Belsky

UPDATE: 12/25/06

I have been mostly successful in fixing the problems but for those I have been unable to help... I have found Norton Internet Security 2007 on ebay.com for under $24. Do an advanced search on ebay for norton internet security and check "buy it now" and sort by lowest price first. I just bought one today for my mother-in-law. While I hate promoting Symantecs agenda of getting us all to upgrade to 2007 version, I am glad to help people get it for cheaper than $70 (what a ripoff) Basically I buy a new one every year from ebay.. Cheaper than renewing. If anyone needs help email me.

-Michael Belsky

UPDATE: 12/29/06

Some people have been getting additional script errors after using my fixed DLLs (permission denied and others). The fix is to rt click on the dll and go to properties..then on the general tab if there is an "UNBLOCK" button.. push it to fix the issues. Apparently the dll keeps some kind of signatures from my system and if your computer realizes that the dll is from a different machine, it blocks some access to it, causing the errors. Thanks to Simon Verlee for the help on this one.

-Michael Belsky

errorhelp@.gmail.com

UPDATE: 12/31/06

So I was about to fix the faulty code on my mother-in-laws laptop after I upgraded her to ie7 . She uses Norton Internet Security 2006 so I expected the szmodify is undefined error but it didnt happen when accessing my firewall rules. So I checked out the code in the dll and it appears that symantec has fixed the code at some point? The code was not the same as the one I used that would work for an ie8 or ie9 but nortons code will only work for ie7 (guess they didnt learn their lesson of programming limitations with lazy code.

Still getting the script error when accessing log viewer but if you click no once it stops until u exit the log viewer so who really cares I guess (I saw a fix to add about:blank to the trusted sites of ie7 but that seems like a crazy security risk as many spyware and viruses can use this as a way into your system, so I wouldnt recommend that fix.. Havent seen any others on he net yet..

-Michael Belsky