Groups > Application developers > Community Server Source discussions > Re: Community Server 2.1 SDK Errors in VS 2005 - At Least One Problem With Line 23 of Web.Config




Community Server 2.1 SDK Errors in VS 2005 - At Least One
Problem With Line 23 of Web.Config

Community Server 2.1 SDK Errors in VS 2005 - At Least One Problem With Line 23 of Web.Config
Sun, 10 Sep 2006 19:35:13 +000
I have followed the directions on
http://communityserver.org/forums/thread/522621.aspx to set up the SDK in VS
2005 however when I open the project I receive a large amount of errors.

For example the root default.aspx page opens with 85 errors. The first of which
is:

Error 1 C:\Documents and Settings\Owner\My
Documents\Projects\CS_2.1.60809.935_SDK\CS_2.1.60809.935_SDK\source\Web\Installe
r\default.aspx: ASP.NET runtime error: Could not load file or assembly
'CommunityServer.Components' or one of its dependencies. The system cannot find
the file specified. (C:\Documents and Settings\Owner\My
Documents\Projects\CS_2.1.60809.935_SDK\CS_2.1.60809.935_SDK\source\Web\web.conf
ig line 23) C:\Documents and Settings\Owner\My
Documents\Projects\CS_2.1.60809.935_SDK\CS_2.1.60809.935_SDK\source\Web\Installe
r\default.aspx 1 1 CommunityServerWeb20 (Internal)


Partial web.config file contents

  <!-- Standard Application Settings -->
  <compilation defaultLanguage="c#" debug="false" />

  <!--***** NOTE:  Use this page version in .Net 2.0 *****-->
  <!--***** NOTE:  Line Below is Line 23 *****-->
  <pages validateRequest="false"
enableEventValidation="false" autoEventWireup="true"
pageBaseType="CommunityServer.Components.CSPage,
CommunityServer.Components"/>


Could you please advise me on how to remove this error?
Post Reply
Re: Community Server 2.1 SDK Errors in VS 2005 - At Least One Problem With Line 23 of Web.Config
Sun, 10 Sep 2006 22:37:27 +000
So have you set up a virtual directory in Internet Information Server to point
to the "web" folder in your My Documents directory.... ?

If not, you should.

That "guide" that is on the page looks totally incomplete.

Here's what I do:

1) Set up the CS database as per the HOW TO SETUP DB.TXT file..

2) Extract the CS SDK zip to a directory, say c:\scott\cs\

3) Open the command prompt and navigate to
c:\windows\microsoft.net\framework\2.0.xx

4) Run aspnet_regiis -i to install the required .NET files for Internet
Information Server

5) Start IIS and map a virtual directory named "site name" (e.g. CS)
to c:\scott\cs\web\ and give it appropriate permissions 

6) Grant ASPNET user read/write access to Photos/ directory. 

7) Edit the web.config in the web/ directory point to the SQL Server database
I've set up

 I'm sure this info is mentioned elsewhere on this site though. If you are
missing the virtual root or your web.config isn't set up correctly your site
won't work.
Post Reply
about | contact