<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.dotnetzone.gr:443/cs/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/"><channel><title>ASP.NET WebForms</title><link>https://www.dotnetzone.gr:443/cs/forums/13/ShowForum.aspx</link><description>Θέματα για web εφαρμογές, σε ASP.NET WebForms</description><dc:language>el</dc:language><generator>CommunityServer 2.1 SP3 (Build: 20423.1)</generator><item><title>Απ: Χρήση typed dataset-based DAL σε ASP.NET (Connection string - User Settings Scope problem)</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/23803.aspx</link><pubDate>Sun, 21 Jan 2007 01:29:39 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:23803</guid><dc:creator>cap</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/23803.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=13&amp;PostID=23803</wfw:commentRss><description>Αγγελε ευχαριστώ. Δυστυχώς όμως αυτά δεν βοηθούν γιατί ναι μεν εξηγούν την ιστορία (τα είχα ήδη δει πριν γράψω το post και τα δυο) αλλά δεν μας δίνουν μια λεπτομερή εξήγηση του τι μπορούμε να κάνουμε.</description></item><item><title>Απ: Χρήση typed dataset-based DAL σε ASP.NET (Connection string - User Settings Scope problem)</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/23802.aspx</link><pubDate>Sun, 21 Jan 2007 01:23:15 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:23802</guid><dc:creator>Άγγελος Ξυπολιάς</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/23802.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=13&amp;PostID=23802</wfw:commentRss><description>Σωτήρη, ελπίζω να σε βοηθήσουν:&lt;br&gt;&lt;br&gt;&lt;br&gt;http://www.velocityreviews.com/forums/t237187-the-current-configuration-system-does-not-support-userscoped-settings.html&lt;br&gt;http://blogs.msdn.com/rprabhu/articles/433979.aspx&lt;br&gt;&lt;br&gt;</description></item><item><title>Απ: Χρήση typed dataset-based DAL σε ASP.NET (Connection string - User Settings Scope problem)</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/23797.aspx</link><pubDate>Sat, 20 Jan 2007 22:02:26 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:23797</guid><dc:creator>cap</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/23797.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=13&amp;PostID=23797</wfw:commentRss><description>&lt;P&gt;Ισως αυτή η ερώτηση που έγινε εδώ: &lt;A href="http://www.theserverside.net/discussions/thread.tss?thread_id=37108#211245"&gt;http://www.theserverside.net/discussions/thread.tss?thread_id=37108#211245&lt;/A&gt;&amp;nbsp;συνοψίζει ακόμα πιό καλά το τι θέλω τελικά να κάνω (αν σας μπέρδεψα με τα παραπάνω):&lt;/P&gt;
&lt;P&gt;Αντιγράφω:&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;How to change the ConnectionString for an auto generated typed dataset if this dataset is in a separate dll. Does anybody know a solution? We have WinForm exe, that uses several DLLs, inside those DLLs we have auto-generated DataSets. And Datasets have Connection string inside Stettings.settings. We want them to use connection string from app.config in main WinForm App; and we do not want to have many places for connection string. Any Input from anybody? Thank you &lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;Και επίσης εδώ: &lt;A href="http://www.theserverside.net/discussions/thread.tss?thread_id=37108#203046"&gt;http://www.theserverside.net/discussions/thread.tss?thread_id=37108#203046&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Αντιγράφω:&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;I've been playing with the new DataSet for a few days now and MS has done a wonderful job with their overhaul in this area of VS. I especially like the Data Adapter designing capabilities here.&lt;BR&gt;&amp;nbsp;&lt;BR&gt;Is there a way to use this without VS baking the connection string directly into the code it generates for you? It gives you a few options when you first create a new adapter, but somehow mine always end up in the Setting.settings file. It appears the designer itself needs a connection to the database to do it designing, so it requires that a connstring be baked in (via settings.settings, app.config, or hardcoding). I don't want my connstring anywhere in that code (hardcoded nor configured). &lt;BR&gt;&amp;nbsp;&lt;BR&gt;Ignoring that for a minute, it seems that if you want to keep your connection outside of the adapter, you're forced to set the .Connection property on the adapter. I'm feeling some conflict architecturally here with the Enterprise Library to the DAL. I don't want there to be any confusion at design time, compile time, or runtime where my connstring is (singular). On top of that, because there is no common base class or interface for class adapters that it generates, I can't implement any kind of factory for these adapters. Call me a centralization zealot, but I don't want my connection string in multiple places, and if I must set the .Connection property myself, I want to only do it in one place.&lt;BR&gt;&amp;nbsp;&lt;BR&gt;I'm foreseeing a future filled with code reviews hunting for the proper setting of the .Connection property. Or worse... dev's coding and unit testing against the wrong version of the database schema because the code is using the wrong connstring baked into the adapter&lt;BR&gt;&amp;nbsp;&lt;BR&gt;Is there a better way to leverage this awesome new designer without shooting yourself in the foot? &lt;/EM&gt;&lt;BR&gt;&lt;/P&gt;</description></item><item><title>Χρήση typed dataset-based DAL σε ASP.NET (Connection string - User Settings Scope problem)</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/23794.aspx</link><pubDate>Sat, 20 Jan 2007 21:41:39 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:23794</guid><dc:creator>cap</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/23794.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=13&amp;PostID=23794</wfw:commentRss><description>&lt;P&gt;Εχω δημιουργήσει ένα DAL (Class Library) το οποίο περιέχει μόνο Typed Datasets. Αυτό το χρησιμοποιώ σε μια Windows Forms εφαρμογή. &lt;/P&gt;
&lt;P&gt;Θέλοντας να αποφύγω να φτιάξω παραπλήσιο DAL για ένα Web Site που εκμεταλλεύεται την ίδια database, σκέφτηκα να χρησιμοποιήσω το DAL που ήδη έχω φτιάξει. (Σημείωση: Πρόκειται για DNN module αλλά σε αυτό το context δεν έχει - πιστεύω - ιδιαίτερη σημασία).&lt;/P&gt;
&lt;P&gt;Κανω λοιπόν reference στο DAL και αυτό μπαίνει κανονικότατα στο BIN folder. Ομως, όταν πάω να το τρέξω παίρνω runtime exception με μήνυμα "The current configuration system does not support user-scoped settings.".&lt;/P&gt;
&lt;P&gt;Ψάχνοντας λίγο κατάλαβα οτι το πρόβλημα βρίσκεται στο πώς έχω φτιάξει το connection string του DAL μου από την Windows Forms εφαρμογή. Χρησιμοποιώντας το namespace My (VB.NET), έχω δημιουργήσει το γνωστό [ονομα dll μου].My.MySettings.ConnectionString. Αυτό όμως φαίνεται οτι ανήκει στην κατηγορία των User Settings. Προφανώς λοιπόν όταν τρέχω το ίδιο πράγμα κάτω από ASP.NET φωνάζοντας τα objects (datasets/tableadapters του), δεν μπορεί να το βρεί.&lt;/P&gt;
&lt;P&gt;Δοκίμασα να βάλω το connection string με την ίδια ονομασία στο Web.Config της εφαρμογής. (Καποιος, σε κάποιο forum, το πρότεινε). Δεν περίμενα να δουλέψει, και φυσικά δεν δούλεψε.&lt;/P&gt;
&lt;P&gt;Πώς θα μπορούσα να αλλάξω λοιπον τον τρόπο που καθορίζω τα settings έτσι ωστε να είναι προσπελάσιμο το connection String μου και από το Web; Η default συμπεριφορά του dataset designer είναι να δημιουργεί connection string στα user-scoped settings. Εναλλακτικά, τι άλλο μου έχει ξεφύγει;&lt;/P&gt;
&lt;P&gt;Warning: Ειμαι (σχεδόν) noob στο νέο&amp;nbsp;σχήμα αποθήκευσης settings 4 επιπέδων του ASP.NET 2.0, οπότε πείτε τα μου λίγο πιό επεξηγηματικά :)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description></item></channel></rss>