IIS Remote Administration dan IIS Database Manager

by rudysetyo 14 October 2009 08:23

Fitur baru dari IIS Manager dari beberapa jajaran IIS Extensions yang menarik adalah IIS Database Manager. Untuk menggunakan IIS Database Manager ini, operator harus memiliki akses ke IIS baik secara local maupun remote. Dengan bantuan IIS Remote Administration, IIS Database Manager pun dapat diakses dari remote area.

Tentunya kita harus mengenal terlebih dahulu fitur dari IIS Remote Administration yang sudah tidak asing lagi, beberapa diantaranya adalah saya kutip dari website iis.net:

  • Remotely manages IIS 7 from Windows 7, Windows Vista, Windows XP, and Windows Server 2003
  • Connects directly to a Web server, Web site, or Web application
  • Installs even when you don't have IIS 7.0 on the local machine
  • Allows multiple simultaneous connections
  • Supports delegated administration to Web sites and Web applications so owners can connect to and manage their own site directly
  • Familiar and easy to use administration tool
  • Supports HTTP over SSL for more secure management
  • Automatically downloads features to the local IIS Manager for Remote Administration console to match features newly installed on the remote Web server.

Pada point terakhir yaitu adanya download fitur otomatis pada lokal IIS Manager ketika ada penambahan Extensions baru pada Web Server, contohnya penambahan Extensions Database Manager, maka secara otomatis IIS Manager lokal akan melakukan download assembly untuk melakukan tugas Database Manager tersebut.

iisdbmanager

Sedangkan langkah-langkah untuk melakukan administrati IIS secara remote sangat mudah sekali, langkah pertama adalah download dan install IIS Manager versi 7.0 dari website Microsoft, pilih sesuai arsitektur OS anda.

32 bit (x86) - http://go.microsoft.com/?linkid=9655671
64 bit (x64) - http://go.microsoft.com/?linkid=9655672

Buka IIS Manager dan pilih koneksi yang sesuai dengan informasi dari Server Administrator, contoh disini adalah Connect to a Site…

remoteiis4

Kemudian masukkan nama server atau IP address dari server tersebut, bisa juga untuk menuliskan nama domain dari website yang akan kita remote administrasinya.

remoteiis5

Masukkan username beserta password untuk melakukan remote administrasi. Username dan password ini haruslah sudah diberikan hak akses ke website oleh Server Administrator.

remoteiis9

Pada langkah selanjutnya, akan ada konfirmasi Server Certificate, ini karena WMSVC service belum disertifikasi, namun tidak masalah, untuk sementara accept saja, klik connect.

remoteiis6

Jika koneksi remote berhasil, maka tampilan yang akan didapatkan yaitu permintaan untuk mengisikan nama website sebagai referensi kedepannya.

remoteiis7

Setelah tombol Finish ditekan, IIS Manager akan menawarkan add on assembly jika pada IIS Server ada penambahan Extensions, sebagai contohnya kita akan mencoba IIS Database Manager, maka pada IIS Manager akan muncul permintaan untuk menginstall add on Database Manager assembly.

iisdbmanager

IIS Remote Administration siap digunakan.

remoteiis8

 

Kemudian untuk fitur IIS Database Manager, setelah proses koneksi IIS Remote Administration berhasil, beserta instalasi add on tambahan yaitu Database Manager assembly, pilih Connection Strings pada bagian ASP.NET, Connection Strings ini tidak lain adalah Connection Strings yang ada pada web.config aplikasi ASP.NET.

Connection Strings

Buka fitur Connection Strings untuk memodifikasinya dan klik "Add...".

Add Connection Strings

Isi Connection Strings dengan informasi database.

Edit Connection Strings

Jika semua informasi database yang diisikan sudah benar, buka fitur Database Manager pada bagian Management.

Database Manager

IIS Manager 7.0 sekarang siap digunakan untuk mengolah database anda berdasarkan Connection Strings yang diisikan.

IIS DB Manager

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags:

Database | IT Pro | SQL Server

Changeable SyntaxHighlighter Theme on BlogEngine.NET using Extension

by rudysetyo 30 July 2009 18:00

