metabase

How do you backup IIS's metabase in C#?

梦想与她 提交于 2019-12-12 00:54:29
问题 exact code will be helpful. I assume the DirectoryServices namespace does it but I can't find the method that does it. I need actual C# code. All the samples I found so far are VB or VBScript. The C# examples I found are for reading/setting ADSI properties. A command like backup seems to have a certain .NET syntax which I am not clear how to use. In VB there's a straightforward backup command. Need an equivalent in .NET. 回答1: You'll need to use ADSI objects. The IIsComputer.Backup method is

How to I obtain an IIS Virtual DIrectory name from an IIS metabase path in c++

China☆狼群 提交于 2019-12-11 17:54:32
问题 I have the following metabase path: /lm/w3svc/1/root/foo which I can see in IIS manager maps to the virtual directory: Default Web Site/foo How can I determine the virtual directory name from the metabase path in c++? 回答1: HRESULT CAeXMSAdminBasePtr::GetVirtualDirectoryName( LPCWSTR szMetaPath, LPWSTR szVirtualDirectoryName, DWORD dwVirtualDirectoryNameLen ) { HRESULT hr = S_OK; METADATA_RECORD mdRecord; memset(&mdRecord, 0, sizeof(METADATA_RECORD)); METADATA_HANDLE hMetaData = NULL;

Programatically removing etag suffix (change number) from the metabase IIS6

霸气de小男生 提交于 2019-12-10 20:16:25
问题 IIS 6.0 generates eTag values in the format of "hash:changenumber". The changenumber goes up every time IIS resets, so your eTag is only valid for the lifetime of your IIS process. Restart, number goes up, hash:changenumber != hash:changenumber+1. The fix for this is to hard-code the changenumber, which is possible using the Metabase Explorer, a .NET utility for editing the metabase, or by editing the XML file when the IIS services are stopped. I want to do this programmatically, with the

Where is the metabase key for my IIS7 web site?

强颜欢笑 提交于 2019-12-07 12:16:45
问题 I'm trying to set up the automated (nightly) installation of my web site setup project. I can specify some install-time values on the command line; in particular, adding a TARGETSITE value defines the web site to which my new deployment will go. How do I find the metabase key to my web site (eg. "/LM/W3SVC/213548468") in an IIS7 installation? (I do have IIS6 compatibility all set up, but I can't find anything about my site in the metabase.xml file.) Also, since the web deployment setup

Where is the metabase key for my IIS7 web site?

北城以北 提交于 2019-12-05 23:10:27
I'm trying to set up the automated (nightly) installation of my web site setup project. I can specify some install-time values on the command line; in particular, adding a TARGETSITE value defines the web site to which my new deployment will go. How do I find the metabase key to my web site (eg. "/LM/W3SVC/213548468") in an IIS7 installation? (I do have IIS6 compatibility all set up, but I can't find anything about my site in the metabase.xml file.) Also, since the web deployment setup projects are obviously outdated mechanisms (I guess they were too easy to use?), does anyone have a better

How to safetly export all IIS settings from one server to another?

前提是你 提交于 2019-12-05 00:39:45
问题 I am trying to build a virtual machine that clones one of the servers used in production instances of our webapp so that we can do deployment testing on it. I have gotten all the necessary files over, IIS installed, the database up and running. To my eye all that remains is to copy all the IIS settings from a production environment to the virtual machine. In the past I have in similar situations simply backed up the metabase, found the file, moved it to the new machine, and restored. This is

Is there a .NET Library or API to interact with/Edit the IIS Metabase?

旧巷老猫 提交于 2019-12-04 09:59:16
...or am I stuck rolling my own "XML chopping" functions. I'd like to create a small tasktray app so I can quickly re-point a Virual Directory to one of several of folders on my harddisk. Bit of background: I have 3 different svn branches of our code base on my dev machine. Current Production Branch ( C:\Projects\....\branches\Prod\ ) Next Release Canidate Branch ( C:\Projects\....\branches\RCX\ ) Trunk ( C:\Projects\....\trunk\ ) Our app integrates with a 3rd party CMS which I've installed at http://localhost/cms/ In order to work our app has to live at the same root directory. so: http:/

IIS: How to get the Metabase path?

≯℡__Kan透↙ 提交于 2019-12-04 08:57:39
问题 i'm trying to get the list of mime types known to an IIS server (which you can see was asked and and answered by me 2 years ago). The copy-pasted answer involves: GetObject("IIS://LocalHost/MimeMap") msdn GetObject("IIS://localhost/mimemap") KB246068 GetObject("IIS://localhost/MimeMap") Scott Hanselman's Blog new DirectoryEntry("IIS://Localhost/MimeMap")) Stack Overflow new DirectoryEntry("IIS://Localhost/MimeMap")) Stack Overflow New DirectoryServices.DirectoryEntry("IIS://localhost/MimeMap"

IIS: How to get the Metabase path?

这一生的挚爱 提交于 2019-12-03 00:33:06
i'm trying to get the list of mime types known to an IIS server ( which you can see was asked and and answered by me 2 years ago ). The copy-pasted answer involves: GetObject("IIS://LocalHost/MimeMap") msdn GetObject("IIS://localhost/mimemap") KB246068 GetObject("IIS://localhost/MimeMap") Scott Hanselman's Blog new DirectoryEntry("IIS://Localhost/MimeMap")) Stack Overflow new DirectoryEntry("IIS://Localhost/MimeMap")) Stack Overflow New DirectoryServices.DirectoryEntry("IIS://localhost/MimeMap") Velocity Reviews You get the idea. Everyone agrees that you use a magical path iis://localhost

metabse 集成 presto 数据分析

一曲冷凌霜 提交于 2019-12-01 07:28:27
上一篇记录了怎么安装 presto 引擎集成 kudu 数据( presto 安装集成 kudu ),现在需要将数据展示出来,供其他的研究人员做数据分析,这里比较好用的工具是 metabse,可以集成多种数据库。 使用起来也是很方便的,这里使用docker安装:docker run -d -p 3000:3000 --name metabase metabase/metabase 然后我们可以在浏览器输出 ip:3000,可以获取这样的页面,然后我们添加数据源,这里我添加presto的kudu,其他的添加起来也很方便 其他的就是对表数据的操作了,然后好像没什么好细说的,什么聚合,过滤等等的数据操作 当然你也可以选择直接写sql的方式: 这里就简单介绍一下这个工具,希望产品自己可以用用这个工具,分析数据,导出数据,如果数据比较复杂那么维护一个大表吧,比如通过 presto 接入多个数据源,然后让使用方玩数据吧! 这里就简单介绍一下 metabse 的安装和使用,为把数据从 kudu -> presto -> metabse 画上句号! 未完待续! 参考: https://metabase.com/ 来源: oschina 链接: https://my.oschina.net/u/2277632/blog/3103311