<?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>Πρώτα Βήματα - Web Development</title><link>https://www.dotnetzone.gr:443/cs/forums/75/ShowForum.aspx</link><description>Ολα τα θέματα που σας απασχολούν σχετικά με ASP, ASP.NET αν τώρα επιχειρείτε να φτιάξετε την πρώτη σας σελίδα.</description><dc:language>el</dc:language><generator>CommunityServer 2.1 SP3 (Build: 20423.1)</generator><item><title>Απ: Προβλημα με ASP.NET + MySQL</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/46456.aspx</link><pubDate>Tue, 25 Nov 2008 21:32:39 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:46456</guid><dc:creator>Παναγιώτης Καναβός</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/46456.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=75&amp;PostID=46456</wfw:commentRss><description>&lt;P&gt;Όχι, δεν αναφέρομαι στο Remove το οποίο καλώς υπάρχει. Αναφέρομαι στα errors που αφορούν τις κλάσεις SqlXXX οι οποίες είναι για τον SQL Server και όχι οι γενικές. Ξανακοιτώντας όμως το Exception Stack βλέπω ότι χρησιμοποιείς την DbDataAdapter, οπότε το πρόβλημα είναι το connection string.&lt;/P&gt;
&lt;P&gt;Στο &amp;lt;add &amp;gt; που χρησιμοποιείς λείπει το providerName attribute το οποίο προσδιορίζει ποιός driver χρησιμοποιείται. Ο default provider είναι ο System.Data.SqlClient, οπότε ο κώδικας σου προσπαθεί να συνθεδεί σε κάποιο SQL Server. Για να συνδεθείς με MySQL θα πρέπει να προσθέσεις και το providerName attribute και να βάλεις εκεί το όνομα του MySQL provider. Είναι πολύ ευκολότερο όμως να φτιάξεις το connection string από τα project settings με τον ενσωματομένο connection wizard, ο οποίος δεν ξεχνάει να βάλει το σωστό provider.&lt;/P&gt;</description></item><item><title>Απ: Προβλημα με ASP.NET + MySQL</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/46454.aspx</link><pubDate>Tue, 25 Nov 2008 21:16:26 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:46454</guid><dc:creator>kirillos217</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/46454.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=75&amp;PostID=46454</wfw:commentRss><description>επιπλέον στο help του connector που χρησιμοποιώ για τη σύνδεση προτείνει &lt;br&gt;&amp;lt;connectionStrings&amp;gt;&lt;br&gt;&amp;lt;remove name="LocalMySqlServer"/&amp;gt;&lt;br&gt;&amp;lt;add 
name="LocalMySqlServer" connectionString="server=xxx;uid=xxx;pwd=xxx"/&amp;gt; 
&lt;br&gt;&amp;lt;/connectionStrings&amp;gt;&lt;br&gt;&lt;br&gt;</description></item><item><title>Απ: Προβλημα με ASP.NET + MySQL</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/46453.aspx</link><pubDate>Tue, 25 Nov 2008 21:14:20 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:46453</guid><dc:creator>kirillos217</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/46453.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=75&amp;PostID=46453</wfw:commentRss><description>Αν αναφέρεσαι στο &lt;br&gt;&lt;br&gt;
    &amp;lt;remove name="LocalSqlServer"  &lt;br&gt;έχεις δίκιο έκανα λάθος copy paste αλλα και με το &lt;br&gt;&lt;br&gt;
    &amp;lt;remove name="LocalMySqlServer" το ίδιο μήνυμα βγάζει&lt;br&gt;&lt;br&gt;εάν δεν βαλω κώδικα &amp;lt;remove name.........&lt;br&gt;μου προστίθεται στο web.config &amp;nbsp; &amp;nbsp; &lt;br&gt;
