CodeVerge.Net Beta


   Explore    Item Entry    Members      Register  Login  
NEWSGROUP
.NET
Algorithms-Data Structures
Asp.Net
C Plus Plus
CSharp
Database
HTML
Javascript
Linq
Other
Regular Expressions
VB.Net
XML

Free Download:




Zone: > NEWSGROUP > Asp.Net Forum > starter_kits_and_source_projects.personal_site_starter_kit Tags:
Item Type: NewsGroup Date Entered: 2/11/2006 10:17:33 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 12 Views: 17 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
13 Items, 1 Pages 1 |< << Go >> >|
Zolex
Asp.Net User
IIS5 and SQL Express2/11/2006 10:17:33 PM

0/0

Hello,

I moved my website to my server (w2k with asp.net v2 and sqlexpress)

Now I connected the personal.mdf and aspnetdb.mdf to the sqlexpress.
Created a website in IIS and pointed it to the website folder.

I now get invalid value for key 'attachdbfilename'.

Any idea ?

 

jwadsworth
Asp.Net User
Re: IIS5 and SQL Express2/12/2006 2:34:21 AM

0/0

Did you set the application you created in IIS to use ASP.NET 2.0 from the ASP.NET tab?

Also, can you post the connectionStrings section from your web.config without user names or passwords? In addition, what is the name of your database file (.mdf)?


Jeremy

Extended Personal Site Starter kit
Zolex
Asp.Net User
Re: IIS5 and SQL Express2/12/2006 1:35:30 PM

0/0

In the meantime I did a lot of actions found on the internet to fix the problem.

Now I have following message when building the site (F5) from VisualWebdeveloper and when running it from the IIS at 127.0.0.1:

Login failed for user ''. The user is not associated with a trusted SQL Server connection

These are my connectionstrings:

<remove name="LocalSqlServer" />
<
add name="LocalSqlServer" connectionString="Data Source=K\SQLExpress;Persist Security Info=True;User Instance=True; AttachDBFilename=|DataDirectory|personal.mdf" providerName="System.Data.SqlClient"/>
<
add name="Personal" connectionString="Data Source=K\SQLExpress;User Instance=True;AttachDBFilename=|DataDirectory|personal.mdf" providerName="System.Data.SqlClient" />

The db personal and aspnetdb are in SQLExpress. I created the aspnetdb with the aspnet_regsql utility.

My remarks: I somewhere lost the connectionstring to the aspnetdb apparently. But I noticed in a another post that you used two times a connectionstring to the personal.mdf.
Also running the ASP.net configuration from within the VisualWebDeveloper gives me 'unable to connect to SQL Server Database'

BTW: It seems you already helped me a lot last week, thank you for that. Big Smile [:D]


 


 

 

jwadsworth
Asp.Net User
Re: IIS5 and SQL Express2/12/2006 4:37:07 PM

0/0

Both connection strings should only be pointing to personal.mdf if you created the membership tables in that database. Did you run the aspnet_regsql utility on your personal.mdf or aspnetdb.mdf?

 


Jeremy

Extended Personal Site Starter kit
Zolex
Asp.Net User
Re: IIS5 and SQL Express2/12/2006 5:30:29 PM

0/0

I run the aspnet_regsql util on the aspnetdb now and changed the connectionstrings to:

<remove name="LocalSqlServer" />

<add name="LocalSqlServer"connectionString="Data Source=K\SQLEXPRESS; User Instance=True; Initial Catalog=aspnetdb;Integrated Security=True" providerName="System.Data.SqlClient"/>

<add name="Personal" connectionString="Data Source=K\SQLExpress; User Instance=True; AttachDBFilename=|DataDirectory|personal.mdf"providerName="System.Data.SqlClient" />

But still no work, although the error changed to:
Cannot open database "aspnetdb" requested by the login. The login failed.
Login failed for user 'K\ASPNET'

Brrrrr, already 20 hours on this, I could have learned Chinese within this time Smile [:)]

Zolex
Asp.Net User
Re: IIS5 and SQL Express2/12/2006 5:59:26 PM

0/0

Ok?,

I clearly messed up the connectionstrings by modding it for almost 20 hours Embarrassed [:$]

I changed them back to:

