<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/"><channel><title>C#</title><link>http://usergroups.at/forums/7/ShowForum.aspx</link><description /><dc:language>en-US</dc:language><generator>CommunityServer 1.1 (Build: 1.1.0.50615)</generator><item><title>assemlies und die &amp;#220;bergabe von Werten</title><link>http://usergroups.at/forums/349/ShowPost.aspx</link><pubDate>Tue, 22 Aug 2006 18:42:14 GMT</pubDate><guid isPermaLink="false">fa5c56aa-30ad-4b19-9b17-006aa751fc10:349</guid><dc:creator>ezazazel</dc:creator><slash:comments>0</slash:comments><description>Gr&amp;#252;&amp;#223;e allerseits!&lt;br /&gt;&lt;br /&gt;Folgendes Problem liegt mir zurzeit schwer im Magen. Ich habe zwei Assemblies, eines als asuf&amp;#252;hrbares / MDIParent, das zweite als Klassenbibliothek, beide in derselben Solution.&lt;br /&gt;&lt;br /&gt;Habe nun die Klassenbibliothek im ausf&amp;#252;hrbaren Assembly refernziert, ich kann nun auch Klassen in der Bibliothek aufrufen.&lt;br /&gt;&lt;br /&gt;Nun will ich aber umgekehrt aus der Klassenbibliothek auf Variablen im ausf&amp;#252;hrbaren Assembly zugreifen, und das funktioniert nicht.&lt;br /&gt;&lt;br /&gt;Grund hierf&amp;#252;r ist, dass ich das ausf&amp;#252;hrbare Assembly nicht in der Klassenbibliothek refernzieren kann, da es ansonsten zu Ringabh&amp;#228;ngigkeiten kommt.&lt;br /&gt;&lt;br /&gt;Hier ein Beispiel: Aus dem MDIParent wird ein ein Form aus der Klassenbibliothek als Child aufgerufen. Das funktioniert auch.&lt;br /&gt;Da aber dieses Form nur ein einziges Mal aufgerufen werden darf, erstellte ich eine Variable, welche beim Schlie&amp;#223;en des Childs zur&amp;#252;ckgesetzt werden soll.&lt;br /&gt;&lt;br /&gt;Einfacher erkl&amp;#228;rt im Code:&lt;br /&gt;&amp;lt;code&amp;gt;&lt;br /&gt;public Library.FormoftheLibrary fotl = null;&lt;br /&gt;privat void StarttheFormoftheLibrary()&lt;br /&gt;{&lt;br /&gt;if (fotl == null)&lt;br /&gt;fotl = new Library.FormoftheLibrary();&lt;br /&gt;fotl.MDIParent = this;&lt;br /&gt;fotl.Show();&lt;br /&gt;}&lt;br /&gt;&amp;lt;/code&amp;gt;&lt;br /&gt;und im Child Form in der Library:&lt;br /&gt;&amp;lt;code&amp;gt;&lt;br /&gt;public void FormoftheLibrary()&lt;br /&gt;{&lt;br /&gt;this.FormClosing +=new FormClosingEventHandler(delegate(object sender, EventArgs e)&lt;br /&gt;{&lt;br /&gt;&lt;br /&gt;};&lt;br /&gt;}&lt;br /&gt;&amp;lt;/code&amp;gt;&lt;br /&gt;Leider reicht es nicht im Aufruf this zu &amp;#252;bergeben, da bei der &amp;#220;bernahme die Refernzierung fehlt, also&lt;br /&gt;&amp;lt;code&amp;gt;&lt;br /&gt;fotl = new Library.FormoftheLibrary(this);&lt;br /&gt;&amp;lt;/code&amp;gt;&lt;br /&gt;und &lt;br /&gt;&amp;lt;code&amp;gt;&lt;br /&gt;public void FormoftheLibrary(FormoftheExecutable form)&lt;br /&gt;&amp;lt;/code&amp;gt;&lt;br /&gt;GEHT NICHT(!!!)&lt;br /&gt;&lt;br /&gt;Bitte um Vorschl&amp;#228;ge / Tips.&lt;br /&gt;Danke im Voraus,&lt;br /&gt;&lt;br /&gt;ezazazel</description></item><item><title>Enterprise Library June2005 mit .NET 2.0</title><link>http://usergroups.at/forums/208/ShowPost.aspx</link><pubDate>Thu, 15 Dec 2005 15:25:02 GMT</pubDate><guid isPermaLink="false">fa5c56aa-30ad-4b19-9b17-006aa751fc10:208</guid><dc:creator>outsrc</dc:creator><slash:comments>1</slash:comments><description>&lt;P&gt;Hi Leute!&lt;/P&gt;
&lt;P&gt;Ich hab versucht den Configuration Block der Enterprise Library in einem .NET 2.0 Projekt zu verwenden. Ich hab aber leider das Problem das jedes mal ne Exception kommt, dass er das Config file nicht finden kann. Ich hab das gleiche Problem auch mit dem Beispiel bei den "Hands On Labs" festgestellt.&lt;/P&gt;
&lt;P&gt;Hier mal die Meldung:&lt;/P&gt;
&lt;P&gt;&lt;FONT color=#ff0000&gt;Invalid section name. The section 'RMSettings' does not exist in the requested configuration file&lt;/FONT&gt; 'X:\SICH\Perforce\DA_dotNET\DeDiSys\Primary_Backup\BasisSystemPB\BasisSystemPB\bin\Debug\BasisSystemPB.vshost.exe.config' or the file 'C:\WINNT\Microsoft.NET\Framework\v2.0.50727\Config\machine.config'. Make sure that the 'enterpriseLibrary.configurationSections' configuration section exists in one of the files and that the section 'RMSettings' is defined.&lt;/P&gt;
&lt;P&gt;In der letzten Stunden hab ich mich schon in einigen Foren umgesehen und ich dürfte nicht der einzige sein. Bin mittlerweile etwas ratlos... Weiß irgendwer ne Lösung dafür?&lt;/P&gt;
&lt;P&gt;&lt;A href="http://www.gotdotnet.com/Community/MessageBoard/Thread.aspx?id=336098"&gt;http://www.gotdotnet.com/Community/MessageBoard/Thread.aspx?id=336098&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;thx&lt;/P&gt;
&lt;P&gt;Georg&lt;/P&gt;</description></item><item><title>Aufruf von 'ftp.exe' aus C# unter Win2000</title><link>http://usergroups.at/forums/204/ShowPost.aspx</link><pubDate>Tue, 13 Dec 2005 13:00:59 GMT</pubDate><guid isPermaLink="false">fa5c56aa-30ad-4b19-9b17-006aa751fc10:204</guid><dc:creator>tomcat</dc:creator><slash:comments>1</slash:comments><description>&lt;P&gt;&lt;FONT size=2&gt;Hallo zusammen,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size=2&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size=2&gt;ich hab folgendes Problem: ich rufe mit '&lt;FONT size=2&gt;System.Diagnostics.Process' das Windows-eig&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;FONT size=2&gt;ene 'ftp.exe' aus einer Desktopanwendung auf&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size=2&gt;&lt;FONT size=2&gt;funktioniert unter win-xp perfekt&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size=2&gt;&lt;FONT size=2&gt;unter win 2000 macht das Ding Probleme: der Aufruf ist noch okay,die erste&amp;nbsp;Zeile der Anmeldung sieht ebenfalls gut aus und dann hakts wo. &lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size=2&gt;aufruf erfolgt like: &lt;A href="ftp://ftp.exe"&gt;ftp.exe&lt;/A&gt; -sc:\ftpscript.txt ftpxxxxx, im script dann das übliche;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size=2&gt;Könnte das möglicherweise mit irgendwelchen Sicherheitsrichtlinien zusammenhängen?&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size=2&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size=2&gt;danke im voraus,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size=2&gt;guenter&lt;/FONT&gt;&lt;/P&gt;</description></item></channel></rss>