myLittleTools Community Forum

Welcome Guest Search | Active Topics | Members | Log In | Register

Installation on IIS7, x64 Options · View
elian
Posted: Wednesday, April 20, 2011 1:06:25 PM

Rank: Administration
Groups: Administration

Joined: 9/11/2006
Posts: 605
Points: 649
Location: Enghien Les Bains, France
In order to have myLittleAdmin running on x64 server, do not forget to check that "Enable 32-Bit Applications" is set to true :

1. Right click on the Application Pool and select "Advanced Settings…"
2. Change the “Enable 32-bit Applications” to True
3. Click OK






On IIS7, you also need to check that your application pool setting "Load User Profile" is set to true.




orz_yuki
Posted: Tuesday, April 26, 2011 5:46:05 AM
Rank: Newbie
Groups: Member

Joined: 4/26/2011
Posts: 1
Points: 3
Location: Japan
I tried to publish a package to the Azure's WebRole.
It's seems to work fine.

"myLittleAdmin for SQL Azure" on Azure

This time, IIS settings made ​​in the code.

ServiceDefinition.csdef
Code:

<?xml version="1.0" encoding="utf-8"?>
<ServiceDefinition name="myLittleAdmin_for_SQL_Azure" xmlns="http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceDefinition">
  <WebRole name="myLittleAdmin4SQLAzure">
    <Runtime executionContext="elevated">
    </Runtime>
    <Sites>
      <Site name="Web">
        <Bindings>
          <Binding name="Endpoint1" endpointName="Endpoint1" />
        </Bindings>
      </Site>
    </Sites>
    <Endpoints>
      <InputEndpoint name="Endpoint1" protocol="http" port="80" />
    </Endpoints>
    <Imports>
      <Import moduleName="RemoteAccess" />
      <Import moduleName="RemoteForwarder" />
    </Imports>
    <ConfigurationSettings>
    </ConfigurationSettings>
  </WebRole>
</ServiceDefinition>


WebRole.cs
Code:

using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Web.Administration;
using Microsoft.Win32;
using Microsoft.WindowsAzure;
using Microsoft.WindowsAzure.Diagnostics;
using Microsoft.WindowsAzure.ServiceRuntime;

namespace myLittleAdmin_for_SQL_Azure_Beta
{
    public class WebRole : RoleEntryPoint
    {
        public override bool OnStart()
        {
            using (ServerManager serverManager = new ServerManager())
            {
                // Get SiteName of WebRole
                string siteName = RoleEnvironment.CurrentRoleInstance.Id + "_Web";
                // Get Appilcation by SiteName
                var application = serverManager.Sites[siteName].Applications.First();
                // Get Application Pool Name
                var applicationPoolName = application.ApplicationPoolName;
                // Get Application Pool by Application Pool Name
                var applicationPool = serverManager.ApplicationPools[applicationPoolName];
                // Enable 32-Bit Applications
                applicationPool.Enable32BitAppOnWin64 = true;
                // Load User Profile
                applicationPool.ProcessModel.LoadUserProfile =true;
                // Commit
                serverManager.CommitChanges();
            }

            return base.OnStart();
        }
    }
}

elian
Posted: Tuesday, April 26, 2011 7:56:31 AM

Rank: Administration
Groups: Administration

Joined: 9/11/2006
Posts: 605
Points: 649
Location: Enghien Les Bains, France
Excellent! Thanks a lot for this test.
Users browsing this topic
Guest


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Main Forum RSS : RSS

Theme created by myLittleTools
Powered by Yet Another Forum.net version 1.9.1.8 (NET v2.0) - 3/29/2008
Copyright © 2003-2008 Yet Another Forum.net. All rights reserved.