Thursday, March 8, 2012
An error occured during printing (0x80004005)
The print button on the sql reporter web interface fails to print.
I read about lots of other people with this problem, but Microsoft has
not acknowledged it yet as far as I know.Bump.|||Set.|||Spike.
No responses though...|||Hi
That code indicates access denied. Make sure that the user has the rights to
use the print queue.
Regards
--
Mike Epprecht, Microsoft SQL Server MVP
Zurich, Switzerland
IM: mike@.epprecht.net
MVP Program: http://www.microsoft.com/mvp
Blog: http://www.msmvps.com/epprecht/
"cmay" <cmay@.walshgroup.com> wrote in message
news:1132004788.705682.231620@.o13g2000cwo.googlegroups.com...
> Spike.
> No responses though...
>|||Score.
--
Cheers,
'(' Jeff A. Stucker
\
Senior Consultant
www.rapidigm.com
"Mike Epprecht (SQL MVP)" <mike@.epprecht.net> wrote in message
news:O4gHzWW6FHA.2176@.TK2MSFTNGP14.phx.gbl...
> Hi
> That code indicates access denied. Make sure that the user has the rights
> to use the print queue.
> Regards
> --
> Mike Epprecht, Microsoft SQL Server MVP
> Zurich, Switzerland
> IM: mike@.epprecht.net
> MVP Program: http://www.microsoft.com/mvp
> Blog: http://www.msmvps.com/epprecht/
> "cmay" <cmay@.walshgroup.com> wrote in message
> news:1132004788.705682.231620@.o13g2000cwo.googlegroups.com...
>> Spike.
>> No responses though...
>|||Mike,
Thanks for the reply.
All of our printers are network printers, but I have access to all of
them, and I can print from any other program just fine.
If I didn't have access to the print queue, would I be able to print
from other programs (Word, Outlook, Notepad, etc)?
Chris
Mike Epprecht (SQL MVP) wrote:
> Hi
> That code indicates access denied. Make sure that the user has the rights to
> use the print queue.
> Regards
> --
> Mike Epprecht, Microsoft SQL Server MVP
> Zurich, Switzerland|||Actually...
I tried hooking up a local printer to one machine.
It prints the first page of the report and then craps out with this
exact same exception.
Wednesday, March 7, 2012
An attempt to attach an auto-named database for file...failed. A database with the same name exi
I know allot of folks are having this problem and I tried lots of things but nothing works. I understand the problem is coping the SQL Express on another server is the problem - I just not sure what to do?
Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42
This is the last statement on the Stack Trace:
SqlException (0x80131904): An attempt to attach an auto-named database for file e:\wwwdata\81d0493f\www\App_Data\TestDatabase.mdf failed. A database with the same name exists, or specified file cannot be opened, or it is located on UNC share.]
System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) +735091
I checked my server forum and they said I had to name a database:
Example: Database=(unique name);
But this didn't work either.
I just tried a simple web project that has only one database and one table in SQL Express with one sqldatasource and one datagrid. It works fine on my pc but when I use the copy function in Visio Studio 2005 Pro - I can't run the site on the remote server: www.myjewelrydirect.com
I tried coping the database manually. I tried disconnecting the database before I copy it. Below is my connection statement:
<connectionStrings>
<add name="TestDB" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\TestDatabase.mdf;Integrated Security=True;User Instance=True"
providerName="System.Data.SqlClient" />
</connectionStrings>
With all the comments in these forums - this must be a bug.
I have been working on this problem for over 2 weeks - HELP!
Since this is a web app, it is probably running under the ASPNET user account. Make sure that the ASPNET user, or what ever user your appliction is running under if you've set up something other than the default, has permissions on the directory where the database is located.
If the user doesn't have permissions to the directory, you can't attach the database.
Regards,
Mike Wachal
SQL Express team
-
Check out my tips for getting your answer faster and how to ask a good question: http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=307712&SiteID=1