Alex Gorbatchev create a great tool, write on JavaScript, to highlight our code on blog posting. But how to implement SyntaxHighlighter on every post in our BlogEngine.NET? There is a good Windows Live Writer Plugin by David Pokluda that implement SyntaxHighlighter into BlogEngine.NET using the Extension.

But the extension by Pokluda doesn’t have the ability to change the SyntaxHighlighter Theme, by today (30 July 2009), SyntaxHighlighter have 6 built in theme, please check at the web. Therefore i want to extend the extension by Pokluda to have an ability to change the theme.

Basically, to do this we need a setting for the extension, using ExtensionSettings class would be the answer.

// Code by Rudy Setyo Purnomo
// http://rudysetyo.it

ExtensionSettings settings = new ExtensionSettings(“SyntaxHighlighter”);

settings.AddParameter(
    "shTheme", 
    "shTheme", 
    50, 
    true, 
    true, 
    ParameterType.RadioGroup);
settings.AddValue(
    "shTheme", 
    new string[] 
        { 
            "shThemeDefault",
            "shThemeDjango", 
            "shThemeEmacs", 
            "shThemeFadeToGrey",
            "shThemeMidnight",
            "shThemeRDark"
        }, 
    "shThemeDefault");

settings.Help = "SyntaxHighlighter Theme";

ExtensionManager.ImportSettings(settings);

If you see the original code by Pokluda, you’ll see that the AddStylesheetToPage method only have one parameter, i add one more parameter to set the Theme.

// Code by Rudy Setyo Purnomo
// http://rudysetyo.it

private void AddStylesheetToPage(Page page, string theme)
{
    HtmlLink css = new HtmlLink();
    css.Attributes["type"] = "text/css";
    css.Attributes["rel"] = "stylesheet";
    css.Attributes["href"] = GetAbsoluteFromRelativeUrl("SyntaxHighlighter/Styles/shCore.css");
    page.Header.Controls.Add(css);

    css = new HtmlLink();
    css.Attributes["type"] = "text/css";
    css.Attributes["rel"] = "stylesheet";
    css.Attributes["href"] = GetAbsoluteFromRelativeUrl("SyntaxHighlighter/Styles/" + theme + ".css");
    page.Header.Controls.Add(css);
}

// and use this code to receive Theme name from setting parameter.

string theme = _settings.GetSingleValue("shTheme");

These screenshot is the setting screen to change the theme

setting

And the is the 6 theme:

shThemeDefault
shThemeDefault

shThemeDjango
shThemeDjango

shThemeEmacs
shThemeEmacs

shThemeFadeToGrey
shThemeFadeToGrey

shThemeMidnight
shThemeMidnight

shThemeRDark
shThemeRDark

You could find the full code here, put the SyntaxHighlighter.cs at App_Code/Extensions folder.

Currently rated 5.0 by 1 people

  • Currently 5/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags:

My product doesn't always compatible with my other products

by rudysetyo 03 July 2009 03:53

chrome

Currently rated 5.0 by 1 people

  • Currently 5/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags:

Common

ASP.NET Web Hosting in Indonesia, mau?

by rudysetyo 01 February 2009 20:26

If you want to try new erudeye server in Cyber Building, we have a trial...

Control Panel : http://my.erudeye.net
Username : demo
Password : demo2009

Wait for next update...

------- update 3 July 2009 -------

This demo account has been deleted, please signup on erudeye hosting website to use our server Laughing

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags: , , ,

Database | SQL Server | IT Pro

help me to debug my code...

by rudysetyo 26 January 2009 03:32
for (int x = 0; x < takeoutWord.Length; x++)
{
     for (int y=0;y < searchList.Count;y++)
     {
        if (takeoutWord[x].ToString() == searchList[y].ToString())
             searchList.RemoveAt(y);
     }
}


please... help me to find the BUG...

Currently rated 5.0 by 1 people

  • Currently 5/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags:

.NET Programming | Common

late binding Visual Studio 2008 to SQL Express

by rudysetyo 21 January 2009 19:03

Sebenarnya "late binding" tersebut bukan bahasa teknik, namun lebih ke arah trouble shooting untuk koneksi otomatis dari Visual Studio 2008 ke SQL Express yang kita install terpisah dari installer Visual Studio.

