2012-02-04 7 views
1

hereからFacebook C#SDK 5.4.1をダウンロードしました。Facebook C#SDKキャンバスサンプルを開くことができません。 IIS 6?

私は、うまく動作するCS-WinFormsソリューションを使用しました。私は今CS-Canvas-AspNetWebForms-JsSdkCS-Canvas-AspNetWebForms-WithoutJsSdkソリューションを開くしようとしているが、私はVS 2010で次のエラーを取得する:

D:\VSProjects\...\CS-Canvas-AspNetWebForms-WithoutJsSdk.csproj : error : 
The Web Application Project CS-Canvas-AspNetWebForms-WithoutJsSdk is configured 
to use IIS. To access local IIS Web sites, you must install the following IIS 
components: 

    IIS 6 Metabase and IIS 6 Configuration Compatibility 
    ASP.NET 

In addition, you must run Visual Studio in the context of an administrator account. 

私は、Windows 7(64ビット)上で実行していますので、私は本当にIISをインストールする必要はありません6.私は他のすべてのために使用するビルトインのVS Cassini Webサーバーを使ってこのソリューションを実行できますか?

UPDATE:

どうやら私は手で.csprojファイルを編集する必要があります。内容を以下に示す。誰かが私が必要とする変更を教えてもらえますか?