<add name="LocalSqlServer" connectionString="data source=.\SQLEXPRESS; Integrated Security=SSPI;
AttachDBFilename=|DataDirectory|aspnetdb.mdf; User Instance=true" providerName="System.Data.SqlClient" />

<add name="Personal"connectionString="data source=.\SQLEXPRESS; Integrated Security=SSPI;
AttachDBFilename=|DataDirectory|personal.mdf; User Instance=true
" providerName="System.Data.SqlClient" />

And whoohoo, I have my asp.net configuration panel back now.

but when running the app...: User does not have permission to perform this action Sad [:(]
Up to the next ...

 

 

jwadsworth
Asp.Net User
Re: IIS5 and SQL Express2/13/2006 2:57:20 AM

0/0

Have you set the permissions on your folders for the website? Also, can you post the whole error message?
Jeremy

Extended Personal Site Starter kit
snehalrana
Asp.Net User
Re: IIS5 and SQL Express2/17/2006 5:40:33 PM

0/0

Hi jwadsworth,

We have Windows 2003 server and IIS 6.0. We are successfully running ASP.NET 1.1433 but recently upgraded to ASP.NET 2.0 It installed successfully and it also shows up in the services but how do we find out that ASP.NET 2.0 is running as we don't see any 2.0 configuration tools under Administrative tools.

Any suggestions, tips or hints would help.

Thanks

Snehal Rana

jwadsworth
Asp.Net User
Re: IIS5 and SQL Express2/17/2006 9:22:45 PM

0/0

If you right click on one of your virtual directories or websites and select properties, there should be a tab labeled ASP.NET. On this tab you can choose what version of ASP.NET to use for that site or virtual directory.


Jeremy

Extended Personal Site Starter kit
snehalrana
Asp.Net User
Re: IIS5 and SQL Express2/18/2006 6:10:25 PM

0/0

Hi jwadsworth,

We finally figured it out how to configure ASP.NET 2.0 for any site. We appreciate your quick response. Now we have another problem for converting our database from SQL express to SQL 2000. We have posteed this as a seperate question.

Let me know if you know the steps to do this.

Thanks much for your response. Keep up good work.

Snehal Rana

jwadsworth
Asp.Net User
Re: IIS5 and SQL Express2/19/2006 5:40:23 AM

0/0

Snehal,

I have looked into this a little and I just don't know enough about database management to accomplish this. I believe that it can be done. I'm sure it is a matter of attaching the SQL Express database to SQL Server 2005 Management Studio and scripting all the necessary objects. Then running those scripts on a new SQL 2000 database. Next you would need to script the data and apply that to the SQL 2000 db. I just haven't done any of this because I've always had a DB Admin to do it. If you find a solution online to this issue, please post a link here. I have had others email this same request to me.


Jeremy

Extended Personal Site Starter kit
paggy4u
Asp.Net User
Re: IIS5 and SQL Express2/19/2006 11:57:07 AM

0/0

Dear Jeremy,

I have also emailed you with the same request. One thing is possible in this case. I will expalin it here.

Since you have already placed your website on the net, you are having a full fledged connection available with database. All you have to do is generate the sql of that database.( I mean database available on online server )

You can save the sql with tables and stored procedures on your local harddisk also. This will generate all the tables and stored procedures, but will not generate any of your personal databse. All we need is the
tables and stored procedures only.

Thanks

Paggy4u


Paggy4u
-----------------------------------------
An Unblinking eye on IronRuby,Asp.Net and .Net
http://ironruby.blogspot.com/
jwadsworth
Asp.Net User
Re: IIS5 and SQL Express2/19/2006 9:39:13 PM

0/0

Paggy4u,

I have emailed you a link with the script I attempted to create.


Jeremy

Extended Personal Site Starter kit
13 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Beginning ASP.NET 2.0 E-commerce in C# 2005: From Novice to Professional Authors: Cristian Darie, Karli Watson, Pages: 681, Published: 2005
Pro ASP.NET 3.5 in C# 2008 Authors: Matthew MacDonald, Mario Szpuszta, Pages: 1498, Published: 2007
ASP.NET AJAX UpdatePanel Control Authors: Bertrand Le Roy, Matt Gibbs, Pages: 0, Published: 2007
Beginning ASP.NET 2.0 in C# 2005: From Novice to Professional Authors: Matthew MacDonald, Pages: 1148, Published: 2006
Sharepoint 2007: The Definitive Guide Authors: James Pyles, Christopher M. Buechler, Bob Fox, Murray Gordon, Michael Lotter, Jason Medero, Pages: 794, Published: 2007
MCSA/MCSE: Windows 2000 Network Security Administration Study Guide Authors: Bill English, Russ Kaufmann, Pages: 574, Published: 2003
ASP.NET 2.0 + CD-ROM / druk 1 Authors: M. van Otegem, Pages: 244, Published: 2006
Hacking Exposed: Network Security Secrets and Solutions Authors: Stuart McClure, Joel Scambray, George Kurtz, Pages: 729, Published: 2001

Web:
Rainbow Portal Community - Install problem on XP MCE/IIS5/Sqlexpress Install problem on XP MCE/IIS5/Sqlexpress. Last post 01-06-2008, 3.26 by nuser. 4 replies. Sort Posts:. Oldest to newest, Newest to oldest ...
microsoft.public.inetserver.iis.security: RE: IIS 5 AND sql Server ... Subject: IIS 5 AND sql Server same box - integrated Security fails ... IIS, SQL, Office XP/2000, ... >index server, IE and Outlook express, etc. ...
Connecting from iis5 ASP.net2.0 to sql2005 - SQL Server - Tag: Connecting from iis5 ASP.net2.0 to sql2005. 3 · sqlcmd on SQL EXPRESS: Access denied during CREATE DATABASE command The SQLServer (EXPRESS) service and ...
McDonalds China IIS 5 Server defaced The server reports it is a Windows 2000 server running IIS 5 so I'd be curious as to ... of SQL Express and Visual Basic with this free SQL Fundamentals CD. ...
IIS5.1, MSSQL Server 2008 - what PHP package to use? - IIS.net I have SQL server 2008 (SQLEXPRESS), and I'm a bit confused as to if there is a PHP package taht supports both. Old server version (iis5.1), ...
Browse by Tags - IIS.net Failed Auth in IIS5.1. I am using WinXP Pro SP2, IIS 5.1, .Net 1.1, .Net 2.0, VS 2003 , VS 2005, SQL Express 2005. Basically I never was aware that there ...
SourceGear | downloads MSDE 2000 (SP3a), SQL Server 2000 (SP3a), SQL Server 2005 (SP1), or SQL Server Express 2005 (SP1); IIS 5.0 or higher with .NET Framework 2.0; Microsoft . ...
problem with sqlexpress - ASP.NET Forums For IIS5, and IIS6 running in IIS5 isolation mode, the default web server account is ... It looks like SQL Express was not installed or may not be running . ...
World Recipe V 2.11 C# SQL Stored Procedure - N-Tier Application ... Jun 14, 2008 ... Windows XP/2003 .NET Framework 2.0 IIS 5 or 6 SQL 2005 Express/Standard Editing Software: Visual Studio 2005 NotePad - no intellisense ...
Connecting from iis5 ASP.net2.0 to sql2005 - SQL Server - Query must output: EMPID, FULLNAME, SCHDATE,STARTTIME,STOPDTIME Thank You Tag: Connecting from iis5 ASP.net2.0 to sql2005. 16 · SQL Server Express 2005 Hi ...




Search This Site:










impersonaization

calling calendar control from a user control

what is {0} and {1:f} ?

flat file and text file

theme changing using webpart control

error when trying to add a new module on remote server

css - newbee question

return to where user was before login?

how to access the control which is inside the createuserwizard control's templete

web application project: cassini port in use

page_unload() event

day, month, and year.

add databound control to web part

treeview problems: limited autopostback / linkbutton in node / multiple trees

adding a new location problem

sql server

asp.net com+ & xml intergrating all this services to one application of telematics

cant debug into 2nd project (both in same solution)

formatting date of an rss feed using exslt

catching the delete event when a module is deleted from the instance menu

"specified cast not valid" error message

advice on howto requery a db

getting "the type must be loadable by buildmanager.gettype(string typename)" though the dll is in bin

how to fill different comboboxes with data from different tables

live@edu in moss

error: assembly manifest definition when modifying npoll

preferred method to force module width

asp.net - asp

starter kits

phantom compile error

 
All Times Are GMT