Hi,
I was trying create package but I have this error: Cannot access closed Stream.
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************
System.ObjectDisposedException: Cannot access a closed Stream.
at System.IO.__Error.StreamIsClosed()
at System.IO.MemoryStream.Write(Byte[] buffer, Int32 offset, Int32 count)
at System.Xml.XmlUtf8RawTextWriter.FlushBuffer()
at System.Xml.XmlUtf8RawTextWriter.Flush()
at System.Xml.XmlWellFormedWriter.Close()
at System.Xml.XmlWriter.Dispose(Boolean disposing)
at System.Xml.XmlWriter.Dispose()
at Microsoft.UpdateServices.Internal.BaseApi.Publisher.VerifyAndPublishPackage()
at Microsoft.UpdateServices.Internal.BaseApi.Publisher.PublishPackage(String sourcePath, String additionalSourcePath, String packageDirectoryName)
at Microsoft.UpdateServices.Internal.BaseApi.Publisher.PublishPackage(String sourcePath, String packageDirectoryName)
at Wsus_Package_Publisher.WsusWrapper.PublishUpdate(FrmUpdateFilesWizard filesWizard, FrmUpdateInformationsWizard informationsWizard, FrmUpdateRulesWizard isInstalledRulesWizard, FrmUpdateRulesWizard isInstallableRulesWizard)
at Wsus_Package_Publisher.FrmUpdatePublisher.Publish()
at Wsus_Package_Publisher.FrmUpdateWizard.updateIsInstallableRulesWizard_btnNext_Click(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
************** Loaded Assemblies **************
mscorlib
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.233 (RTMGDR.030319-2300)
CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
----------------------------------------
Wsus Package Publisher
Assembly Version: 1.1.1304.12
Win32 Version: 1.1.1304.12
CodeBase: file:///C:/Users/mklementowski/Downloads/Release%20v1.1.1304.12%20(x86)/Wsus%20Package%20Publisher.exe
----------------------------------------
System.Windows.Forms
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.1 built by: RTMRel
CodeBase: file:///C:/windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.1 built by: RTMRel
CodeBase: file:///C:/windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.233 built by: RTMGDR
CodeBase: file:///C:/windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
Microsoft.UpdateServices.Administration
Assembly Version: 3.1.6001.1
Win32 Version: 3.1.7600.226
CodeBase: file:///C:/windows/assembly/GAC_MSIL/Microsoft.UpdateServices.Administration/3.1.6001.1__31bf3856ad364e35/Microsoft.UpdateServices.Administration.dll
----------------------------------------
System.Configuration
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.1 (RTMRel.030319-0100)
CodeBase: file:///C:/windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xml
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.233 built by: RTMGDR
CodeBase: file:///C:/windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
Wsus Package Publisher.resources
Assembly Version: 1.1.1304.12
Win32 Version: 1.1.1304.12
CodeBase: file:///C:/Users/mklementowski/Downloads/Release%20v1.1.1304.12%20(x86)/en/Wsus%20Package%20Publisher.resources.DLL
----------------------------------------
CheckComboBox
Assembly Version: 1.1.1212.22
Win32 Version: 1.1.1212.22
CodeBase: file:///C:/Users/mklementowski/Downloads/Release%20v1.1.1304.12%20(x86)/CheckComboBox.DLL
----------------------------------------
Microsoft.UpdateServices.BaseApi
Assembly Version: 3.1.6001.1
Win32 Version: 3.1.7600.226
CodeBase: file:///C:/windows/assembly/GAC_MSIL/Microsoft.UpdateServices.BaseApi/3.1.6001.1__31bf3856ad364e35/Microsoft.UpdateServices.BaseApi.dll
----------------------------------------
Microsoft.UpdateServices.StringResources
Assembly Version: 3.1.6001.1
Win32 Version: 3.1.7600.226
CodeBase: file:///C:/windows/assembly/GAC_MSIL/Microsoft.UpdateServices.StringResources/3.1.6001.1__31bf3856ad364e35/Microsoft.UpdateServices.StringResources.dll
----------------------------------------
System.Data
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.245 (RTMGDR.030319-2400)
CodeBase: file:///C:/windows/Microsoft.Net/assembly/GAC_32/System.Data/v4.0_4.0.0.0__b77a5c561934e089/System.Data.dll
----------------------------------------
System.Core
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.233 built by: RTMGDR
CodeBase: file:///C:/windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
Microsoft.UpdateServices.Utils
Assembly Version: 3.1.6001.1
Win32 Version: 3.1.7600.226
CodeBase: file:///C:/windows/assembly/GAC_MSIL/Microsoft.UpdateServices.Utils/3.1.6001.1__31bf3856ad364e35/Microsoft.UpdateServices.Utils.dll
----------------------------------------
Microsoft.UpdateServices.AdminDataAccessProxy
Assembly Version: 3.1.6001.1
Win32 Version: 3.1.7600.226
CodeBase: file:///C:/windows/assembly/GAC_MSIL/Microsoft.UpdateServices.AdminDataAccessProxy/3.1.6001.1__31bf3856ad364e35/Microsoft.UpdateServices.AdminDataAccessProxy.dll
----------------------------------------
Microsoft.UpdateServices.DBlayer
Assembly Version: 3.1.6001.1
Win32 Version: 3.1.7600.226
CodeBase: file:///C:/windows/assembly/GAC_MSIL/Microsoft.UpdateServices.DBlayer/3.1.6001.1__31bf3856ad364e35/Microsoft.UpdateServices.DBlayer.dll
----------------------------------------
System.Web.Services
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.1 (RTMRel.030319-0100)
CodeBase: file:///C:/windows/Microsoft.Net/assembly/GAC_MSIL/System.Web.Services/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Web.Services.dll
----------------------------------------
nrifkhru
Assembly Version: 3.1.6001.1
Win32 Version: 4.0.30319.233 built by: RTMGDR
CodeBase: file:///C:/windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
MsiReader
Assembly Version: 1.2.1212.8
Win32 Version: 1.2.1212.08
CodeBase: file:///C:/Users/mklementowski/Downloads/Release%20v1.1.1304.12%20(x86)/MsiReader.DLL
----------------------------------------
System.Data.SqlXml
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.1 built by: RTMRel
CodeBase: file:///C:/windows/Microsoft.Net/assembly/GAC_MSIL/System.Data.SqlXml/v4.0_4.0.0.0__b77a5c561934e089/System.Data.SqlXml.dll
----------------------------------------
System.Xml.Xsl.CompiledQuery.1
Assembly Version: 0.0.0.0
Win32 Version: 4.0.30319.1 built by: RTMRel
CodeBase: file:///C:/windows/Microsoft.Net/assembly/GAC_MSIL/System.Data.SqlXml/v4.0_4.0.0.0__b77a5c561934e089/System.Data.SqlXml.dll
----------------------------------------
Accessibility
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.1 built by: RTMRel
CodeBase: file:///C:/windows/Microsoft.Net/assembly/GAC_MSIL/Accessibility/v4.0_4.0.0.0__b03f5f7f11d50a3a/Accessibility.dll
----------------------------------------
************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.
For example:
<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>
When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.
I was trying create package but I have this error: Cannot access closed Stream.
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************
System.ObjectDisposedException: Cannot access a closed Stream.
at System.IO.__Error.StreamIsClosed()
at System.IO.MemoryStream.Write(Byte[] buffer, Int32 offset, Int32 count)
at System.Xml.XmlUtf8RawTextWriter.FlushBuffer()
at System.Xml.XmlUtf8RawTextWriter.Flush()
at System.Xml.XmlWellFormedWriter.Close()
at System.Xml.XmlWriter.Dispose(Boolean disposing)
at System.Xml.XmlWriter.Dispose()
at Microsoft.UpdateServices.Internal.BaseApi.Publisher.VerifyAndPublishPackage()
at Microsoft.UpdateServices.Internal.BaseApi.Publisher.PublishPackage(String sourcePath, String additionalSourcePath, String packageDirectoryName)
at Microsoft.UpdateServices.Internal.BaseApi.Publisher.PublishPackage(String sourcePath, String packageDirectoryName)
at Wsus_Package_Publisher.WsusWrapper.PublishUpdate(FrmUpdateFilesWizard filesWizard, FrmUpdateInformationsWizard informationsWizard, FrmUpdateRulesWizard isInstalledRulesWizard, FrmUpdateRulesWizard isInstallableRulesWizard)
at Wsus_Package_Publisher.FrmUpdatePublisher.Publish()
at Wsus_Package_Publisher.FrmUpdateWizard.updateIsInstallableRulesWizard_btnNext_Click(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
************** Loaded Assemblies **************
mscorlib
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.233 (RTMGDR.030319-2300)
CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
----------------------------------------
Wsus Package Publisher
Assembly Version: 1.1.1304.12
Win32 Version: 1.1.1304.12
CodeBase: file:///C:/Users/mklementowski/Downloads/Release%20v1.1.1304.12%20(x86)/Wsus%20Package%20Publisher.exe
----------------------------------------
System.Windows.Forms
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.1 built by: RTMRel
CodeBase: file:///C:/windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.1 built by: RTMRel
CodeBase: file:///C:/windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.233 built by: RTMGDR
CodeBase: file:///C:/windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
Microsoft.UpdateServices.Administration
Assembly Version: 3.1.6001.1
Win32 Version: 3.1.7600.226
CodeBase: file:///C:/windows/assembly/GAC_MSIL/Microsoft.UpdateServices.Administration/3.1.6001.1__31bf3856ad364e35/Microsoft.UpdateServices.Administration.dll
----------------------------------------
System.Configuration
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.1 (RTMRel.030319-0100)
CodeBase: file:///C:/windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xml
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.233 built by: RTMGDR
CodeBase: file:///C:/windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
Wsus Package Publisher.resources
Assembly Version: 1.1.1304.12
Win32 Version: 1.1.1304.12
CodeBase: file:///C:/Users/mklementowski/Downloads/Release%20v1.1.1304.12%20(x86)/en/Wsus%20Package%20Publisher.resources.DLL
----------------------------------------
CheckComboBox
Assembly Version: 1.1.1212.22
Win32 Version: 1.1.1212.22
CodeBase: file:///C:/Users/mklementowski/Downloads/Release%20v1.1.1304.12%20(x86)/CheckComboBox.DLL
----------------------------------------
Microsoft.UpdateServices.BaseApi
Assembly Version: 3.1.6001.1
Win32 Version: 3.1.7600.226
CodeBase: file:///C:/windows/assembly/GAC_MSIL/Microsoft.UpdateServices.BaseApi/3.1.6001.1__31bf3856ad364e35/Microsoft.UpdateServices.BaseApi.dll
----------------------------------------
Microsoft.UpdateServices.StringResources
Assembly Version: 3.1.6001.1
Win32 Version: 3.1.7600.226
CodeBase: file:///C:/windows/assembly/GAC_MSIL/Microsoft.UpdateServices.StringResources/3.1.6001.1__31bf3856ad364e35/Microsoft.UpdateServices.StringResources.dll
----------------------------------------
System.Data
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.245 (RTMGDR.030319-2400)
CodeBase: file:///C:/windows/Microsoft.Net/assembly/GAC_32/System.Data/v4.0_4.0.0.0__b77a5c561934e089/System.Data.dll
----------------------------------------
System.Core
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.233 built by: RTMGDR
CodeBase: file:///C:/windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
Microsoft.UpdateServices.Utils
Assembly Version: 3.1.6001.1
Win32 Version: 3.1.7600.226
CodeBase: file:///C:/windows/assembly/GAC_MSIL/Microsoft.UpdateServices.Utils/3.1.6001.1__31bf3856ad364e35/Microsoft.UpdateServices.Utils.dll
----------------------------------------
Microsoft.UpdateServices.AdminDataAccessProxy
Assembly Version: 3.1.6001.1
Win32 Version: 3.1.7600.226
CodeBase: file:///C:/windows/assembly/GAC_MSIL/Microsoft.UpdateServices.AdminDataAccessProxy/3.1.6001.1__31bf3856ad364e35/Microsoft.UpdateServices.AdminDataAccessProxy.dll
----------------------------------------
Microsoft.UpdateServices.DBlayer
Assembly Version: 3.1.6001.1
Win32 Version: 3.1.7600.226
CodeBase: file:///C:/windows/assembly/GAC_MSIL/Microsoft.UpdateServices.DBlayer/3.1.6001.1__31bf3856ad364e35/Microsoft.UpdateServices.DBlayer.dll
----------------------------------------
System.Web.Services
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.1 (RTMRel.030319-0100)
CodeBase: file:///C:/windows/Microsoft.Net/assembly/GAC_MSIL/System.Web.Services/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Web.Services.dll
----------------------------------------
nrifkhru
Assembly Version: 3.1.6001.1
Win32 Version: 4.0.30319.233 built by: RTMGDR
CodeBase: file:///C:/windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
MsiReader
Assembly Version: 1.2.1212.8
Win32 Version: 1.2.1212.08
CodeBase: file:///C:/Users/mklementowski/Downloads/Release%20v1.1.1304.12%20(x86)/MsiReader.DLL
----------------------------------------
System.Data.SqlXml
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.1 built by: RTMRel
CodeBase: file:///C:/windows/Microsoft.Net/assembly/GAC_MSIL/System.Data.SqlXml/v4.0_4.0.0.0__b77a5c561934e089/System.Data.SqlXml.dll
----------------------------------------
System.Xml.Xsl.CompiledQuery.1
Assembly Version: 0.0.0.0
Win32 Version: 4.0.30319.1 built by: RTMRel
CodeBase: file:///C:/windows/Microsoft.Net/assembly/GAC_MSIL/System.Data.SqlXml/v4.0_4.0.0.0__b77a5c561934e089/System.Data.SqlXml.dll
----------------------------------------
Accessibility
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.1 built by: RTMRel
CodeBase: file:///C:/windows/Microsoft.Net/assembly/GAC_MSIL/Accessibility/v4.0_4.0.0.0__b03f5f7f11d50a3a/Accessibility.dll
----------------------------------------
************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.
For example:
<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>
When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.