<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.asp.net/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>Time Tracker Starter Kit</title><link>http://forums.asp.net/1005.aspx</link><description>Discussions about the Time Tracker Starter Kit for ASP.NET 2.0.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: An attempt to attach an auto-named database for file ... failed</title><link>http://forums.asp.net/thread/3442278.aspx</link><pubDate>Tue, 06 Oct 2009 03:05:57 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3442278</guid><dc:creator>chetan.sarode</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3442278.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1005&amp;PostID=3442278</wfw:commentRss><description>&lt;p&gt;Another way to solve this query...Thanks&lt;/p&gt;</description></item><item><title>Re: An attempt to attach an auto-named database for file ... failed</title><link>http://forums.asp.net/thread/3437833.aspx</link><pubDate>Fri, 02 Oct 2009 17:56:47 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3437833</guid><dc:creator>Taiwo Egun</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3437833.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1005&amp;PostID=3437833</wfw:commentRss><description>&lt;p&gt;Guys, if you are getting this error running it locally, Visual Studio provides the connection string that you can use. Go to Server Explorer-&amp;gt; and aright click on the name of the .mdf file. Click &amp;quot;Modify Connection...&amp;quot; and select &amp;quot;Advanced&amp;quot; at the bottom, there&amp;#39;s a Textbox with the connection string. Use this if testing locally. When Deployed, change the &amp;quot;AttachDbFilename&amp;quot; to the deployed location. (i.e. &amp;quot;AppData/DBName.mdf&amp;quot;. Hope this helps.&lt;/p&gt;</description></item><item><title>Re: An attempt to attach an auto-named database for file ... failed</title><link>http://forums.asp.net/thread/3288993.aspx</link><pubDate>Mon, 13 Jul 2009 03:02:05 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3288993</guid><dc:creator>chetan.sarode</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3288993.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1005&amp;PostID=3288993</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;CAn you put here more error details here, So that it will be helpful to solve it&lt;/p&gt;</description></item><item><title>Re: An attempt to attach an auto-named database for file ... failed</title><link>http://forums.asp.net/thread/3286330.aspx</link><pubDate>Fri, 10 Jul 2009 15:28:55 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3286330</guid><dc:creator>aebordones</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3286330.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1005&amp;PostID=3286330</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;THE MAIN PROBLEM IS THIS ERROR:&lt;/p&gt;
&lt;p&gt;&amp;quot;OR IT IS LOCATED ON UNC SHARE&amp;quot;,&amp;nbsp; I REALLY DON´T KNOW WHAT&amp;#39;S THE PROBLEM, BECAUSE I´M NOT SHARING ANYTHING... IF YOU FIND SOMETHING... PLESE WRITE ME aebordones@hotmail.com&lt;/p&gt;</description></item><item><title>Re: An attempt to attach an auto-named database for file ... failed</title><link>http://forums.asp.net/thread/3275799.aspx</link><pubDate>Mon, 06 Jul 2009 02:55:08 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3275799</guid><dc:creator>chetan.sarode</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3275799.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1005&amp;PostID=3275799</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Yes thats right ,but recommondation is to use &amp;nbsp;Network Service account&amp;nbsp;to run.&lt;/p&gt;</description></item><item><title>Re: An attempt to attach an auto-named database for file ... failed</title><link>http://forums.asp.net/thread/3273172.aspx</link><pubDate>Fri, 03 Jul 2009 09:30:04 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3273172</guid><dc:creator>garrygrimshaw</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3273172.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1005&amp;PostID=3273172</wfw:commentRss><description>&lt;p&gt;I&amp;#39;ve just had this same problem and figured out what the cause is.&lt;/p&gt;
&lt;p&gt;This error message is happening because the account which the Application Pool is running does not have sufficient permissions to auto-attach the database.&lt;/p&gt;
&lt;p&gt;Please note this is NOT the account which is used to run the website.&amp;nbsp; My Application Pool is the DefaultAppPool and&amp;nbsp;was using Network Service account&amp;nbsp;to run.&lt;/p&gt;
&lt;p&gt;I changed this to Local System and it started working.&amp;nbsp; However, I believe this has security implications which I cannot be bothered to figure out just yet.&amp;nbsp; I&amp;#39;m just happy it&amp;#39;s working.&lt;/p&gt;</description></item><item><title>Re: An attempt to attach an auto-named database for file ... failed</title><link>http://forums.asp.net/thread/2164697.aspx</link><pubDate>Mon, 11 Feb 2008 03:35:56 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2164697</guid><dc:creator>chetan.sarode</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2164697.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1005&amp;PostID=2164697</wfw:commentRss><description>&lt;p&gt;Try to set User Instance=false&lt;/p&gt;</description></item><item><title>Re: An attempt to attach an auto-named database for file ... failed</title><link>http://forums.asp.net/thread/2163852.aspx</link><pubDate>Sun, 10 Feb 2008 02:39:08 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2163852</guid><dc:creator>Mark Barnes</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2163852.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1005&amp;PostID=2163852</wfw:commentRss><description>&lt;p&gt;After a lot of trials, tribulations and errors, I found a solution to the problem.&amp;nbsp; Please mark this as an answer if it turns out helpful.&amp;nbsp; I cannot vouch for the security of this solution.&amp;nbsp; Some say its bad, but I say its good because it works.&lt;br /&gt; &lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;1. Update your connection string to the following:&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;span class="csKeyword"&gt;Driver&lt;/span&gt;=&lt;span class="csValue"&gt;{SQL Native Client}&lt;/span&gt;;&lt;span class="csKeyword"&gt;Server&lt;/span&gt;=&lt;span class="csValue"&gt;.\SQLExpress&lt;/span&gt;;&lt;span class="csKeyword"&gt;AttachDbFilename&lt;/span&gt;=&lt;span class="csValue"&gt;|DataDirectory|mydbfile.mdf&lt;/span&gt;;&lt;span class="csKeyword"&gt; Database&lt;/span&gt;=&lt;span class="csValue"&gt;dbname&lt;/span&gt;;&lt;span class="csKeyword"&gt;Trusted_Connection&lt;/span&gt;=&lt;span class="csValue"&gt;Yes&lt;/span&gt;;&lt;/p&gt;&lt;p&gt;&amp;nbsp;Why is the Database parameter needed? If the named database have
already been attached, SQL Server does not reattach it. It uses the
attached database as the default for the connection.&lt;/p&gt;&lt;p&gt;2. Under the application pool properties in the identity tab, set &amp;quot;Network Service&amp;quot; or &amp;quot;ASP.NET&amp;quot; as the security account.&lt;/p&gt;&lt;p&gt;3. Make sure you grant read and write permissions to &amp;quot;Network Service&amp;quot; or &amp;quot;ASP.NET&amp;quot; account.&amp;nbsp; Give full permissions and adjust later to be on the safe (or unsafe) side.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;b&gt;COMMENTARY:&amp;nbsp;&lt;/b&gt; 