Seperti biasa saya kurang suka menggunakan SQL Express dalam development, setelah install Visual Studio, langkah selanjutnya yang saya lakukan biasanya adalah install SQL Server Developer Edition. Namun baru-baru ini saya memerlukan SQL Express untuk keperluan try and error berkaitan dengan rencana .NET Hosting.

Saya butuh SQL Express karena untuk mencoba connectionstring dengan style AttachDBFileName harus menggunakan SQL Express, otherwise akan muncul error message seperti berikut ini:

 

sqlerror

 

OK, seharusnya setelah melihat message tersebut saya install SQL Server Express 2005, tapi karena ingin sekalian mencoba SQL Server Express 2008, akhirnya saya install SQL Server Express 2008 x64 dengan default instance "SQLExpress". Done installing. Coba lagi add database untuk type attach ini, dan ternyata masih sama errornya karena memang butuh yang versi 2005. Akhirnya "terpaksa" install SQL Server Express 2005 x64 dengan instance "express2005". Done installing. Coba lagi... WHAT?! masih error... ternyata Visual Studio punya settingan untuk koneksi ke SQL Server dengan default instance which is "SQLExpress" sedangkan instance SQLExpress saya adalah SQL Server Express 2008. Untuk "binding" Visual Studio ke instance SQL Server yang kita inginkan, bisa dilakukan dengan cara melalui Tools>Options>Database Tools>Data Connections. Untuk lebih jelasnya, simak gambar berikut ini:

 

connectsql

 

Akhirnya setting instance disitu saya arahkan ke instance SQL Server Express 2005. Done!

Yang cukup anehnya adalah Visual Studio 2008 sudah SP1 namun tetap belum bisa terkoneksi dengan SQL Server Express 2008 :)

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags:

SQL Server | Visual Studio

erudeye is now Microsoft Certified Partner

by rudysetyo 07 January 2009 22:17

Lebih tepatnya "soon", karena untuk menjadi Microsoft Certified Partner ini selain memenuhi poin-poin kompetensi juga harus membayar sejumlah uang, tahap pembayaran itulah yang saat ini sedang di arrange.

partner announce

Seperti yang ada di gambar, poin yang diperlukan untuk menjadi Microsoft Certified Partner sudah terpenuhi 66 poin dari 50 poin yang diperlukan, tahap akhir untuk finalisasi partner ini adalah "Pay Now" di bagian paling atas.

Kompetensi yang diambil oleh erudeye pada program partner ini adalah application development, saat ini erudeye sudah mendapatkan kompetensi sebagai "Mobility Solutions Competency" dan kedepannya berpotensi untuk menjadi "Custom Development Solutions Competency".

partner announce2

Kompetensi yang erudeye pilih dalam partner program ini berbeda dengan kompetensi yang selama ini dikenal oleh teman-teman semua, yaitu Hosting Solutions. Namun walaupun kompetensi erudeye sekarang di application development solutions, erudeye tidak melupakan jatidiri sebagai hosting provider, erudeye tetap commit dengan menyediakan service application hosting, web hosting dan lebih khususnya adalah ASP.NET Hosting, bahkan dalam waktu dekat erudeye akan memasarkan server indonesia yang mudah-mudahan dalam waktu dekat bisa announce ke komunitas.

Terima kasih kepada partner dan customer yang telah meluangkan waktu untuk memberikan referensinya bagi erudeye dan juga team erudeye yang telah meluangkan waktu untuk semua pencapaian. InsyaAllah kedepannya erudeye bisa lebih banyak memberi andil untuk komunitas dan khususnya bangsa Indonesia.

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags:

Common

ASP.NET Membership and Role Provider using Oracle database part 1

by rudysetyo 19 November 2008 18:23

We all know that in ASP.NET 2.0 there are Built-In Providers to help developers to build a robust application.

  • Membership
  • Role management
  • Site map
  • Profile
  • Session state
  • Web events
  • Web Parts personalization
  • Protected configuration

What i want to write here is about Membership Provider and Role Provider,

Membership
System.Web.Security.ActiveDirectoryMembershipProvider
System.Web.Security.SqlMembershipProvider

