CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums

ASP.NET Web Hosting – 3 Months Free!



Zone: > NEWSGROUP > Asp.Net Forum > starter_kits_and_source_projects.dotnetnuke.getting_started Tags:
Item Type: NewsGroup Date Entered: 12/7/2005 1:29:53 AM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 5 Views: 13 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
6 Items, 1 Pages 1 |< << Go >> >|
dlykins
Asp.Net User
Desperate!!!! -- can't get DNN4 with sqlexpress2005 to work on winxp --- can't connect to DB!!!!!12/7/2005 1:29:53 AM

0/0

HELP!!!!! HELP!!!!
I followed the install guide for DNN4 (install version)...but it doesn't work with SQL 2005 express on Win XP...i have tried everything!!

below is the error message and the connection strings...HELP!!!

 

Error Installing DotNetNuke
Current Assembly Version: 04.00.00
ERROR: Could not connect to database specified in connectionString for SqlDataProviderSystem.Data.SqlClient.SqlException: Unable to open the physical file "C:\dotnetnuke\App_Data\dotnetnuke.mdf". Operating system error 5: "5(Access is denied.)". An attempt to attach an auto-named database for file C:\dotnetnuke\App_Data\dotnetnuke.mdf failed. A database with the same name exists, or specified file cannot be opened, or it is located on UNC share. at System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection owningObject) at System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection) at System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) at System.Data.SqlClient.SqlConnection.Open() at Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteNonQuery(String connectionString, CommandType commandType, String commandText, SqlParameter[] commandParameters) at Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteNonQuery(String connectionString, CommandType commandType, String commandText) at DotNetNuke.Data.SqlDataProvider.ExecuteScript(String Script, Boolean UseTransactions) /************************************************************/ /***** Initialization Script *****/ /***** *****/ /***** *****/ /***** Note: To manually execute this script you must *****/ /***** perform a search and replace operation *****/ /***** for dbo. and *****/ /***** *****/ /************************************************************/ if exists (select * from dbo.sysobjects where id = object_id(N'Version') and OBJECTPROPERTY(id, N'IsTable') = 1) begin if '' <> '' begin EXECUTE sp_rename N'dbo.Version', N'Version', 'OBJECT' EXECUTE sp_rename N'PK_Version', N'PK_Version', 'OBJECT' EXECUTE sp_rename N'IX_Version', N'IX_Version', 'INDEX' ALTER TABLE dbo.Version ADD CONSTRAINT IX_Version UNIQUE NONCLUSTERED ( Major, Minor, Build ) ON [PRIMARY] end end else begin if not exists (select * from dbo.sysobjects where id = object_id(N'Version') and OBJECTPROPERTY(id, N'IsTable') = 1) begin CREATE TABLE dbo.Version ( [VersionId] [int] IDENTITY (1, 1) NOT NULL , [Major] [int] NOT NULL , [Minor] [int] NOT NULL , [Build] [int] NOT NULL ,
<connectionStrings>
  <!-- Connection String for SQL Server 2005 Express -->
  <add
    name="DotNetNuke"
    connectionString="Data Source=.\SQLExpress;Integrated Security=True;User Instance=True;AttachDBFilename=|DataDirectory|dotnetnuke.mdf;"
    providerName="System.Data.SqlClient" />
  <!-- Connection String for SQL Server 2000/2005
    <add
      name="DotNetNuke"
      connectionString="Server=(local);Database=DotNetNuke;uid=dnnuser;pwd=password;"
      providerName="System.Data.SqlClient" />
   -->
  </connectionStrings>
  <appSettings>
    <!-- Connection String for SQL Server 2005 Express - kept for backwards compatability - legacy modules   -->
    <add key="DotNetNuke" value="Data Source=.\SQLExpress;Integrated Security=True;User Instance=True;AttachDBFilename=|DataDirectory|dotnetnuke.mdf;"/>
    <!-- Connection String for SQL Server 2000/2005 - kept for backwards compatability - legacy modules
    <add key="DotNetNuke" value="Server=(local);Database=DotNetNuke;uid=dnnuser;pwd=password;"/>
    -->
    <add key="InstallTemplate" value="DotNetNuke.install.config" />
    <!--  Alternative Install Templates (included in package)
    <add key="InstallTemplate" value="Club.install.config" />
    <add key="InstallTemplate" value="Personal.install.config" />
    <add key="InstallTemplate" value="SmallBusiness.install.config" />
    -->
    <add key="AutoUpgrade" value="true" />
    <add key="InstallMemberRole" value="true" />
    <add key="ShowMissingKeys" value="false" />
    <add key="EnableWebFarmSupport" value="false" />
    <add key="EnableCachePersistence" value="false"/>
  </appSettings>

[email protected]
Asp.Net User
Re: Desperate!!!! -- can't get DNN4 with sqlexpress2005 to work on winxp --- can't connect to DB!!!!!12/7/2005 2:38:56 PM

0/0

Check the NTFS permissions on the folder the MDB file is in.  Add MODIFY permissions for the ASP.NET user (ASPNET or NETWORK SERVICE) if they don't already exist.  You did give permissions for the user you connect as, correct?

Jeff


Please: Don't forget to click "Mark as Answer" on the post that helped you. That way future readers will know which post solved your issue.
dlykins
Asp.Net User
Re: Desperate!!!! -- can't get DNN4 with sqlexpress2005 to work on winxp --- can't connect to DB!!!!!12/7/2005 11:46:56 PM

0/0

Jeff -

Yes..i had already given ASPNET full control of the App_data folder.

As for the user, i login to the pc as DON and i gave it full control as well.

But in the webconfig, i setup a user in the sql 2005 express db called:  dnnuser.

does the winXP login and sql2005 user have to be the same???

mufahad149
Asp.Net User
Re: Desperate!!!! -- can't get DNN4 with sqlexpress2005 to work on winxp --- can't connect to DB!!!!!12/8/2005 3:31:22 AM

0/0

I posted an article with the steps of installing DNN 4.0 with SQL Express with screenshots. It has'nt been approved yet as soon as it does I'll send u the link.
Muhammad Fahad
Pakistan
mufahad149
Asp.Net User
Re: Desperate!!!! -- can't get DNN4 with sqlexpress2005 to work on winxp --- can't connect to DB!!!!!12/8/2005 4:31:12 AM

0/0

No the users dont need to be the same...

Look at this one http://forums.asp.net/1135001/ShowPost.aspx and retry.


Muhammad Fahad
Pakistan
dlykins
Asp.Net User
Re: Desperate!!!! -- can't get DNN4 with sqlexpress2005 to work on winxp --- can't connect to DB!!!!!12/8/2005 4:41:08 AM

0/0

It works!!!!

I finally go this to work...(well sorta)...

Forget trying to do it with the Install version or the source version....I had to use the getting started version and followed these instructions (of sbwalker) to the tee:  http://forums.asp.net/1114393/ShowPost.aspx

I could never get it working otherwise......tried it on 4 different WinXP machines....

Only when I used the getting started version (DNN 4.0.1) did it get it to work.....

my configuration:

WinXP, DNN 4.0.1, sql 2005 express, iis 5.1, Visual Web Developer Express, DNN getting started 4.0.1

 

6 Items, 1 Pages 1 |< << Go >> >|


Free Download:


Web:
ng.asp-net-forum.dotnetnuke-getting_started/17 - fix error problem ... Desperate!!!! -- can't get DNN4 with sqlexpress2005 to work on winxp --- ca n't connect to DB!!!!! 0, 1, 9/7/2008 6:10:33 AM ...
Page and links error in 3.0.11 - ng.asp-net-forum.dotnetnuke - Fix ... can't get dnn4 with sqlexpress2005 to work on winxp --- can't connect to db! ... modules admin section for display, not persisting to database ...
ng.asp-net-forum.dotnetnuke-getting_started/17 - fix error problem ... Desperate!!!! -- can't get DNN4 with sqlexpress2005 to work on winxp --- ca n't connect to DB!!!!! 0, 1, 9/7/2008 6:10:33 AM ...
Page and links error in 3.0.11 - ng.asp-net-forum.dotnetnuke - Fix ... can't get dnn4 with sqlexpress2005 to work on winxp --- can't connect to db! ... modules admin section for display, not persisting to database ...
ng.asp-net-forum.dotnetnuke-getting_started/17 - fix error problem ... Desperate!!!! -- can't get DNN4 with sqlexpress2005 to work on winxp --- ca n't connect to DB!!!!! 0, 1, 9/7/2008 6:10:33 AM ...
Page and links error in 3.0.11 - ng.asp-net-forum.dotnetnuke - Fix ... can't get dnn4 with sqlexpress2005 to work on winxp --- can't connect to db! ... modules admin section for display, not persisting to database ...
ng.asp-net-forum.dotnetnuke-getting_started/17 - fix error problem ... Desperate!!!! -- can't get DNN4 with sqlexpress2005 to work on winxp --- ca n't connect to DB!!!!! 0, 1, 9/7/2008 6:10:33 AM ...
Page and links error in 3.0.11 - ng.asp-net-forum.dotnetnuke - Fix ... can't get dnn4 with sqlexpress2005 to work on winxp --- can't connect to db! ... modules admin section for display, not persisting to database ...
ng.asp-net-forum.dotnetnuke-getting_started/17 - fix error problem ... Desperate!!!! -- can't get DNN4 with sqlexpress2005 to work on winxp --- ca n't connect to DB!!!!! 0, 1, 9/7/2008 6:10:33 AM ...
Page and links error in 3.0.11 - ng.asp-net-forum.dotnetnuke - Fix ... can't get dnn4 with sqlexpress2005 to work on winxp --- can't connect to db! ... modules admin section for display, not persisting to database ...




Search This Site:










newbee question-iframe, what info available

missing web.config

can not log into website

removing dnn and dotnetnuke from meta keywords - help!

problem when accessing dotnetnuke page

port 1084??? why does dnn 4.0.1 starter kit create a port in the url??

annoyed

urgent! - instaling dnn on windows 2003 server

error after upgrading to dnn 3.2

redirect to two portals?

installation bug: redirect failed !

sql removed and my dnn site still works

dnn 4.x.x membership tutorial or sample

problem with dotnetnuke 2.1.2

missing module permissions

opening sln files in vs.net

site wizard import limitations

newbie question - how to create multiple parent portals with multiple domains - dnn3.1

i'm having issues trying to get dnn 2.1 installed properly

container.zip: installation problems

viewing my helloworld module

no newsletter

editing new module

how to insert null value when the datatype is datetime or integer?

dotnetnuke installation

dnn 3.0.13 and msde

major install problem

pay pal

null reference error after installation

need help with using multiple sites off dnn setup

  Privacy | Contact Us
All Times Are GMT