<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.iis.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:cs="http://blogs.iis.net/"><channel><title>Search results matching tag 'exception'</title><link>http://forums.iis.net/search/SearchResults.aspx?o=DateDescending&amp;tag=exception&amp;orTags=0</link><description>Search results matching tag 'exception'</description><dc:language>en-US</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>AccessViolationException</title><link>http://forums.iis.net/p/1157492/1903172.aspx#1903172</link><pubDate>Fri, 08 May 2009 20:36:48 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1903172</guid><dc:creator>alexeyb</dc:creator><cs:applicationKey>iis_7_-_aspnet_administration-41</cs:applicationKey><description>&lt;p&gt;&lt;b&gt;What can be the reason of the following exception in ASP.NET application under IIS 7? &lt;/b&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;b&gt;Exception:&lt;/b&gt; System.AccessViolationException&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Message:&lt;/b&gt; Attempted to read or write protected memory. This is often an indication that other memory has been corrupted.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;b&gt;StackTrace:&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp; in System.Web.Hosting.UnsafeIISMethods.MgdIsLastNotification(IntPtr pRequestContext, RequestNotificationStatus dwStatus)&lt;br /&gt;&amp;nbsp;&amp;nbsp; in System.Web.HttpRuntime.FinishRequestNotification(IIS7WorkerRequest wr, HttpContext context, RequestNotificationStatus&amp;amp; status)&lt;br /&gt;&amp;nbsp;&amp;nbsp; in System.Web.HttpRuntime.OnRequestNotificationCompletionHelper(IAsyncResult ar)&lt;br /&gt;&amp;nbsp;&amp;nbsp; in System.Web.HttpRuntime.OnRequestNotificationCompletion(IAsyncResult ar)&lt;br /&gt;&amp;nbsp;&amp;nbsp; in System.Web.HttpAsyncResult.Complete(Boolean synchronous, Object result, Exception error, RequestNotificationStatus status)&lt;br /&gt;&amp;nbsp;&amp;nbsp; in System.Web.HttpApplication.PipelineStepManager.ResumeSteps(Exception error)&lt;br /&gt;&amp;nbsp;&amp;nbsp; in System.Web.HttpApplication.ResumeStepsWaitCallback(Object error)&lt;br /&gt;&amp;nbsp;&amp;nbsp; in System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)&lt;br /&gt;&amp;nbsp;&amp;nbsp; in System.Threading._ThreadPoolWaitCallback.PerformWaitCallbackInternal(_ThreadPoolWaitCallback tpWaitCallBack)&lt;br /&gt;&amp;nbsp;&amp;nbsp; in System.Threading._ThreadPoolWaitCallback.PerformWaitCallback(Object state)&lt;/p&gt;</description></item><item><title>Fatal: StreamMustBeginWithSystemInfo</title><link>http://forums.iis.net/p/1155150/1892915.aspx#1892915</link><pubDate>Tue, 10 Feb 2009 14:40:31 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1892915</guid><dc:creator>Codeweavers</dc:creator><cs:applicationKey>web_deployment_tool_wdeploy-39</cs:applicationKey><description>&lt;p&gt;Hi,&lt;/p&gt;&lt;p&gt;&amp;nbsp;We&amp;#39;ve just upgraded our build server and our deployment script is now failing when trying to&amp;nbsp; archive a site. The line in question is&lt;/p&gt;&lt;p&gt;msdeploy -verb:sync -source:metakey=lm/w3svc/%metakey%,computerName=XXX,userName=XXX,password=XXX -dest:archivedir=%applicationArchivePath% &amp;gt; D:\codeweavers\archive\_temp\webdeploy_archive.log -skip:objectName=filePath,absolutePath=.*NhibernateLogs*&lt;/p&gt;&lt;p&gt;We&amp;#39;re getting the error: &lt;br /&gt;&lt;/p&gt;&lt;p&gt;Fatal:&amp;nbsp; StreamMustBeginWithSystemInfo&lt;br /&gt;Fatal count: 1&lt;/p&gt;&lt;p&gt;Here it is with the -debug attribute:&lt;/p&gt;&lt;p&gt;&amp;nbsp;Microsoft.Web.Deployment.DeploymentException: StreamMustBeginWithSystemInfo&lt;br /&gt;&amp;nbsp;&amp;nbsp; at Microsoft.Web.Deployment.PackageDeserializer..ctor(Stream stream)&lt;br /&gt;&amp;nbsp;&amp;nbsp; at Microsoft.Web.Deployment.AgentClientProvider.get_SerializationProviderInternal()&lt;br /&gt;&amp;nbsp;&amp;nbsp; at Microsoft.Web.Deployment.AgentClientProvider.get_KeyAttributeName()&lt;br /&gt;&amp;nbsp;&amp;nbsp; at Microsoft.Web.Deployment.DeploymentObject.EnsureValidAttributes()&lt;br /&gt;&amp;nbsp;&amp;nbsp; at Microsoft.Web.Deployment.DeploymentObject.get_IsValid()&lt;br /&gt;&amp;nbsp;&amp;nbsp; at Microsoft.Web.Deployment.DeploymentManager.CreateObject(String factoryName, String path, DeploymentObjectBaseConfig baseConfig)&lt;br /&gt;&amp;nbsp;&amp;nbsp; at MSDeploy.MSDeploy..ctor(Boolean debug, String[] args)&lt;br /&gt;&amp;nbsp;&amp;nbsp; at MSDeploy.MSDeploy.Main(String[] args)&lt;br /&gt;Fatal count: 1&lt;/p&gt;&lt;p&gt;&amp;nbsp;We&amp;#39;re using the new Beta 2 version of MSDeploy, on Windows Server 2008. The computer we&amp;#39;re backing up the site from is running IIS6 and hasn&amp;#39;t changed (i.e. was working before we changed the build server we&amp;#39;re running the command from). &lt;/p&gt;&lt;p&gt;&amp;nbsp;Any help would be greatly appreciated. &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Asp.net:SqlException</title><link>http://forums.iis.net/p/1153685/1887233.aspx#1887233</link><pubDate>Wed, 10 Dec 2008 23:54:35 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1887233</guid><dc:creator>Kassiuz</dc:creator><cs:applicationKey>aspnet_administration--1</cs:applicationKey><description>&lt;p&gt;&amp;nbsp;Hi, I&amp;#39;m new to all this IIS Thing and recently I&amp;#39;ve been working with Asp websites developed on Visual studio 2008, now when debugging the server on the development server included with the studio all goes well but when I try and access it on IIS I get an sqlException, the stack race returned is:&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;font face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif "&gt;&lt;b&gt;Exception Details: &lt;/b&gt;System.Data.SqlClient.SqlException: &lt;/font&gt;&lt;font&gt;&lt;font face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif "&gt;&lt;pre&gt;You do not have permission to perform this action&lt;/pre&gt;&lt;/font&gt;&lt;/font&gt;&lt;br /&gt;&lt;font face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif "&gt;&lt;br /&gt;

            &lt;b&gt;Source Error:&lt;/b&gt; &lt;br /&gt;&lt;br /&gt;

            &lt;table bgcolor="#ffffcc"&gt;
               &lt;tr&gt;
                  &lt;td&gt;
                      &lt;code&gt;
