title: Does anyone know how to fix these ssrs script file errors?
body: <p>I copied the .rss script file contents from here: <a href="https://technet.microsoft.com/en-us/library/aa225813(v=sql.80).aspx" rel="nofollow">https://technet.microsoft.com/en-us/library/aa225813(v=sql.80).aspx</a>, I took a sample .rdl file and put it in the same location, and I changed instances of "MyReport" to the .rdl files name.</p>
  
  <p>I now get the following errors: </p>
  
  <blockquote>
    <p>The specified script failed to compile with the following errors:
    C:\Users\xxxxx>
    "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 (x86)\Microsoft SQL
    Server\100\Tools\Binn\rs.exe"
    /out:"C:\Users\xxxxx\AppData\Local\Temp\4\ivfgtstk.exe" /debug- 
    "C:\Users\xxxxx\AppData\Local\Temp\4\ivfgtstk.0.vb"
    "C:\Users\xxxxx\AppData\Local\Temp\4\ivfgtstk.1.vb"</p>
    
    <p>Microsoft (R) Visual Basic Compiler version 8.0.50727.5483 for
    Microsoft (R) .NET Framework version 2.0.50727.5485 Copyright (c)
    Microsoft Corporation.  All rights reserved.</p>
    
    <p>C:\Users\xxxxx\AppData\Local\Temp\4\ivfgtstk.0.vb(49) : error BC30456:
    'Main' is  not a member of '____ScriptClass'.</p>
  
  <pre><code>        clientScript.Main()
          ~~~~~~~~~~~~~~~~~ C:\Users\xxxxx\AppData\Local\Temp\4\ivfgtstk.1.vb(14) : error BC30465:
  </code></pre>
    
    <p>'Imports'  statements must precede any declarations.</p>
    
    <p>Imports System ~~~~~~~
    C:\Users\xxxxx\AppData\Local\Temp\4\ivfgtstk.1.vb(15) : error BC30465:
    'Imports'  statements must precede any declarations.</p>
    
    <p>Imports System.IO ~~~~~~~
    C:\Users\xxxxx\AppData\Local\Temp\4\ivfgtstk.1.vb(16) : error BC30465:
    'Imports'  statements must precede any declarations.</p>
    
    <p>Imports System.Web.Services.Protocols ~~~~~~~
    C:\Users\xxxxx\AppData\Local\Temp\4\ivfgtstk.1.vb(20) : error BC30002:
    Type 'Rep ortingService' is not defined.</p>
  
  <pre><code>    Dim rs As New ReportingService()
                    ~~~~~~~~~~~~~~~~
  </code></pre>
  </blockquote>
  
  <p>My online searches have come up unanswered (<a href="https://social.msdn.microsoft.com/Forums/sqlserver/en-US/ae90b9cb-f8a0-46a5-989f-aff4c5bc3190/script-runs-on-vbc-compiler-but-not-on-rs-utility?forum=sqlreportingservices" rel="nofollow">https://social.msdn.microsoft.com/Forums/sqlserver/en-US/ae90b9cb-f8a0-46a5-989f-aff4c5bc3190/script-runs-on-vbc-compiler-but-not-on-rs-utility?forum=sqlreportingservices</a> as an example).</p>
  
  <p>Assistance in solving this issue would be much appreciated.</p>