&lt;/p&gt;&lt;p class="MsoNormal"&gt;The security model for .NET, ASP.NET, SQL Server, and
Windows is extremely difficult to wrap your head around.&lt;span&gt;&amp;nbsp; &lt;/span&gt;You must know each technology’s security
model and how they interplay with one another in order to become
proficient and productive.&lt;span&gt;&amp;nbsp; The exception error messages don&amp;#39;t really tell you what the problem is.&amp;nbsp; &lt;/span&gt;There are no books or
articles that cover these security models comprehensively. Consequently, many
developers figure out what works by trial and error and wind up compromising security, which renders the security system useless. &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: An attempt to attach an auto-named database for file ... failed</title><link>http://forums.asp.net/thread/1713886.aspx</link><pubDate>Fri, 18 May 2007 04:19:07 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1713886</guid><dc:creator>chetan.sarode</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1713886.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1005&amp;PostID=1713886</wfw:commentRss><description>&lt;p&gt;This is not depend upon what version you used...&lt;/p&gt;
&lt;p&gt;See in the App_Data folder or see in Server Explorer in VS, you will get there..&lt;/p&gt;</description></item><item><title>Re: Help attaching databases</title><link>http://forums.asp.net/thread/1713520.aspx</link><pubDate>Thu, 17 May 2007 18:56:13 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1713520</guid><dc:creator>abbadum</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1713520.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1005&amp;PostID=1713520</wfw:commentRss><description>&lt;p&gt;If you can help me, please write directly to my email at ajarncarlos@gmail.com&lt;/p&gt;&lt;p&gt;Thanks&amp;nbsp;&lt;/p&gt;</description></item><item><title>Help attaching databases</title><link>http://forums.asp.net/thread/1713517.aspx</link><pubDate>Thu, 17 May 2007 18:55:14 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1713517</guid><dc:creator>abbadum</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1713517.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1005&amp;PostID=1713517</wfw:commentRss><description>&lt;p&gt;I need help attaching databases. I tried to use the attach string provided by my host and it doesn&amp;#39;t work. I don&amp;#39;t know what to do.&lt;/p&gt;&lt;p&gt;This is my string:&lt;/p&gt;&lt;p&gt;&amp;lt;add name=&amp;quot;CLASSIFIEDSDB&amp;quot; connectionString=&amp;quot;Data Source=.\SQLExpress;Integrated Security=True;Database=banana.qsh.es_ff7d004e-b930-40da-8e7a-dab56782dd2f;AttachDBFilename=|DataDirectory|CLASSIFIEDSDB.mdf;User Instance=True&amp;quot; providerName=&amp;quot;System.Data.SqlClient&amp;quot;/&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;remove name=&amp;quot;LocalSqlServer&amp;quot;/&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;lt;add name=&amp;quot;LocalSqlServer&amp;quot; connectionString=&amp;quot;Data Source=.\SQLExpress;Integrated Security=SSPI;Database=banana.qsh.es_ca9a7de8-492f-47c5-bbc6-e2ad4eb27a40;AttachDBFilename=|DataDirectory|aspnetdb.mdf;User Instance=true&amp;quot; providerName=&amp;quot;System.Data.SqlClient&amp;quot;/&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;/connectionStrings&amp;gt; &lt;/p&gt;&lt;p&gt;The host is http://banana.qsh.eu&amp;nbsp; &lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Should I keep the ldf files or they are created automatically when I tried to run the page for the first time?&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: An attempt to attach an auto-named database for file ... failed</title><link>http://forums.asp.net/thread/1567443.aspx</link><pubDate>Wed, 07 Feb 2007 12:18:55 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1567443</guid><dc:creator>raikkonen</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1567443.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1005&amp;PostID=1567443</wfw:commentRss><description>Ok,thanks for your answers...I finally copy and paste the same database.mdf from my usb flash and it worked...so a good thing to do anytime is to&amp;nbsp;backup always your application...&lt;img src="http://forums.asp.net/emoticons/emotion-4.gif" alt="Stick out tongue" /&gt;</description></item><item><title>Re: An attempt to attach an auto-named database for file ... failed</title><link>http://forums.asp.net/thread/1564961.aspx</link><pubDate>Tue, 06 Feb 2007 01:32:12 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1564961</guid><dc:creator>Zhao Ji Ma - MSFT</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1564961.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1005&amp;PostID=1564961</wfw:commentRss><description>&lt;blockquote&gt;&lt;div&gt;&lt;img src="http://forums.asp.net/Themes/default/images/icon-quote.gif" /&gt; &lt;strong&gt;raikkonen:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt; 
&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;thanks for the answer but I haven't&amp;nbsp;the file "&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:'Arial','sans-serif';mso-fareast-font-family:'Times New Roman';mso-bidi-font-size:11.0pt;"&gt;&lt;em&gt;aspnetdb.mdf " in my application directories...In addition,I use Sql Express Edition and I don't think is possible to attach my database file ...&lt;/em&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;/div&gt;&lt;/blockquote&gt;
&lt;p&gt;What is your error message?&lt;/p&gt;
&lt;p&gt;The original error of this thread is not able to attach the aspnetdb.mdf file using SQL Express:&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;font color=#ff0000&gt;[SqlException (0x80131904): An attempt to attach an auto-named database for file &lt;font color=#ff0000&gt;C:\WebSites\Test_TimeTracker\&lt;/font&gt;&lt;font color=#0000ff&gt;App_Data\aspnetdb.mdf&lt;/font&gt; failed. A database with the same name exists, or specified file cannot be opened, or it is located on UNC share.]&lt;/font&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size=2&gt;So If you are using SQL Express as Membership Provider, there is aspnetdb.mdf file, please use the asp.net Administrative Tool to configure users and roles, this tool will create this file automatically.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;If your error message shows different .mdf file name, please make sure the file is already exists under App_Data folder and it is accessible. Please check your connection string as well, e.g.&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;font color=#ff0000 size=2&gt;&amp;lt;connectionStrings&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;lt;add name="aspnet_staterKits_Test_TimeTracker" connectionString="Data Source=.\SQLExpress;Integrated Security=True;AttachDBFilename=|DataDirectory|aspnetdb.mdf;"/&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;lt;remove name="LocalSqlServer"/&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;lt;add name="LocalSqlServer"connectionString="Data Source=.\SQLExpress;Integrated Security=True;AttachDBFilename=|DataDirectory|aspnetdb.mdf;"/&amp;gt;&lt;br /&gt;&amp;lt;/connectionStrings&amp;gt;&lt;/font&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: An attempt to attach an auto-named database for file ... failed</title><link>http://forums.asp.net/thread/1564161.aspx</link><pubDate>Mon, 05 Feb 2007 16:25:50 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1564161</guid><dc:creator>raikkonen</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1564161.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1005&amp;PostID=1564161</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;thanks for the answer but I haven't&amp;nbsp;the file "&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:'Arial','sans-serif';mso-fareast-font-family:'Times New Roman';mso-bidi-font-size:11.0pt;"&gt;&lt;em&gt;aspnetdb.mdf " in my application directories...In addition,I use Sql Express Edition and I don't think is possible to attach my database file ...&lt;/em&gt;&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Re: An attempt to attach an auto-named database for file ... failed</title><link>http://forums.asp.net/thread/1564160.aspx</link><pubDate>Mon, 05 Feb 2007 16:24:18 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1564160</guid><dc:creator>raikkonen</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1564160.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1005&amp;PostID=1564160</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;thanks for the answer but I haven't&amp;nbsp;the file "&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:'Arial','sans-serif';mso-fareast-font-family:'Times New Roman';mso-bidi-font-size:11.0pt;"&gt;&lt;em&gt;aspnetdb.mdf " in my application directories...In addition,I use Sql Express Edition and I don't think is possible to attach my database file ...&lt;/em&gt;&lt;/span&gt;&lt;/p&gt;</description></item></channel></rss>