&lt;br&gt;

    &amp;lt;remove name="LocalSqlServer"</description></item><item><title>Απ: Προβλημα με ASP.NET + MySQL</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/46452.aspx</link><pubDate>Tue, 25 Nov 2008 21:10:33 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:46452</guid><dc:creator>Παναγιώτης Καναβός</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/46452.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=75&amp;PostID=46452</wfw:commentRss><description>Πρέπει να χρησιμοποιήσεις connection string κατάλληλο για MySQL και αντί για τις SqlXXX κλάσεις να χρησιμοποιήσεις αυτές του provider, ή ακόμα καλύτερα τις DbXXX οι οποίες δουλεύουν με οποιοδήποτε provider. Το connection string φτιάχνεται εύκολα από τα project settings. Οι κλάσεις όμως πρέπει να αλλάξουν με το χέρι.</description></item><item><title>Απ: Προβλημα με ASP.NET + MySQL</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/46451.aspx</link><pubDate>Tue, 25 Nov 2008 20:59:24 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:46451</guid><dc:creator>nullvoid</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/46451.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=75&amp;PostID=46451</wfw:commentRss><description>πρέπει να του πεις στο connection ότι θα χρησιμοποιήσει MySQL νομίζω&lt;br&gt;</description></item><item><title>Απ: Προβλημα με ASP.NET + MySQL</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/46450.aspx</link><pubDate>Tue, 25 Nov 2008 20:57:56 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:46450</guid><dc:creator>Παναγιώτης Καναβός</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/46450.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=75&amp;PostID=46450</wfw:commentRss><description>Προσπαθείς να συνδεθείς στον MySQL με connection string και κλάσεις για τον SQL Server ?? &lt;img src="http://www.dotnetzone.gr/cs/emoticons/emotion-40.gif" alt="Hmm" /&gt;</description></item><item><title>Προβλημα με ASP.NET + MySQL</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/46449.aspx</link><pubDate>Tue, 25 Nov 2008 20:45:35 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:46449</guid><dc:creator>kirillos217</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/46449.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=75&amp;PostID=46449</wfw:commentRss><description>Καλημέρα,&lt;br&gt;
έχω φτιάξει ένα site σε asp.net με σύνδεση με mysql. εδώ και καιρό
προσπαθώ να το ανεβάσω στον provider και αντιμετωπίζω διάφορα
προβλήματα. ενώ μου έχουν πει ότι έχουν κάνει τις κατάλληλες ρυθμίσεις
και έχουν εγκαταστήσει και connector συνεχίζω να αντιμετωπίζω πρόβλημα.
αποφάσισα λοιπόν να ανεβάσω μια απλή σελίδα με μια σύνδεση με ένα πεδίο
της βάσης και παίρνω το παρακάτω σφάλμα&lt;br&gt;
&lt;br&gt;
Server Error in '/' Application.&lt;br&gt;
An error has occurred while establishing a connection to the server.
When connecting to SQL Server 2005, this failure may be caused by the
fact that under the default settings SQL Server does not allow remote
connections. (provider: Named Pipes Provider, error: 40 - Could not
open a connection to SQL Server)&lt;br&gt;
Description: An unhandled exception occurred during the execution of
the current web request. Please review the stack trace for more
information about the error and where it originated in the code.&lt;br&gt;
&lt;br&gt;
Exception Details: System.Data.SqlClient.SqlException: An error has
occurred while establishing a connection to the server. When connecting
to SQL Server 2005, this failure may be caused by the fact that under
the default settings SQL Server does not allow remote connections.
(provider: Named Pipes Provider, error: 40 - Could not open a
connection to SQL Server)&lt;br&gt;
&lt;br&gt;
Source Error:&lt;br&gt;
&lt;br&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;br&gt;
&lt;br&gt;
Stack Trace:&lt;br&gt;
&lt;br&gt;
[SqlException (0x80131904): An error has occurred while establishing a
connection to the server. When connecting to SQL Server 2005, this
failure may be caused by the fact that under the default settings SQL
Server does not allow remote connections. (provider: Named Pipes
Provider, error: 40 - Could not open a connection to SQL Server)]&lt;br&gt;
   System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) +800131&lt;br&gt;
   System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) +186&lt;br&gt;
System.Data.SqlClient.TdsParser.Connect(ServerInfo serverInfo,
SqlInternalConnectionTds connHandler, Boolean ignoreSniOpenTimeout,
Int64 timerExpire, Boolean encrypt, Boolean trustServerCert, Boolean
integratedSecurity, SqlConnection owningObject) +737554&lt;br&gt;
System.Data.SqlClient.SqlInternalConnectionTds.AttemptOneLogin(ServerInfo
serverInfo, String newPassword, Boolean ignoreSniOpenTimeout, Int64
timerExpire, SqlConnection owningObject) +114&lt;br&gt;
System.Data.SqlClient.SqlInternalConnectionTds.LoginNoFailover(String
host, String newPassword, Boolean redirectedUserInstance, SqlConnection
owningObject, SqlConnectionString connectionOptions, Int64 timerStart)
+421&lt;br&gt;
System.Data.SqlClient.SqlInternalConnectionTds.OpenLoginEnlist(SqlConnection
owningObject, SqlConnectionString connectionOptions, String
newPassword, Boolean redirectedUserInstance) +181&lt;br&gt;
System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity
identity, SqlConnectionString connectionOptions, Object providerInfo,
String newPassword, SqlConnection owningObject, Boolean
redirectedUserInstance) +173&lt;br&gt;
System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions
options, Object poolGroupProviderInfo, DbConnectionPool pool,
DbConnection owningConnection) +357&lt;br&gt;
System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnection
owningConnection, DbConnectionPool pool, DbConnectionOptions options)
+30&lt;br&gt;
   System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject) +424&lt;br&gt;
   System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject) +66&lt;br&gt;
   System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection owningObject) +494&lt;br&gt;
   System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection) +82&lt;br&gt;
