Hello,
Windows Server 2003
SQL Server Express 2005
Integrated Authentication with NETWORK SERVICE defined as a dbo_owner user for the database.
Connection String
<add name="SiteSqlServer" connectionString="Data Source=.\SQLExpress;Integrated Security=True;User Instance=True;AttachDBFilename=|DataDirectory|myDatabaseName.mdf;" providerName="System.Data.SqlClient" />
Medium Trust CAS is configured, which should not present any problems according to the DNN doc.
Go to start the installation get this off the bat....
The current identity (NT AUTHORITY\NETWORK SERVICE) does not have write access to 'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files'
Dunno why i need to be setting permissions in my Windows directory, but added full control for the network service.
I get to the connection page in the install wizard and get the following when i click test. Database is configured to accept remote named pipes and tcp/ip connections. I originally had it locked down to not accept remote connections, WHICH SHOULD WORK - THE ONLY CONNECTION IS LOCAL FROM ASP>NET
Connection Error(s):
Index #: 0
Source: .Net SqlClient Data Provider
Class: 20
Number: 233
Message: A connection was successfully established with the server, but then an error occurred during the login process. (provider: Named Pipes Provider, error: 0 - No process is on the other end of the pipe.)
I click on test connection again....
Connection Error(s):
Index #: 0
Source: .Net SqlClient Data Provider
Class: 16
Number: 5120
Message: Unable to open the physical file "C:\Inetpub\wwwroot\gravidSoft\website\App_Data\gravidSoftDNN.mdf". Operating system error 5: "5(Access is denied.)".
Index #: 1
Source: .Net SqlClient Data Provider
Class: 14
Number: 15350
Message: An attempt to attach an auto-named database for file C:\Inetpub\wwwroot\gravidSoft\website\App_Data\gravidSoftDNN.mdf failed. A database with the same name exists, or specified file cannot be opened, or it is located on UNC share.
I am assuming this is because a connection has already been established, the database file mounted, and the code is trying to repeat this and getting an access violation.
Any help would be appreciated. I have been a developer for 15 years so dont be afraid to speak at that level.
Thanks,
Matthew