generate doc. from website

Apr 23, 2013 at 5:16 PM
I am trying to generate documentation for a WebSite, but, I don't have a project, in other words, I just go in Visual Studio and I Open a WebSite, I can't generate the XML documentation from this web project style:

Image

And, I see in [that][2] documentation I need to put this:
      <system.codedom>
        <compilers>
          <compiler language="vb;vbs;visualbasic;vbscript" extension=".vb"
            compilerOptions="/docpath:C:\Publish\Docs"
            type="EWSoftware.CodeDom.VBCodeProviderWithDocs,
                  EWSoftware.CodeDom, Version=1.1.0.0, Culture=neutral,
                  PublicKeyToken=d633d7d5b41cbb65">
            <providerOption name="CompilerVersion" value="v2.0"/>
          </compiler>
        </compilers>
      </system.codedom>
Ok, but when i put this in my web.config, and When I try to build, the compiler return a lot of errors, like that:
    error BC30451: 'DDtoCC' is not declared. It may be inaccessible due to its protection level.
    0error BC30451: 'HojetoCC' is not declared. It may be inaccessible due to its protection level.
    error BC30451: 'CCtoDD' is not declared. It may be inaccessible due to its protection level.
    error BC30002: Type 'SqlConnection' is not defined.
    error BC30002: Type 'SqlCommand' is not defined.
    error BC30002: Type 'SqlConnection' is not defined.
    error BC30002: Type 'SqlCommand' is not defined.
    error BC30002: Type 'SqlConnection' is not defined.
    error BC30002: Type 'SqlCommand' is not defined.
    error BC30002: Type 'SqlDataReader' is not defined.
    error BC30002: Type 'SqlConnection' is not defined.
    error BC30002: Type 'SqlCommand' is not defined.
    error BC30002: Type 'SqlConnection' is not defined.
    error BC30002: Type 'SqlCommand' is not defined.
    error BC30002: Type 'SqlDataReader' is not defined.
    error BC30002: Type 'SqlConnection' is not defined.
    error BC30002: Type 'SqlCommand' is not defined.
    error BC30002: Type 'SqlConnection' is not defined.
    error BC30002: Type 'SqlCommand' is not defined.
    error BC30002: Type 'SqlDataReader' is not defined.
    error BC30002: Type 'SqlConnection' is not defined.
    error BC30002: Type 'SqlCommand' is not defined.
    error BC30002: Type 'SqlConnection' is not defined.
    error BC30002: Type 'SqlCommand' is not defined.
    error BC30002: Type 'SqlDataReader' is not defined.
    error BC30002: Type 'SqlConnection' is not defined.
    error BC30002: Type 'SqlCommand' is not defined.
    error BC30002: Type 'SqlCommand' is not defined.
    error BC30002: Type 'SqlConnection' is not defined.
    error BC30002: Type 'SqlDataReader' is not defined.
    error BC30002: Type 'SqlConnection' is not defined.
    error BC30002: Type 'SqlCommand' is not defined.
    error BC30002: Type 'SqlDataReader' is not defined.
    error BC30451: 'DataDiff' is not declared. It may be inaccessible due to its protection level.
    error BC30451: 'AddDiastoCC' is not declared. It may be inaccessible due to its protection level.
    error BC30451: 'AddDiastoCC' is not declared. It may be inaccessible due to its protection level.
    error BC30451: 'QueryDB' is not declared. It may be inaccessible due to its protection level.
    error BC30451: 'AddDiastoCC' is not declared. It may be inaccessible due to its protection level.
    error BC30451: 'QueryDB' is not declared. It may be inaccessible due to its protection level.
    error BC30451: 'Truncate' is not declared. It may be inaccessible due to its protection level.
    error BC30002: Type 'SqlConnection' is not defined.
    error BC30002: Type 'SqlDataReader' is not defined.
    error BC30002: Type 'SqlCommand' is not defined.
    error BC30451: 'QueryDB' is not declared. It may be inaccessible due to its protection level.
    error BC30002: Type 'SqlConnection' is not defined.
    error BC30002: Type 'SqlCommand' is not defined.
    error BC30451: 'HojetoCC' is not declared. It may be inaccessible due to its protection level.
And, When I remove this, the code is compiled normaly ;x

And, I have tried to create a web project whit this code, BUt, I got the same error..
How I can generate the documentation of this web syte project ??
Editor
Apr 23, 2013 at 8:12 PM
Its not enough just to modify the Web.config file. It must be able to find the web code provider assembly. That can be accomplished most easily by placing it in your project's .\bin folder as noted in the documentation. Also, since you appear to be using VS 2012, you'll need to update the compiler version value in the providerOptioon element to either "v4.0" or "v4.5" depending on which version of the framework you are targeting.

The VB.NET code provider doesn't always import all of the necessary namespaces either. As noted in the Usage Notes and Known Issues section of the documentation, you may need to add extra "/imports:XXXX" options in the compilerOptions attribute to define the missing namespaces. The other option is to add the necessary Imports statements to the code if they aren't there already.

Also, please note that this project has been discontinued and may not be monitored as frequently. For future questions concerning Sandcastle or SHFB, post them over on the Sandcastle Help File Builder project's discussion page. Thanks.

Eric