<?xml version="1.0" encoding="utf-8"?> 
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> 
    <PropertyGroup> 
    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> 
    <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> 
    <ProductVersion> 
    </ProductVersion> 
    <SchemaVersion>2.0</SchemaVersion> 
    <ProjectGuid>{7A74691E-66DF-4DAA-B9A7-D5428E13B5A9}</ProjectGuid> 
    <ProjectTypeGuids>{349c5851-65df-11da-9384-00065b846f21};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}</ProjectTypeGuids> 
    <OutputType>Library</OutputType> 
    <AppDesignerFolder>Properties</AppDesignerFolder> 
    <RootNamespace>CS_Canvas_AspNetWebForms_JsSdk</RootNamespace> 
    <AssemblyName>CS-Canvas-AspNetWebForms-JsSdk</AssemblyName> 
    <TargetFrameworkVersion>v4.0</TargetFrameworkVersion> 
    <UseIISExpress>true</UseIISExpress> 
    </PropertyGroup> 
    <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> 
    <DebugSymbols>true</DebugSymbols> 
    <DebugType>full</DebugType> 
    <Optimize>false</Optimize> 
    <OutputPath>bin\</OutputPath> 
    <DefineConstants>DEBUG;TRACE</DefineConstants> 
    <ErrorReport>prompt</ErrorReport> 
    <WarningLevel>4</WarningLevel> 
    </PropertyGroup> 
    <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> 
    <DebugType>pdbonly</DebugType> 
    <Optimize>true</Optimize> 
    <OutputPath>bin\</OutputPath> 
    <DefineConstants>TRACE</DefineConstants> 
    <ErrorReport>prompt</ErrorReport> 
    <WarningLevel>4</WarningLevel> 
    </PropertyGroup> 
    <ItemGroup> 
    <Reference Include="Facebook"> 
     <HintPath>..\..\Bin\Release\net40-client\Facebook.dll</HintPath> 
    </Reference> 
    <Reference Include="Facebook.Web"> 
     <HintPath>..\..\Bin\Release\net40\Facebook.Web.dll</HintPath> 
    </Reference> 
    <Reference Include="Microsoft.CSharp" /> 
    <Reference Include="System.Web.DynamicData" /> 
    <Reference Include="System.Web.Entity" /> 
    <Reference Include="System.Web.ApplicationServices" /> 
    <Reference Include="System" /> 
    <Reference Include="System.Data" /> 
    <Reference Include="System.Core" /> 
    <Reference Include="System.Data.DataSetExtensions" /> 
    <Reference Include="System.Web.Extensions" /> 
    <Reference Include="System.Xml.Linq" /> 
    <Reference Include="System.Drawing" /> 
    <Reference Include="System.Web" /> 
    <Reference Include="System.Xml" /> 
    <Reference Include="System.Configuration" /> 
    <Reference Include="System.Web.Services" /> 
    <Reference Include="System.EnterpriseServices" /> 
    </ItemGroup> 
    <ItemGroup> 
    <Content Include="Default.aspx" /> 
    <Content Include="Facebook\Default.aspx" /> 
    <Content Include="Facebook\FacebookLoginControl.ascx" /> 
    <Content Include="Scripts\jquery-1.6.2-vsdoc.js" /> 
    <Content Include="Scripts\jquery-1.6.2.js" /> 
    <Content Include="Scripts\jquery-1.6.2.min.js" /> 
    <Content Include="Web.config" /> 
    <Content Include="Web.Debug.config"> 
     <DependentUpon>Web.config</DependentUpon> 
    </Content> 
    <Content Include="Web.Release.config"> 
     <DependentUpon>Web.config</DependentUpon> 
    </Content> 
    </ItemGroup> 
    <ItemGroup> 
    <Compile Include="Default.aspx.cs"> 
     <DependentUpon>Default.aspx</DependentUpon> 
     <SubType>ASPXCodeBehind</SubType> 
    </Compile> 
    <Compile Include="Default.aspx.designer.cs"> 
     <DependentUpon>Default.aspx</DependentUpon> 
    </Compile> 
    <Compile Include="Facebook\Default.aspx.cs"> 
     <DependentUpon>Default.aspx</DependentUpon> 
     <SubType>ASPXCodeBehind</SubType> 
    </Compile> 
    <Compile Include="Facebook\Default.aspx.designer.cs"> 
     <DependentUpon>Default.aspx</DependentUpon> 
    </Compile> 
    <Compile Include="Facebook\FacebookLoginControl.ascx.cs"> 
     <DependentUpon>FacebookLoginControl.ascx</DependentUpon> 
     <SubType>ASPXCodeBehind</SubType> 
    </Compile> 
    <Compile Include="Facebook\FacebookLoginControl.ascx.designer.cs"> 
     <DependentUpon>FacebookLoginControl.ascx</DependentUpon> 
    </Compile> 
    <Compile Include="Properties\AssemblyInfo.cs" /> 
    </ItemGroup> 
    <ItemGroup> 
    <Content Include="packages.config" /> 
    </ItemGroup> 
    <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" /> 
    <Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets" /> 
    <ProjectExtensions> 
    <VisualStudio> 
     <FlavorProperties GUID="{349c5851-65df-11da-9384-00065b846f21}"> 
     <WebProjectProperties> 
      <UseIIS>True</UseIIS> 
      <AutoAssignPort>True</AutoAssignPort> 
      <DevelopmentServerPort>1220</DevelopmentServerPort> 
      <DevelopmentServerVPath>/</DevelopmentServerVPath> 
      <IISUrl>http://localhost:1220/</IISUrl> 
      <NTLMAuthentication>False</NTLMAuthentication> 
      <UseCustomServer>False</UseCustomServer> 
      <CustomServerUrl> 
      </CustomServerUrl> 
      <SaveServerSettingsInUserFile>False</SaveServerSettingsInUserFile> 
     </WebProjectProperties> 
     </FlavorProperties> 
    </VisualStudio> 
    </ProjectExtensions> 
    <!-- To modify your build process, add your task inside one of the targets below and uncomment it. 
     Other similar extension points exist, see Microsoft.Common.targets. 
    <Target Name="BeforeBuild"> 
    </Target> 
    <Target Name="AfterBuild"> 
    </Target> 
    --> 
</Project> 

答えて

0

プロジェクトを右クリックして、ウェブサーバー設定をcassiniを使用するように変更します。プロジェクトをロードできない場合は、.csprojファイルを手作業で編集し、Webサーバーの設定を手作業で変更する必要があります。

+0

いいえ、私は全くプロジェクトを読み込むことができません。オリジナルの質問への私の更新を見てください。私はどのような編集をする必要があるのか​​教えていただけますか? – njr101

+0

私はあなたに直接手渡すつもりはありません。これは学ぶ絶好の機会です。 cassini設定で新しいプロジェクトを作成し、保存します。 xmlを開いて見た目を確認し、悪い.csprojにコピーします。ハッピーコーディング! _hint:それはProjectExtensionsセクションにあります_ – DMCS

+0

ありがとう、私はそれを見つけるでしょう;) – njr101

関連する問題