<?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>ADO.NET</title><link>https://www.dotnetzone.gr:443/cs/forums/78/ShowForum.aspx</link><description>Θέματα σχετικά με την προσπέλαση δεδομένων μέσω του ADO.NET και του System.Data namespace</description><dc:language>el</dc:language><generator>CommunityServer 2.1 SP3 (Build: 20423.1)</generator><item><title>Απ: Πρόβλημα Attach Database Σε Web Application</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/53877.aspx</link><pubDate>Tue, 22 Sep 2009 06:05:03 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:53877</guid><dc:creator>Τάσκος Γιώργος</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/53877.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=78&amp;PostID=53877</wfw:commentRss><description>&lt;P&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="http://www.dotnetzone.gr/cs/Themes/default/images/icon-quote.gif"&gt; &lt;strong&gt;Markos:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;Γιατί δεν χρησιμοποιείς το &lt;A href="http://www.codeplex.com/sqlhost/Wiki/View.aspx?title=Database%20Publishing%20Wizard"&gt;SQL Server Hosting Toolkit&lt;/A&gt;; Υπάρχει και για &lt;A href="http://blogs.msdn.com/webdevtools/archive/2007/10/15/sql-database-publishing-wizard-is-now-in-visual-studio-orcas.aspx"&gt;VS2008&lt;/A&gt;. Ένα πιο αναλυτικό &lt;A href="http://weblogs.asp.net/scottgu/archive/2006/12/22/recipe-deploying-a-sql-database-to-a-remote-hosting-environment-part-1.aspx"&gt;tutorial&lt;/A&gt; έχει γράψει ο Scott Guthrie.&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;/P&gt;
&lt;P&gt;Καλό, thanx.&lt;/P&gt;</description></item><item><title>Απ: Πρόβλημα Attach Database Σε Web Application</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/53876.aspx</link><pubDate>Tue, 22 Sep 2009 04:24:30 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:53876</guid><dc:creator>Markos</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/53876.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=78&amp;PostID=53876</wfw:commentRss><description>Γιατί δεν χρησιμοποιείς το &lt;A href="http://www.codeplex.com/sqlhost/Wiki/View.aspx?title=Database%20Publishing%20Wizard"&gt;SQL Server Hosting Toolkit&lt;/A&gt;; Υπάρχει και για &lt;A href="http://blogs.msdn.com/webdevtools/archive/2007/10/15/sql-database-publishing-wizard-is-now-in-visual-studio-orcas.aspx"&gt;VS2008&lt;/A&gt;. Ένα πιο αναλυτικό &lt;A href="http://weblogs.asp.net/scottgu/archive/2006/12/22/recipe-deploying-a-sql-database-to-a-remote-hosting-environment-part-1.aspx"&gt;tutorial&lt;/A&gt; έχει γράψει ο Scott Guthrie.</description></item><item><title>Απ: Πρόβλημα Attach Database Σε Web Application</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/53875.aspx</link><pubDate>Tue, 22 Sep 2009 03:45:01 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:53875</guid><dc:creator>Τάσκος Γιώργος</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/53875.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=78&amp;PostID=53875</wfw:commentRss><description>Μπα, τζίφος, δεν μπόρεσα να το καταφέρω. Μέσα από το Visual Studio δουλεύει κανονικά...&lt;br&gt;&lt;br&gt;&lt;br&gt;</description></item><item><title>Απ: Πρόβλημα Attach Database Σε Web Application</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/53873.aspx</link><pubDate>Mon, 21 Sep 2009 23:26:56 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:53873</guid><dc:creator>Τάσκος Γιώργος</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/53873.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=78&amp;PostID=53873</wfw:commentRss><description>Νομίζω ότι ίσως έδωσες λύση, πρέπει να το δώ στο σπίτι.&lt;br&gt;Μόλις σκέφτηκα ότι δεν είχα λάβει υπόψην ότι έχω Authentication στην σελίδα, και όταν την δουλεύω&lt;br&gt;το έχω &amp;lt;allow users="*"&amp;gt;. Πρέπει να βγάλω εκτός την Web Form από το Authentication. &lt;br&gt;&lt;br&gt;Dummy...&lt;br&gt;&lt;br&gt;Θα το κλείσω μόλις το εξακριβώσω 100%...thanx man.&lt;br&gt;</description></item><item><title>Απ: Πρόβλημα Attach Database Σε Web Application</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/53872.aspx</link><pubDate>Mon, 21 Sep 2009 22:55:07 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:53872</guid><dc:creator>epp1123</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/53872.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=78&amp;PostID=53872</wfw:commentRss><description>Γιώργο για ρίξε μια ματιά εδώ.&amp;nbsp;&lt;a href="http://forums.iis.net/t/1152085.aspx"&gt;http://forums.iis.net/t/1152085.aspx&lt;/a&gt;&amp;nbsp;Συγκεκριμένα σε ένα post ένα τύπος λέει το εξής:&amp;nbsp;&lt;div&gt;&lt;i&gt;"&lt;/i&gt;&lt;span class="Apple-style-span" style="font-family:Tahoma, Arial, Helvetica;font-size:12px;line-height:16px;"&gt;&lt;i&gt;401.2 means that your server and the browser are following 2 different authentication protocols.... are you entering any sort of credentials for accessing this resource???&amp;nbsp;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;</description></item><item><title>Πρόβλημα Attach Database Σε Web Application</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/53871.aspx</link><pubDate>Mon, 21 Sep 2009 22:18:40 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:53871</guid><dc:creator>Τάσκος Γιώργος</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/53871.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=78&amp;PostID=53871</wfw:commentRss><description>Καλησπέρα σε όλους,&lt;br&gt;&lt;br&gt;Έχω ένα προβληματάκι όταν πάω να κάνω attach μία βάση στον SQL Server από μια Web Form.&lt;br&gt;Το πρόβλημα προκύπτει όταν το application γίνετε Publish στον IIS. Σε development περιβάλλον δουλεύει κανονικά.&lt;br&gt;Ο κώδικας για Attach :&lt;br&gt;&lt;br&gt;&lt;pre&gt;&lt;span style="color:Black;background-color:Transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;&lt;span style="color:Blue;background-color:Transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;public&lt;/span&gt; &lt;span style="color:Blue;background-color:Transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;bool&lt;/span&gt; AttachDb(&lt;span style="color:Blue;background-color:Transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;string&lt;/span&gt; serverName)
        {
            &lt;span style="color:Blue;background-color:Transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;string&lt;/span&gt; mdf &lt;span style="color:Red;background-color:Transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;=&lt;/span&gt; HttpContext.Current.Server.MapPath(&lt;span style="font-family:Courier New;font-size:11px;font-weight:normal;"&gt;"~/App_Data/eDB.mdf"&lt;/span&gt;);
            &lt;span style="color:Blue;background-color:Transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;string&lt;/span&gt; ldf &lt;span style="color:Red;background-color:Transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;=&lt;/span&gt; HttpContext.Current.Server.MapPath(&lt;span style="font-family:Courier New;font-size:11px;font-weight:normal;"&gt;"~/App_Data/eDB_log.ldf"&lt;/span&gt;);

            &lt;span style="color:Blue;background-color:Transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;try&lt;/span&gt;
            {
                Server mServer &lt;span style="color:Red;background-color:Transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;=&lt;/span&gt; &lt;span style="color:Blue;background-color:Transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;new&lt;/span&gt; Server(serverName);
                mServer.AttachDatabase(&lt;span style="font-family:Courier New;font-size:11px;font-weight:normal;"&gt;"eDB"&lt;/span&gt;, &lt;span style="color:Blue;background-color:Transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;new&lt;/span&gt; StringCollection { mdf, ldf }, AttachOptions.None);
            }
            &lt;span style="color:Blue;background-color:Transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;catch&lt;/span&gt; (Exception)
            {
                &lt;span style="color:Blue;background-color:Transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;return&lt;/span&gt; &lt;span style="color:Blue;background-color:Transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;false&lt;/span&gt;;
            }

            &lt;span style="color:Blue;background-color:Transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;return&lt;/span&gt; &lt;span style="color:Blue;background-color:Transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;true&lt;/span&gt;;
        }&lt;/span&gt;&lt;/pre&gt;Στον IIS παίρνω ένα Access Denied error αλλά δεν μπορώ να καταλάβω που ακριβώς θέλει access...ο IIS στον SQL Server?&lt;br&gt;&lt;br&gt;Browser ERROR :&lt;br&gt;&lt;br&gt;&lt;span&gt;&lt;h1&gt;Server Error in '/AppName' Application.&lt;hr width="100%"&gt;&lt;/h1&gt;

            &lt;h2&gt; &lt;i&gt;Access is denied.&lt;/i&gt; &lt;/h2&gt;&lt;/span&gt;

            &lt;font face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif "&gt;

            &lt;b&gt; Description: &lt;/b&gt;An
error occurred while accessing the resources required to serve this
request. The server may not be configured for access to the requested
URL. &lt;br&gt;&lt;br&gt;

            &lt;b&gt; Error message 401.2.: &lt;/b&gt;Unauthorized:
Logon failed due to server configuration. &amp;nbsp;Verify that you have
permission to view this directory or page based on the credentials you
supplied and the authentication methods enabled on the Web server.
&amp;nbsp;Contact the Web server's administrator for additional assistance.&lt;br&gt;&lt;/font&gt;&lt;br&gt;Όποιος έχει κάποια ιδέα ας την ρίξει. Ευχαριστώ.&lt;br&gt;</description></item></channel></rss>