page 1 of 1
Comments: 0 | Views: 417

After going through a couple of the steps (1 till 7), I have two questions,

 

In which web.config file do you have to put the information stated at step 5 and could someone help me with the following error, I can't seem to be able to get past step 7:

13:16:21 dinsdag 20 oktober 2009: [Begin Samples Configuration]

13:16:21 dinsdag 20 oktober 2009: [Info] ConfigSamplesDll_DoTasks: Starting

13:16:21 dinsdag 20 oktober 2009: [Info] Config_NETSDK_Detect: .NET Framework SDK installation (detecting): SOFTWARE\Microsoft\.NETFramework

13:16:21 dinsdag 20 oktober 2009: [Info] Config_NETSDK_Detect: .NET Framework SDK installation (found): SOFTWARE\Microsoft\.NETFramework

13:16:21 dinsdag 20 oktober 2009: [Info] ConfigSamplesDll_DoTasksWithGUI: Starting

13:16:27 dinsdag 20 oktober 2009: [Info] Config_ASPNET_Detect: ASP.NET installation (detecting): IIS://localhost/W3SVC

13:16:27 dinsdag 20 oktober 2009: [Info] Config_ASPNET_Detect: ASP.NET installation (found): IIS://localhost/W3SVC

13:16:27 dinsdag 20 oktober 2009: [Info] Config_SSE_DNLD_Detect: SQL Express service instance (detecting): MSSQL$SQLEXPRESS

13:16:30 dinsdag 20 oktober 2009: [Info] Config_SSE_DNLD_Detect: SQL Express service instance (found): MSSQL$SQLEXPRESS

13:16:30 dinsdag 20 oktober 2009: [Info] Config_SSE_INST_Detect: SQL Express service instance (detecting): MSSQL$SQLEXPRESS

13:16:30 dinsdag 20 oktober 2009: [Info] Config_SSE_INST_Detect: SQL Express service instance (found): MSSQL$SQLEXPRESS

13:16:30 dinsdag 20 oktober 2009: [Info] Config_IIS_Detect: IIS (Internet Information Services) installation (detecting): IIS://localhost/w3svc/1/root,IIS://localhost/w3svc/AppPools

13:16:30 dinsdag 20 oktober 2009: [Info] Config_IIS_Detect: IIS (Internet Information Services) installation (found): IIS://localhost/w3svc/1/root,IIS://localhost/w3svc/AppPools

13:16:31 dinsdag 20 oktober 2009: [Info] Config_QUICKSTARTDB_Detect: Quickstart Database and User Registration (detecting)

13:16:32 dinsdag 20 oktober 2009: [Info] Config_QUICKSTARTDB_Detect: Quickstart Database and User Registration (found)

13:16:32 dinsdag 20 oktober 2009: [Info] Config_QUICKSTART_Detect: Quickstart Samples Previous Build (detecting): SOFTWARE\Microsoft\.NETFramework\sdkQuickStartSetupRun

13:16:33 dinsdag 20 oktober 2009: [Info] Config_QUICKSTART_Detect: Quickstart Samples Previous Build (not found)

13:16:33 dinsdag 20 oktober 2009: [Info] Config_NETSDK_Detect: .NET Framework SDK installation (detecting): SOFTWARE\Microsoft\.NETFramework

13:16:33 dinsdag 20 oktober 2009: [Info] Config_NETSDK_Detect: .NET Framework SDK installation (found): SOFTWARE\Microsoft\.NETFramework

13:16:36 dinsdag 20 oktober 2009: [Info] Config_ASPNET_Install: ASP.NET QuickStart registration (installing)

13:16:36 dinsdag 20 oktober 2009: [Info] Config_ASPNET_Install: ASP.NET QuickStart registration (skipping. Note specify -enable_aspnet on the command line to force enabling ASP.NET)

13:16:36 dinsdag 20 oktober 2009: [Pass] Config_ASPNET_Install: ASP.NET QuickStart registration (installed)

13:16:37 dinsdag 20 oktober 2009: [Info] Config_IIS_Install: IIS (Internet Information Services) Virtual Directory Registration (installing)

13:16:37 dinsdag 20 oktober 2009: [Info] Config_IIS_Install: Creating IIS QuickStart application pool: QuickStartV20AppPool

13:16:37 dinsdag 20 oktober 2009: [Info] Config_IIS_Install: Skipping IIS QuickStart application pool creation (IIS 6 not detected): QuickStartV20AppPool

13:16:37 dinsdag 20 oktober 2009: [Info] Config_IIS_Install: Removing IIS Virtual Directories: QuickStartv20

13:16:37 dinsdag 20 oktober 2009: [Pass] Config_IIS_Install: Removed IIS virtual directory: QuickStartv20

13:16:37 dinsdag 20 oktober 2009: [Info] Config_IIS_Install: Creating IIS Virtual Directories: QuickStartv20

13:16:38 dinsdag 20 oktober 2009: [Fail] Config_IIS_Install: IIS (Internet Information Services) Virtual Directory Registration (failed): [Fail] Config_IIS_Install: Could not create IIS virtual directory QuickStartv20

13:16:38 dinsdag 20 oktober 2009: [Begin Samples Rollback]