Role management
System.Web.Security.AuthorizationStoreRoleProvider
System.Web.Security.SqlRoleProvider
System.Web.Security.WindowsTokenRoleProvider

 

OK, how about developer with Oracle database in their hand? Off course ASP.NET have their API for that, for example Membership Provider, according to http://msdn.microsoft.com/en-us/library/system.web.security.sqlmembershipprovider.aspx the Inheritance Hierarchy from System.Web.Security.SqlMembershipProvider is:

System.Object
  System.Configuration.Provider.ProviderBase
    System.Web.Security.MembershipProvider
      System.Web.Security.SqlMembershipProvider

From that information, we have enough material to build our Membership Provider, let say Erudeye.Web.Security.OracleMembershipProvider, the Inheritance Hierarchy maybe look like this:

System.Object
  System.Configuration.Provider.ProviderBase
    System.Web.Security.MembershipProvider
      Erudeye.Web.Security.OracleMembershipProvider

Done, we have a vision for the Provider, how about persistent data? Again, we "copy" SQL Server Provider schema structure from SqlMembershipProvider.

aspnetProviderSchema

The table above is specific to each Provider, some table are use by Membership and Role Provider. When we want to "copy" the database schema, bringing that picture only is not enough, we need to know exactly what information behind that, like data type, constraint and so on. The complete query from schema above could be found on C:\Windows\Microsoft.NET\Framework\v2.0.50727 with the .sql filetype. From that query, we could make our own Oracle schema, example for aspnet_Users table in Oracle way:

ora_aspnet_users

We already have the vision about Provider and the Persistent data is ready, what next on part 2? Build an Oracle Provider and Provider Helper for Oracle.

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags:

SQL Server error message no 1105 on hosting area

by rudysetyo 02 November 2008 10:02

Weekend ini saya habiskan untuk memindahkan 2 web applicationnya dari server hosting satu ke lainnya. Untuk memindahkan web application, yang paling crucial adalah memindahkan database, seperti yang sudah kita ketahui bahwa backup restore atau attach database di shared server bisa menimbulkan security thread karena semua object database yang di restore atau di attach akan ikut, termasuk role object.

Maka dari itu setiap hoster biasanya hanya memperbolehkan user untuk melakukan SSIS atau execute query hasil dump database lain. Microsoft team sudah menyediakan tool buat user maupun hoster, silahkan cek di codeplex.

OK, singkatnya setelah kita dump database menggunakan tool Database Publishing Wizard tersebut, langkah selanjutnya adalah run the query against database baru di server, hati-hati dengan query time out. Permasalahan muncul ketika running query tersebut, error message yang muncul adalah

"Could not allocate space for object '%.*ls' in database '%.*ls' because the '%.*ls' filegroup is full. Create disk space by deleting unneeded files, dropping objects in the filegroup, adding additional files to the filegroup, or setting autogrowth on for existing files in the filegroup."

Lebih lengkapnya ada di http://msdn.microsoft.com/en-us/library/aa258767(SQL.80).aspx. Setelah saya cek fisik, ternyata database nya memang di cap hanya sebesar 50MB.

space

Limit database ini ada ketika database di create, mungkin menggunakan SMO, dengan melihat kapasitas hosting yang dipilih. Disini package nya adalah 50 MB, so database yang di create juga sebesar itu pula.

Bisa diambil kesimpulan ketika akan melakukan dump database ke database yang baru, pastikan unrestricted file growth jika file database anda besar, contact your administrator to ensure that.

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags:

Database

My 4th Amazon.com order has shipped

by rudysetyo 20 October 2008 05:10

my order at Amazon.com finally shipped, this book is fresh from the oven and fresh from the C# "Chef", Anders Hejlsberg, the language’s architect, and his colleagues, Mads Torgersen, Scott Wiltamuth, and Peter Golde. So why i call it fresh from the oven? because it is, the book is published on October 18, 2008, yes, last saturday when most of you still enjoying the week end Laughing

More info about the book goes here.

Let's back to basic, learn the fundamental to hardening my foundation.

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags:

Book review

Copyright © Rudy Setyo Purnomo. Hosting by erudeye.

About the author

me Developer
Researcher
Entrepreneur
Juventini

Chat with me!