﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>InstantASP Community Forums / InstantForum.NET 4.x / Installation / Upgrades / Community Support  / MSDE connection woe / Latest Posts</title><generator>InstantForum.NET v4.1.4</generator><description>InstantASP Community Forums</description><link>http://community.instantasp.co.uk/</link><webMaster>sales@instantasp.co.uk</webMaster><lastBuildDate>Fri, 21 Nov 2008 18:15:49 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: MSDE connection woe</title><link>http://community.instantasp.co.uk/Topic12822-59-1.aspx</link><description>Thank you very much for your suggestion, however, I've resolved this another way, (by changing the connection to use explicit SQL authentication, rather than a trusted connection.)&lt;/P&gt;&lt;P&gt;I can see the forum now on my test page and from my remote connection. :D&lt;/P&gt;&lt;P&gt;BTW there seems to be a small bug in your installer. The "Test page" shortcut placed in the start menu tries to launch:&lt;/P&gt;&lt;P&gt;&lt;a target="_blank" href="http://localhost/instantforum414/"&gt;http://localhost/instantforum414/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;But the installer has created the application as InstantForum413 in IIS, so the above should read:&lt;/P&gt;&lt;P&gt;&lt;a target="_blank" href="http://localhost/instantforum413/"&gt;http://localhost/instantforum413/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;to make it work :)&lt;/P&gt;&lt;P&gt;Thanks again for your reply though, but I'm more familiar with SQl authentication, so I'll leave it at as it is if it all works :)&lt;/P&gt;&lt;P&gt;Andyf</description><pubDate>Fri, 18 May 2007 09:11:24 GMT</pubDate><dc:creator>andyf</dc:creator></item><item><title>RE: MSDE connection woe</title><link>http://community.instantasp.co.uk/Topic12822-59-1.aspx</link><description>Hi Andy,&lt;P&gt;Try adding the NETWORKSERVICE windows account to the InstantForum414 database within MSDE and give this db_owner privledges. If you don't have a GUI available you'll need to use OSQL. You can use the SQL below to associate a user...&lt;/P&gt;&lt;P&gt;USE [InstantForum414]&lt;BR&gt;GO&lt;BR&gt;DECLARE @username SYSNAME&lt;BR&gt;SELECT @username = HOST_NAME() + '\NETWORKSERVICE&lt;BR&gt;USE Master&lt;BR&gt;EXEC sp_grantlogin @username&lt;BR&gt;USE [InstantForum414]&lt;BR&gt;EXEC sp_grantdbaccess @username&lt;BR&gt;EXEC sp_addrolemember N'db_owner', @username&lt;BR&gt;GO&lt;/P&gt;&lt;P&gt;You'll need to save this locally to say AddForumUser.sql then use OSQL to execute this against your database from the command prompt...&lt;/P&gt;&lt;P&gt;osql -E -S (local)\instance_name -i c:\AddForumUser.sql&lt;/P&gt;&lt;P&gt;If you have a GUI such as MSDE admin or the &lt;a target="_blank" href="http://www.microsoft.com/downloads/details.aspx?familyid=c039a798-c57a-419e-acbc-2a332cb7f959&amp;amp;displaylang=en" target=_blank&gt;SQL Server Web Data Administrator&lt;/A&gt; this could be a little easier. &lt;P&gt;I hope this helps. Please respond if you continue to have any problems.</description><pubDate>Fri, 18 May 2007 09:01:36 GMT</pubDate><dc:creator>Ryan Healey</dc:creator></item><item><title>MSDE connection woe</title><link>http://community.instantasp.co.uk/Topic12822-59-1.aspx</link><description>Hi, I've bought IF and trying to get it going.&lt;/P&gt;&lt;P&gt;The installer has created a DB in my MSDE server&lt;/P&gt;&lt;P&gt;When  I try to run the site, I get :&lt;/P&gt;&lt;P&gt;Exception Type:        System.Data.SqlClient.SqlException&lt;BR&gt;Exception Message:     Login failed for user 'NT AUTHORITY\NETWORK SERVICE'.&lt;BR&gt;Exception Source:      .Net SqlClient Data Provider&lt;BR&gt;Exception Target Site: GetConnection&lt;/P&gt;&lt;P&gt;Looks like the app can't connect to my DB....but I can't see why.&lt;/P&gt;&lt;P&gt;My connection string in web.config is:&lt;/P&gt;&lt;P&gt;server=localhost;trusted_connection=true;database=InstantForum414&lt;/P&gt;&lt;P&gt;I've tried 127.0.0.1, (local), S1523xxx (the server name), but all to no avail.&lt;/P&gt;&lt;P&gt;TCP is enabled for MSDE, on 1433&lt;/P&gt;&lt;P&gt;I just don't know what to try now... any ideas...?&lt;/P&gt;&lt;P&gt;Could I use a hard coded non-trusted connection using SQL authentication?&lt;/P&gt;&lt;P&gt;Is the web.config the ONLY place that the connection is defined?&lt;/P&gt;&lt;P&gt;Thx in advance&lt;/P&gt;&lt;P&gt;&lt;BR&gt; </description><pubDate>Fri, 18 May 2007 08:23:40 GMT</pubDate><dc:creator>andyf</dc:creator></item></channel></rss>