All steps btw are:
  1. Install and register ASP.NET with IIS
    1. From the SDK command prompt run aspnet_regiis -ir -enable
  2. Optional Install SQL Server Express or SQL Server 2005.
  3. Install the Quickstart Sample databases. From the SDK command prompt change to the SDK\v2.0\samples\setup folder and run the following commands
    1. sqlcmd -E -S (local)\SQLExpress -i InstPubs.sql
    2. sqlcmd -E -S (local)\SQLExpress -i InstNwnd.sql
    3. sqlcmd -E -S (local)\SQLExpress -i InstGrocer.sql
    4. sqlcmd -E -S (local)\SQLExpress -i InstContacts.sql
    5. sqlcmd -E -S (local)\SQLExpress -i InstPhotos.sql
    6. sqlcmd -E -S (local)\SQLExpress -i Inst_FileSystemSQL.sql
    7. aspnet_regsql.exe -S (local)\SQLExpress -E -A all
  4. Grant the ASP.NET User account access to the databases. On Windows Server 2003 the ASP.NET process runs under NT AUTHORITY\NETWORK SERVICE. In all other cases it runs under MACHINENAME\ASPNET.
    1. sqlcmd -E -S (local)\SQLExpress -Q "sp_grantlogin <ASP.NET User Account>"
    2. sqlcmd -E -S (local)\SQLExpress -d Pubs -Q "sp_grantdbaccess <ASP.NET User Account>"
    3. sqlcmd -E -S (local)\SQLExpress -d Pubs -Q "sp_addrolemember 'db_owner', <ASP.NET User Account>"
    4. sqlcmd -E -S (local)\SQLExpress -d NorthWind -Q "sp_grantdbaccess <ASP.NET User Account>"
    5. sqlcmd -E -S (local)\SQLExpress -d NorthWind -Q "sp_addrolemember 'db_owner', <ASP.NET User Account>"
    6. sqlcmd -E -S (local)\SQLExpress -d GrocerToGo -Q "sp_grantdbaccess <ASP.NET User Account>"
    7. sqlcmd -E -S (local)\SQLExpress -d GrocerToGo -Q "sp_addrolemember 'db_owner', <ASP.NET User Account>"
    8. sqlcmd -E -S (local)\SQLExpress -d Contacts -Q "sp_grantdbaccess <ASP.NET User Account>"
    9. sqlcmd -E -S (local)\SQLExpress -d Contacts -Q "sp_addrolemember 'db_owner', <ASP.NET User Account>"
    10. sqlcmd -E -S (local)\SQLExpress -d Photos -Q "sp_grantdbaccess <ASP.NET User Account>"
    11. sqlcmd -E -S (local)\SQLExpress -d Photos -Q "sp_addrolemember 'db_owner', <ASP.NET User Account>"
    12. sqlcmd -E -S (local)\SQLExpress -d FileSystemSQL -Q "sp_grantdbaccess <ASP.NET User Account>"
    13. sqlcmd -E -S (local)\SQLExpress -d FileSystemSQL -Q "sp_addrolemember 'db_owner', <ASP.NET User Account>"
    14. sqlcmd -E -S (local)\SQLExpress -d ASPNETDB -Q "sp_grantdbaccess <ASP.NET User Account>"
    15. sqlcmd -E -S (local)\SQLExpress -d ASPNETDB -Q "sp_addrolemember 'db_owner', <ASP.NET User Account>"
  5. Modify the Web.config file to point to the location that the QuickStart are installed to:
. . .
<sourceview>
     <add key="root" value="C:\Program Files\Microsoft.NET\SDK\v2.0\QuickStart" />
</sourceview>
. . .
If you are going to host the QuickStart to enable users from other machines to view and run the QuickStart, set the RemoteHosted appSetting key value to true in the web.config file. This will prevent your computer from hosting some samples that were not designed for use by un-trusted sources.
<appSettings>
     <add key="RemoteHost" value="true" />
</appSettings>
  1. If you installed SQL Server 2005 instead of SQL Express you will need to update the connection string used by all samples. Search the SDK\v2.0\QuickStart\ directory and replace all instances of "(local)\SQLExpress" with the connection string needed for your instance of SQL.
  2. Install all SDK Quickstart Virtual Directories in IIS. The Setup.xml installed to the SDK\v2.0\Samples\setup folder lists all of the SDK Quickstart virtual directories that need to be installed. The SDK Quickstart configuration wizard defaults to installing the virtual directories to the QuickstartV20 virtual directory path.
  3. If you are running IIS 6.0 you should create a separate unique application pool for the SDK Quickstart samples. The SDK Quickstart Configuration Wizard creates the "QuickstartV20AppPool" by default. Associate this application pool with the QuickstartV20 virtual directory.
  4. Set all appropriate security permission on the application pool that you created and the Quickstart Virtual directories to adequately protect your IIS server from attackers.
  5. After creating all Virtual Directories run "aspnet_regiis -s W3SVC/1/ROOT/QuickstartV20" from the SDK Command prompt to register the asp.net 2.0 script map for the Quickstart Virtual Directory.
  6. Optional - Build all of the Quickstart samples in the sdk\v2.0\Quickstart\ folder by calling msbuild on each sample solution file from within the SDK command prompt.

page 1 of 1
Comments: 0 | Views: 417
Microsoft Communities