An unhandled exception was generated during the execution of the
current web request. Information regarding the origin and location of
the exception can be identified using the exception stack trace below.&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/font&gt; &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;font face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif "&gt;&lt;pre&gt;[SqlException (0x80131904): You do not have permission to perform this action.]&lt;br /&gt;   System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) +248&lt;br /&gt;   System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) +245&lt;br /&gt;   System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) +2811&lt;br /&gt;   System.Data.SqlClient.SqlInternalConnectionTds.CompleteLogin(Boolean enlistOK) +53&lt;br /&gt;   System.Data.SqlClient.SqlInternalConnectionTds.AttemptOneLogin(ServerInfo serverInfo, String newPassword, Boolean ignoreSniOpenTimeout, Int64 timerExpire, SqlConnection owningObject) +327&lt;br /&gt;   System.Data.SqlClient.SqlInternalConnectionTds.LoginNoFailover(String host, String newPassword, Boolean redirectedUserInstance, SqlConnection owningObject, SqlConnectionString connectionOptions, Int64 timerStart) +2445290&lt;br /&gt;   System.Data.SqlClient.SqlInternalConnectionTds.OpenLoginEnlist(SqlConnection owningObject, SqlConnectionString connectionOptions, String newPassword, Boolean redirectedUserInstance) +2445144&lt;br /&gt;   System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, Object providerInfo, String newPassword, SqlConnection owningObject, Boolean redirectedUserInstance) +354&lt;br /&gt;   System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection) +300&lt;br /&gt;   System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnection owningConnection, DbConnectionPool pool, DbConnectionOptions options) +54&lt;br /&gt;   System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject) +2414696&lt;br /&gt;   System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject) +92&lt;br /&gt;   System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection owningObject) +1657&lt;br /&gt;   System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection) +84&lt;br /&gt;   System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) +1645687&lt;br /&gt;   System.Data.SqlClient.SqlConnection.Open() +258&lt;br /&gt;   System.Web.DataAccess.SqlConnectionHolder.Open(HttpContext context, Boolean revertImpersonate) +82&lt;br /&gt;   System.Web.DataAccess.SqlConnectionHelper.GetConnection(String connectionString, Boolean revertImpersonation) +3980970&lt;br /&gt;   System.Web.Security.SqlMembershipProvider.GetPasswordWithFormat(String username, Boolean updateLastLoginActivityDate, Int32&amp;amp; status, String&amp;amp; password, Int32&amp;amp; passwordFormat, String&amp;amp; passwordSalt, Int32&amp;amp; failedPasswordAttemptCount, Int32&amp;amp; failedPasswordAnswerAttemptCount, Boolean&amp;amp; isApproved, DateTime&amp;amp; lastLoginDate, DateTime&amp;amp; lastActivityDate) +3048516&lt;br /&gt;   System.Web.Security.SqlMembershipProvider.CheckPassword(String username, String password, Boolean updateLastLoginActivityDate, Boolean failIfNotApproved, String&amp;amp; salt, Int32&amp;amp; passwordFormat) +213&lt;br /&gt;   System.Web.Security.SqlMembershipProvider.ValidateUser(String username, String password) +164&lt;br /&gt;   System.Web.UI.WebControls.Login.AuthenticateUsingMembershipProvider(AuthenticateEventArgs e) +75&lt;br /&gt;   System.Web.UI.WebControls.Login.AttemptLogin() +152&lt;br /&gt;   System.Web.UI.WebControls.Login.OnBubbleEvent(Object source, EventArgs e) +124&lt;br /&gt;   System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +70&lt;br /&gt;   System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +29&lt;/pre&gt;&lt;pre&gt;   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2981&lt;/pre&gt;&lt;pre&gt;&amp;nbsp;&lt;/pre&gt;&lt;pre&gt;this occurs when I try to log into the site, the principal policy is all managed by the site &lt;br /&gt;&lt;/pre&gt;&lt;/font&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Migrate IIS 6 apps to IIS 7</title><link>http://forums.iis.net/p/1152894/1884083.aspx#1884083</link><pubDate>Fri, 07 Nov 2008 15:11:59 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1884083</guid><dc:creator>miketech99</dc:creator><cs:applicationKey>web_deployment_tool_wdeploy-39</cs:applicationKey><description>&lt;p&gt;I have 6 web sites in IIS with applications.&amp;nbsp; How would I midgrate applications inside of web sites and the associated application pool? &lt;/p&gt;
&lt;p&gt;I tried using&lt;/p&gt;
&lt;p&gt;&amp;nbsp;msdeploy -verb:sync -source:appPoolConfig:=/LM/W3SVC/714808345/Root/_layouts dest:archivedir=c:\site3archive&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;C:\Program Files\IIS\Microsoft Web Deploy&amp;gt;msdeploy -verb:sync -source:appPoolCon&lt;br /&gt;fig=/LM/W3SVC/714808345/Root/_layouts -dest:archivedir=c:\site3archive&lt;/p&gt;
&lt;p&gt;&amp;nbsp;But it returns the following error&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;Fatal:&amp;nbsp; Object of type &amp;#39;appPoolConfig&amp;#39; and path &amp;#39;/LM/W3SVC/714808345/Root/_layou&lt;br /&gt;ts&amp;#39; cannot be created&lt;br /&gt;Fatal:&amp;nbsp; Unable to access the IIS configuration system. Please make sure you have&lt;br /&gt;&amp;nbsp;IIS 7.0 (or higher) installed.&lt;br /&gt;Fatal:&amp;nbsp; Retrieving the COM class factory for component with CLSID {2B72133B-3F5B&lt;br /&gt;-4602-8952-803546CE3344} failed due to the following error: 80040154.&lt;br /&gt;Fatal count: 1&lt;/p&gt;</description></item><item><title>UnexpectedEntryType</title><link>http://forums.iis.net/p/1151770/1879487.aspx#1879487</link><pubDate>Tue, 16 Sep 2008 12:40:50 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1879487</guid><dc:creator>jdevries81</dc:creator><cs:applicationKey>web_deployment_tool_wdeploy-39</cs:applicationKey><description>&lt;p&gt;
While running (Version: 1.0.6707.63): msdeploy.exe -verb:sync -source:webServer60,computerName=********,userName=********,password=******** -dest:webServer60 -failurelevel:Never -debug -skip:objectName=filePath,absolutePath=.*\.log -skip:objectName=filePath,absolutePath=.*thumbs\.db -skip:objectName=filePath,absolutePath=.*Cache\\.*
&lt;/p&gt;
&lt;p&gt;
I receive, I also received a similar UnexpectedEntryType exception (though with a different number) previously which I circumvented by adding an additional skip directive however I need these files. Do you have any insight as to what&amp;#39;s causing this and what I can do to get around it?
&lt;/p&gt;
&lt;pre&gt;
Fatal: Sync operation &amp;#39;Add&amp;#39; failed with destination filePath (C:\inetpub\vhosts\machine.com\httpdocs\a
ssets\0\28\40\492_1033.jpg.txt)
Debug: Microsoft.Web.Deployment.DeploymentException: UnexpectedEntryType &amp;#39;101&amp;#39;.
   at Microsoft.Web.Deployment.PackageDeserializer.SkipToPayloadId(Int32 payloadId)
   at Microsoft.Web.Deployment.PackageProvider.GetStream()
   at Microsoft.Web.Deployment.DeploymentObject.GetStream()
   at Microsoft.Web.Deployment.FilePathProvider.Add(DeploymentObject source)
   at Microsoft.Web.Deployment.DeploymentObject.AddChild(DeploymentObject source, Int32 position, DeploymentSync
Context syncContext)
Fatal: UnexpectedEntryType &amp;#39;101&amp;#39;.
Debug: Microsoft.Web.Deployment.DeploymentException: UnexpectedEntryType &amp;#39;101&amp;#39;.
   at Microsoft.Web.Deployment.PackageDeserializer.SkipToPayloadId(Int32 payloadId)
   at Microsoft.Web.Deployment.PackageProvider.GetStream()
   at Microsoft.Web.Deployment.DeploymentObject.GetStream()
   at Microsoft.Web.Deployment.FilePathProvider.Add(DeploymentObject source)
   at Microsoft.Web.Deployment.DeploymentObject.AddChild(DeploymentObject source, Int32 position, DeploymentSync
Context syncContext)
   at Microsoft.Web.Deployment.DeploymentSyncContext.HandleAddChild(DeploymentObject destParent, DeploymentObjec
t sourceObject, Int32 position)
   at Microsoft.Web.Deployment.DeploymentSyncContext.SyncChildrenNoOrder(DeploymentObject dest, DeploymentObject
 source)
   at Microsoft.Web.Deployment.DeploymentSyncContext.SyncChildren(DeploymentObject dest, DeploymentObject source
)
   at Microsoft.Web.Deployment.DeploymentSyncContext.HandleAddChild(DeploymentObject destParent, DeploymentObjec
t sourceObject, Int32 position)
   at Microsoft.Web.Deployment.DeploymentSyncContext.SyncChildrenNoOrder(DeploymentObject dest, DeploymentObject
 source)
   at Microsoft.Web.Deployment.DeploymentSyncContext.SyncChildren(DeploymentObject dest, DeploymentObject source
)
   at Microsoft.Web.Deployment.DeploymentSyncContext.HandleAddChild(DeploymentObject destParent, DeploymentObjec
t sourceObject, Int32 position)
   at Microsoft.Web.Deployment.DeploymentSyncContext.SyncChildrenNoOrder(DeploymentObject dest, DeploymentObject
 source)
   at Microsoft.Web.Deployment.DeploymentSyncContext.SyncChildren(DeploymentObject dest, DeploymentObject source
)
   at Microsoft.Web.Deployment.DeploymentSyncContext.HandleAddChild(DeploymentObject destParent, DeploymentObjec
t sourceObject, Int32 position)
   at Microsoft.Web.Deployment.DeploymentSyncContext.SyncChildrenNoOrder(DeploymentObject dest, DeploymentObject
 source)
   at Microsoft.Web.Deployment.DeploymentSyncContext.SyncChildren(DeploymentObject dest, DeploymentObject source
)
   at Microsoft.Web.Deployment.DeploymentSyncContext.HandleAddChild(DeploymentObject destParent, DeploymentObjec
t sourceObject, Int32 position)
   at Microsoft.Web.Deployment.DeploymentSyncContext.SyncChildrenNoOrder(DeploymentObject dest, DeploymentObject
 source)
   at Microsoft.Web.Deployment.DeploymentSyncContext.SyncChildren(DeploymentObject dest, DeploymentObject source
)
   at Microsoft.Web.Deployment.DeploymentSyncContext.SyncChildrenNoOrder(DeploymentObject dest, DeploymentObject
 source)
   at Microsoft.Web.Deployment.DeploymentSyncContext.SyncChildren(DeploymentObject dest, DeploymentObject source
)
   at Microsoft.Web.Deployment.DeploymentSyncContext.HandleAddChild(DeploymentObject destParent, DeploymentObjec
t sourceObject, Int32 position)
   at Microsoft.Web.Deployment.DeploymentSyncContext.SyncChildrenNoOrder(DeploymentObject dest, DeploymentObject
 source)
   at Microsoft.Web.Deployment.DeploymentSyncContext.SyncChildren(DeploymentObject dest, DeploymentObject source
)
   at Microsoft.Web.Deployment.DeploymentSyncContext.HandleAddChild(DeploymentObject destParent, DeploymentObjec
t sourceObject, Int32 position)
   at Microsoft.Web.Deployment.DeploymentSyncContext.SyncChildrenNoOrder(DeploymentObject dest, DeploymentObject
 source)
   at Microsoft.Web.Deployment.DeploymentSyncContext.SyncChildren(DeploymentObject dest, DeploymentObject source
)
   at Microsoft.Web.Deployment.DeploymentSyncContext.HandleAddChild(DeploymentObject destParent, DeploymentObjec
t sourceObject, Int32 position)
   at Microsoft.Web.Deployment.DeploymentSyncContext.SyncChildrenNoOrder(DeploymentObject dest, DeploymentObject
 source)
   at Microsoft.Web.Deployment.DeploymentSyncContext.SyncChildren(DeploymentObject dest, DeploymentObject source
)
   at Microsoft.Web.Deployment.DeploymentSyncContext.SyncChildrenNoOrder(DeploymentObject dest, DeploymentObject
 source)
   at Microsoft.Web.Deployment.DeploymentSyncContext.SyncChildren(DeploymentObject dest, DeploymentObject source
)
   at Microsoft.Web.Deployment.DeploymentSyncContext.ProcessSync(DeploymentObject destinationObject, DeploymentO
bject sourceObject)
   at Microsoft.Web.Deployment.AgentClientProvider.RemoteSourceSync(DeploymentObject destObject, DeploymentObjec
t sourceObject, DeploymentSyncConfig syncConfigOriginal)
   at Microsoft.Web.Deployment.DeploymentObject.Sync(DeploymentObject sourceObject, DeploymentSyncConfig syncCon
fig)
Change count: 79276
Fatal count: 2
&lt;/pre&gt;
&lt;p&gt;
Any assistance is greatly appreciated!
&lt;/p&gt;</description></item><item><title>Exception using MSDeploy getDependencies on a websiteID</title><link>http://forums.iis.net/p/1149837/1871591.aspx#1871591</link><pubDate>Thu, 12 Jun 2008 10:49:07 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1871591</guid><dc:creator>boss_west</dc:creator><cs:applicationKey>web_deployment_tool_wdeploy-39</cs:applicationKey><description>&lt;p&gt;&amp;nbsp;Hi everyone,&lt;/p&gt;&lt;p&gt;After installing .Net Framework 2.0 sp1 and MSdeploy on a IIS webserver host, i make a test using the following command line:&lt;/p&gt;&lt;p&gt;msdeploy -verb:getDependencies -source:metakey=lm/W3SVC/SiteId when SiteId is any Website Id found on IIS6.&lt;/p&gt;&lt;p&gt;I am getting the message : an item with the same key has already been added ....&lt;/p&gt;&lt;p&gt;with the -debug option i get further information like:&lt;/p&gt;&lt;p&gt;&amp;nbsp;System.ArgumentException: An item with the same key has already been added.&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)&lt;br /&gt;&amp;nbsp;&amp;nbsp; at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boo&lt;br /&gt;lean add)&lt;br /&gt;&amp;nbsp;&amp;nbsp; at Microsoft.Web.Deployment.ParseSystemInfo.ParseWebRestrictionList()&lt;br /&gt;&amp;nbsp;&amp;nbsp; at Microsoft.Web.Deployment.GetDependenciesMethod.Invoke(DeploymentObject tar&lt;br /&gt;getObject, Object[] parameters)&lt;br /&gt;&amp;nbsp;&amp;nbsp; at Microsoft.Web.Deployment.DeploymentObject.Invoke(String methodName, Object&lt;br /&gt;[] parameters)&lt;br /&gt;&amp;nbsp;&amp;nbsp; at MSDeploy.MSDeploy.Execute()&lt;br /&gt;&amp;nbsp;&amp;nbsp; at MSDeploy.MSDeploy.Main(String[] args)&lt;/p&gt;&lt;p&gt;the IIS6 server is hosting about 2700 website ...&amp;nbsp;&lt;/p&gt;&lt;p&gt;Any Idea about this?&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>ServerManager.OpenRemote and new application pools</title><link>http://forums.iis.net/p/1149274/1869145.aspx#1869145</link><pubDate>Thu, 08 May 2008 23:17:54 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1869145</guid><dc:creator>mmtom</dc:creator><cs:applicationKey>iis7_-_ui__remote_management-41</cs:applicationKey><description>&lt;p&gt;I&amp;#39;m working on an application that will allow my team to deploy new sites to all of our IIS7 servers from a remote ClickOnce application using MWA. &lt;/p&gt;
&lt;p&gt;&amp;nbsp;If I run the application from the target server (let&amp;#39;s say SERVER01), it works. I&amp;#39;m able to create my AD account for the application pool ID, create the app pool, set the ID, create the site, and add the site to the app pool. Here&amp;#39;s the code for the part that is failing:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;ServerManager IISAdmin = ServerManager.OpenRemote(ServerName);&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;ApplicationPool appPool = IISAdmin.ApplicationPools.Add(ApplicationName);&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;The first line works. It will connect to the remote server. When I attempt to add the new application pool, I get an exception that looks like this:&lt;/p&gt;
&lt;p&gt;Unable to cast COM object of type &amp;#39;System.__ComObject&amp;#39; to interface type &amp;#39;Microsoft.Web.Administration.Interop.IAppHostWritableAdminManager&amp;#39;. This operation failed because the QueryInterface call on the COM component for the interface with IID &amp;#39;{FA7660F6-7B3F-4237-A8BF-ED0AD0DCBBD9}&amp;#39; failed due to the following error: Interface not registered (Exception from HRESULT: 0x80040155). at Microsoft.Web.Administration.ConfigurationManager.CreateWritableAdminManager(WebConfigurationMap webConfigMap, String configPathToEdit, Boolean isAdminConfig) at Microsoft.Web.Administration.ConfigurationManager.CreateConfiguration(WebConfigurationMap configMap, String configPathToEdit, Boolean isAdminConfig) at Microsoft.Web.Administration.ConfigurationManager.GetConfiguration(String rawConfigurationPath, String cacheKey, Boolean isAdminConfig) at Microsoft.Web.Administration.ServerManager.get_ApplicationPoolsSection() at Microsoft.Web.Administration.ServerManager.get_ApplicationPools() at Rock.QL.WET.PushApp.IISConfig.ConfigureSite.CreateAppPool(String ServerName, String ApplicationName, String ServiceAccountName, String Password, String Domain) &lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;It works locally, but not remotely. SERVER01&amp;nbsp;is on&amp;nbsp;Server 2008, DESKTOP01&amp;nbsp;is on&amp;nbsp;Vista SP1. I&amp;#39;m running the application as an account that has admin rights on the remote server.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve been fighting with this for quite some time, so any help would be greatly appreciated.&lt;/p&gt;</description></item><item><title>Exceptions during migration from IIS6 to IIS7</title><link>http://forums.iis.net/p/1147956/1863506.aspx#1863506</link><pubDate>Tue, 12 Feb 2008 15:04:53 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1863506</guid><dc:creator>alexthissen</dc:creator><cs:applicationKey>web_deployment_tool_wdeploy-39</cs:applicationKey><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;For a customer of ours we have used the msdeploy tool to try and migrate 4000+ ASP websites running under IIS6 to IIS7. msdeploy and the remote agent were installed on the source IIS6. On the destination IIS7 machine (Windows Server 2008 RTM) we installed only the msdeploy and not the remote agent.&lt;/p&gt;
&lt;p&gt;Issue 1: &lt;br /&gt;From the destination IIS7 machine we ran the following command-line:&lt;br /&gt;&lt;strong&gt;msdeploy -whatif -verb:migrate -source:webServer60,targetName=http://192.168.0.167/MSDEPLOY -dest:webServer60&lt;br /&gt;&lt;/strong&gt;just like the document&amp;nbsp;&amp;quot;Migrating an IIS 6.0 Web Server Remotely&amp;quot; specifies. Running the command resulted in 2 stack dumps for an &amp;quot;Object reference not set to an instance of an object&amp;quot; NullReferenceException (stack dump is available if necessary). After that both the local msdeploy.exe and the remote wdagent.exe seemed to stop working. They were at 1.597 MB (1.6 GB) and 556 MB private memory respectively.&lt;br /&gt;Additional question: why do we need to specify the -dest:&lt;strong&gt;webServer60 &lt;/strong&gt;when migrating to IIS7? It seems counter-intuitive.&lt;/p&gt;
&lt;p&gt;Issue 2:&lt;br /&gt;Our next attempt was to migrate a single Web site by running:&lt;br /&gt;&lt;strong&gt;msdeploy -whatif -verb:migrate -source:metakey=lm/w3svc/1154,targetName=http://192.168.0.167/MSDEPLOY &lt;br /&gt;-dest:metakey=lm/w3svc/1154&lt;br /&gt;&lt;/strong&gt;This seemed to work, because the tool managed to complete succesfully. However, running the command for real (without -whatif) caused a fatal error:&lt;br /&gt;&lt;em&gt;Fatal: Sync operation &amp;#39;Update&amp;#39; failed with destination filePath (C:\inetpub\wwwroot\&lt;strong&gt;{removedsensitiveinfo}&lt;/strong&gt;\images\bedr_hoekje1.gif)&lt;br /&gt;Fatal: String was not recognized as a valid DateTime. &lt;br /&gt;&lt;/em&gt;First this happened on the SmartNav.htm file in the aspnet_client. Since we have an ASP website we removed the folder, which gave the same error on a different file.&lt;br /&gt;We have a log file available if this would be helpful.&lt;/p&gt;
&lt;p&gt;Any help would be appreciated.&lt;/p&gt;
&lt;p&gt;Thanks, Alex&lt;/p&gt;</description></item></channel></rss>