System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection
outerConnection, DbConnectionFactory connectionFactory) +105&lt;br&gt;
   System.Data.SqlClient.SqlConnection.Open() +111&lt;br&gt;
System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset,
DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String
srcTable, IDbCommand command, CommandBehavior behavior) +121&lt;br&gt;
System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32
startRecord, Int32 maxRecords, String srcTable, IDbCommand command,
CommandBehavior behavior) +137&lt;br&gt;
   System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, String srcTable) +83&lt;br&gt;
   System.Web.UI.WebControls.SqlDataSourceView.ExecuteSelect(DataSourceSelectArguments arguments) +1770&lt;br&gt;
   System.Web.UI.WebControls.BaseDataList.GetData() +57&lt;br&gt;
   System.Web.UI.WebControls.DataList.CreateControlHierarchy(Boolean useDataSource) +284&lt;br&gt;
   System.Web.UI.WebControls.BaseDataList.OnDataBinding(EventArgs e) +56&lt;br&gt;
   System.Web.UI.WebControls.BaseDataList.DataBind() +52&lt;br&gt;
   System.Web.UI.WebControls.BaseDataList.EnsureDataBound() +76&lt;br&gt;
   System.Web.UI.WebControls.BaseDataList.CreateChildControls() +63&lt;br&gt;
   System.Web.UI.Control.EnsureChildControls() +87&lt;br&gt;
   System.Web.UI.Control.PreRenderRecursiveInternal() +50&lt;br&gt;
   System.Web.UI.Control.PreRenderRecursiveInternal() +170&lt;br&gt;
   System.Web.UI.Control.PreRenderRecursiveInternal() +170&lt;br&gt;
   System.Web.UI.Control.PreRenderRecursiveInternal() +170&lt;br&gt;
   System.Web.UI.Control.PreRenderRecursiveInternal() +170&lt;br&gt;
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2041&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
Version Information: Microsoft .NET Framework Version:2.0.50727.1433; ASP.NET Version:2.0.50727.1433 &lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
το web.config που χρησιμοποιώ είναι&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&amp;lt;configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0"&amp;gt;&lt;br&gt;
  &amp;lt;appSettings&amp;gt;&lt;br&gt;
    &amp;lt;add key="CrystalImageCleaner-AutoStart" value="true" /&amp;gt;&lt;br&gt;
    &amp;lt;add key="CrystalImageCleaner-Sleep" value="60000" /&amp;gt;&lt;br&gt;
    &amp;lt;add key="CrystalImageCleaner-Age" value="120000" /&amp;gt;&lt;br&gt;
  &amp;lt;/appSettings&amp;gt;&lt;br&gt;
  &amp;lt;connectionStrings&amp;gt;&lt;br&gt;
    &amp;lt;remove name="LocalSqlServer"  /&amp;gt;&lt;br&gt;
&amp;lt;add name="testConnectionStringARXH1"
connectionString="Server=localhost;User
ID=root;Password=xxxx;Database=mydatabase" /&amp;gt;&lt;br&gt;
  &amp;lt;/connectionStrings&amp;gt;&lt;br&gt;
  &amp;lt;system.web&amp;gt;&lt;br&gt;
    &amp;lt;customErrors mode="Off" /&amp;gt;&lt;br&gt;
    &amp;lt;compilation defaultLanguage="c#"  /&amp;gt;&lt;br&gt;
    &lt;br&gt;
  &amp;lt;/system.web&amp;gt;&lt;br&gt;
&amp;lt;/configuration&amp;gt;&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
αξίζει να σημειωθεί ότι τοπικά στον υπολογιστή μου όλα δουλεύουν!!!!&lt;br&gt;
Ευχαριστώ</description></item></channel></rss>