How to re-create Personal.mdf
Wed, 17 Sep 2008 11:16:07 GMT
Good morning -
My name is Demirelli and I'm new to the forum, thank You for having me. I have been working with the Personal Starter Kit and everything works fine on my XP machines. However, recently, I got a Vista machine. I am running the latest Visual Web Developer / SQL , bot Express versions. The application builds fine. However, when I try to deploy to browser, I get the following error:
"Database 'C:\USERS\DEMIRELLI\DOCUMENTS\VISUAL STUDIO 2008\WEBSITES\PERSONALWEBSITE5\APP_DATA\PERSONAL.MDF' cannot be upgraded because its non-release version (607) is not supported by this version of SQL Server. You cannot open a database that is incompatible with this version of sqlservr.exe. You must re-create the database. Could not open new database 'C:\USERS\DEMIRELLI\DOCUMENTS\VISUAL STUDIO 2008\WEBSITES\PERSONALWEBSITE5\APP_DATA\PERSONAL.MDF'. CREATE DATABASE is aborted. An attempt to attach an auto-named database for file C:\Users\Demirelli\Documents\Visual Studio 2008\WebSites\PersonalWebSite5\App_Data\Personal.mdf failed. A database with the same name exists, or specified file cannot be opened, or it is located on UNC share."
------------------------
I have done some research and it seems like I have to manually re-create the sql database, I guess this is a Vista issue. However, I downloaded the manual scripts from the starter kit website and tried to run the add-personal.sql file but it did not work. I'd be more than grateful for any assistance. Thank You in advance.
- Demirelli,
http://www.TurkishImports.TV
http://www.EvilEyePromo.com
multi upload in PWS
Sun, 07 Feb 2010 11:17:40 GMT
hi i want to have multi upload in Personal Website Starter kit how can i add another fileupload there so that i can add more photo there tnx
gobless us
Just installed Personal Site Starter Kit and loaded it into Visual Web Dev Express
Sat, 06 Feb 2010 15:56:59 GMT
The install is not working well. Any clues as to what this message is all about?:
Server Error in '/PERSWSTE1' Application.
Database 'C:\USERS\JANINE\DOCUMENTS\VISUAL STUDIO 2008\WEBSITES\PERSWSTE1\APP_DATA\PERSONAL.MDF' cannot be upgraded because its non-release version (607) is not supported by this version of SQL Server. You cannot open a database that is incompatible with this version of sqlservr.exe. You must re-create the database.Could not open new database 'C:\USERS\JANINE\DOCUMENTS\VISUAL STUDIO 2008\WEBSITES\PERSWSTE1\APP_DATA\PERSONAL.MDF'. CREATE DATABASE is aborted.An attempt to attach an auto-named database for file C:\Users\JANINE\Documents\Visual Studio 2008\WebSites\PERSWSTE1\App_Data\Personal.mdf failed. A database with the same name exists, or specified file cannot be opened, or it is located on UNC share.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.Data.SqlClient.SqlException: Database 'C:\USERS\JANINE\DOCUMENTS\VISUAL STUDIO 2008\WEBSITES\PERSWSTE1\APP_DATA\PERSONAL.MDF' cannot be upgraded because its non-release version (607) is not supported by this version of SQL Server. You cannot open a database that is incompatible with this version of sqlservr.exe. You must re-create the database.Could not open new database 'C:\USERS\JANINE\DOCUMENTS\VISUAL STUDIO 2008\WEBSITES\PERSWSTE1\APP_DATA\PERSONAL.MDF'. CREATE DATABASE is aborted.An attempt to attach an auto-named database for file C:\Users\JANINE\Documents\Visual Studio 2008\WebSites\PERSWSTE1\App_Data\Personal.mdf failed. A database with the same name exists, or specified file cannot be opened, or it is located on UNC share.Source Error:
The source code that generated this unhandled exception can only be shown when compiled in debug mode. To enable this, please follow one of the below steps, then request the URL:1. Add a "Debug=true" directive at the top of the file that generated the error. Example: <%@ Page Debug="true" %>or:2) Add the following section to the configuration file of your application: Note that this second technique will cause all files within a given application to be compiled in debug mode. The first technique will cause only that particular file to be compiled in debug mode.Important: Running applications in debug mode does incur a memory/performance overhead. You should make sure that an application has debugging disabled before deploying into production scenario.
Stack Trace:
[SqlException (0x80131904): Database 'C:\USERS\JANINE\DOCUMENTS\VISUAL STUDIO 2008\WEBSITES\PERSWSTE1\APP_DATA\PERSONAL.MDF' cannot be upgraded because its non-release version (607) is not supported by this version of SQL Server. You cannot open a database that is incompatible with this version of sqlservr.exe. You must re-create the database.Could not open new database 'C:\USERS\JANINE\DOCUMENTS\VISUAL STUDIO 2008\WEBSITES\PERSWSTE1\APP_DATA\PERSONAL.MDF'. CREATE DATABASE is aborted.An attempt to attach an auto-named database for file C:\Users\JANINE\Documents\Visual Studio 2008\WebSites\PERSWSTE1\App_Data\Personal.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) +4849015 System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) +194 System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHa[...]
Personal Kit Database Issues
Tue, 12 Jan 2010 19:53:19 GMT
Hello I am having a problem with the aspnetdb.mdf when I try to login to the site with the admin acocunt of the website that was created on my machine and uploaded to my hosting provider (godaddy). I was able to get the personal.mdf to work only because I used the find and replace in the edit menu and also by renaming the personal.mdf to my needs and presto the site is now working ! is there a way I can create the admin user so that I continue with my work. I need everyones help on this matter please help.
DKB
Set Focus on Username text box
Thu, 19 Jan 2006 14:42:27 GMT
I have modified the login on the main page slightly. I deleted the PWS login and replaced it with one of the default Login controls in VWD. See www.robgibson.ca . What I would like is to have the default focus set to the username text box within the control. I have tried a few of the solutions presented in the posts here but I can't seem to get anything to work.
Suggestions?
Rob
Guestbook or any other tab/link made invisible unless logged in?
Sun, 09 Dec 2007 20:40:05 GMT
Does anyone know how difficult it would be to make one of the tab's or links invisible unless someone is logged in? I'm using JW's extended kit and am building a video page I would only like visible to people who have a resistered username and password.
Thanks!
Upload Folder
Sun, 02 Mar 2008 00:58:07 GMT
Hi I would like to know about the upload folder in the personal kit. I uploaded about 30 pictures and it worked fine the only thing I can see that might become a problem for me is that when I logged in to manage and edit... the upload folder still contains the pictures. I want to creat a new album with new pictures. I am working with a fear amount of pictures and don't want to waste time with the uploading process by uploading and finding I have more pictures in my newly created album then I want. Is this something I am going to have to troubleshoot.
DKB
Application optimalisation, long serverside parsetime
Tue, 19 Jan 2010 23:21:02 GMT
Hello everyone,
I use the following "starters kit" for my personal website: http://www.asp.net/downloads/starter-kits/personal/
The photobook of the website application is in my purpose the most important. I wil use it for uploading some party-pictures.
On my configuration with a Windows 2008 server and IIS7/SQL Server 2005 express the website haves a long of serverside parsetime. I have no idea how to optimize this application. Can anyone help me with some sugestions for optimize the application?
Thanks a lot!
Martijn
Blank menu entries when activating dynamic display
Sat, 18 Jun 2005 18:38:49 GMT
In the Personal Web Site Strater Kit, if I alter the MaximumDynamicDisplayLevels for the main menu ("menua") on the Default.master from 0 to 3 (actually the default value for ), the dynamic entries for the menu show up as a white square when the page is shown, rather than containing the actual text for the menu item. This appears to be a stylesheet thing, because if I remove the <pages styleSheetTheme="White"/> part of the web.config, the problem goes away. How should the stylesheets be altered so that you can read the menu items? Thanks,
ObjectDataSource 'ObjectDataSource1' could not be found.
Thu, 15 Jan 2009 14:18:34 GMT
I uploaded my PWS into goDaddy.com web hosting and tested it out.
Encountered an error of ObjectDataSource 'ObjectDataSource1' could not be found. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.InvalidOperationException: The type specified in the TypeName property of ObjectDataSource 'ObjectDataSource1' could not be found.Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. Stack Trace:
[InvalidOperationException: The type specified in the TypeName property of ObjectDataSource 'ObjectDataSource1' could not be found.] System.Web.UI.WebControls.ObjectDataSourceView.GetType(String typeName) +1329383 System.Web.UI.WebControls.ObjectDataSourceView.ExecuteSelect(DataSourceSelectArguments arguments) +1866 System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback) +17 System.Web.UI.WebControls.DataBoundControl.PerformSelect() +149 System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +70 System.Web.UI.WebControls.FormView.DataBind() +4 System.Web.UI.WebControls.BaseDataBoundControl.EnsureDataBound() +82 System.Web.UI.WebControls.FormView.EnsureDataBound() +163 System.Web.UI.WebControls.CompositeDataBoundControl.CreateChildControls() +69 System.Web.UI.Control.EnsureChildControls() +87 System.Web.UI.Control.PreRenderRecursiveInternal() +50 System.Web.UI.Control.PreRenderRecursiveInternal() +170 System.Web.UI.Control.PreRenderRecursiveInternal() +170 System.Web.UI.Control.PreRenderRecursiveInternal() +170 System.Web.UI.Control.PreRenderRecursiveInternal() +170 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2041
Also, I already modified my webconfig file as the forum advised.
Please help and advice.
Thanks,
TJ[...]
Object Expected Error Menu Control
Tue, 18 Jul 2006 01:32:04 GMT
I am currently experiencing a javascript "Object Expected" error when rolling over the main menu on the top of the site. I am not experiencing this in my dev environment, and only in my hosted one.
I have simply taken the Personal Web Site starter kit set it up on my dev machine and then also set it up in a hosted online environment.
The main menu (ASP:Menu control), when doing a mouse over is attempting to call Menu_HoverRoot(this). Debugging the issue comes up with the issue being the Menu_HoverRoot call. Being a .Net 2.0 control, I'm not sure where to look for the fix.
Has anyone seen this, figured it out and are able to shed light on the fix for me?
Any help would be appreicated.
Don´t work in my provider
Sat, 28 Nov 2009 17:04:51 GMT
Hi,
I installed the Personal Web Starter Kit in Visual Web Developer 2008 and it´s ok.
I run it in my local computer and have no problems.
But, in the server provider, it´s don´t work. The provider has mssql express.
The connectionStrings:
The server presents this error:
Server Error in '/mypersonal' Application.--------------------------------------------------------------------------------
A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified) Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Data.SqlClient.SqlException: A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)
Source Error:
Line 5: Sub Application_Start(ByVal sender As [Object], ByVal e As EventArgs)Line 6: AddHandler SiteMap.SiteMapResolve, AddressOf Me.AppendQueryStringLine 7: If (Roles.RoleExists("Administrators") = False) ThenLine 8: Roles.CreateRole("Administrators")Line 9: End If
Source File: C:\Inetpub\vhosts\passosecompassos.com.br\httpdocs\lmcon\global.asax Line: 7
Stack Trace:
[SqlException (0x80131904): A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)] System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) +4846887 System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) +194 System.Data.SqlClient.TdsParser.Connect(ServerInfo serverInfo, SqlInternalConnectionTds connHandler, Boolean ignoreSniOpenTimeout, Int64 timerExpire, Boolean encrypt, Boolean trustServerCert, Boolean integratedSecurity, SqlConnection owningObject) +4860189 System.Data.SqlClient.SqlInternalConnectionTds.AttemptOneLogin(ServerInfo serverInfo, String newPassword, Boolean ignoreSniOpenTimeout, Int64 timerExpire, SqlConnection owningObject) +90 System.Data.SqlClient.SqlInternalConnectionTds.LoginNoFailover(String host, String newPassword, Boolean redirectedUserInstance, SqlConnection owningObject, SqlConnectionString connectionOptions, Int64 timerStart) +376 System.Data.SqlClient.SqlInternalConnectionTd[...]
Performance Issues - My Code or Godaddy?
Fri, 01 Jan 2010 17:01:19 GMT
I'm having performance trouble with PWS. My photo pages load quickly, but my home page is very slow. And the login process is slow as well. All other pages load fast. When I run it locally all pages run fast. I'm opening, reading and closing some XML files, but I took that code out and tested it remotely and it didn't make a difference Since all the original stuff is Microsoft best practice code I'm thinking is has more to do with my hosting service. Of course Godaddy says it not them. But, again, when I run it locally and it is super fast and then run it remotely and it takes up to 90 seconds to load the home page, it doesn't seem to be my code that is slowing it down. Should I just try a different hosting service?
Getting error on my website,does not working on my host provider
Tue, 05 Jan 2010 01:22:12 GMT
Hi i have just did some changes in PWS and i uploaded it on godaddy.com ,but when i am opening my website in a browser then i am getting the following error.
If any body know then plz help me .For ur understanding purpose here is the little part of web.config file code ,which is on my host server.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.Data.SqlClient.SqlException: A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)Source Error:
Line 5: void Application_Start(object sender, EventArgs e) {
Line 6: SiteMap.SiteMapResolve += new SiteMapResolveEventHandler(AppendQueryString);
Line 7: if (!Roles.RoleExists("Administrators")) Roles.CreateRole("Administrators");
Line 8: if (!Roles.RoleExists("Friends")) Roles.CreateRole("Friends");
Line 9: }Source File: d:\hosting\5447158\html\Global.asax Line: 7 Stack Trace:
[SqlException (0x80131904): A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)]
System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) +4845255
System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) +194
System.Data.SqlClient.TdsParser.Connect(ServerInfo serverInfo, SqlInternalConnectionTds connHandler, Boolean ignoreSniOpenTimeout, Int64 timerExpire, Boolean encrypt, Boolean trustServerCert, Boolean integratedSecurity, SqlConnection owningObject) +4858557
System.Data.SqlClient.SqlInternalConnectionTds.AttemptOneLogin(ServerInfo serverInfo, String newPassword, Boolean ignoreSniOpenTimeout, Int64 timerExpire, SqlConnection owningObject) +90
System.Data.SqlClient.SqlInternalConnectionTds.LoginNoFailover(String host, String newPassword, Boolean redirectedUserInstance, SqlConnection owningObject, SqlConnectionString connectionOptions, Int64 timerStart) +376
System.Data.SqlClient.SqlInternalConnectionTds.OpenLoginEnlist(SqlConnection owningObject, SqlConnectionString connectionOptions, String newPassword, Boolean redirectedUserInstance) +221
System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, Object providerInfo, String newPassword, SqlConnection owningObject, Boolean redirectedUserInstance) +189
System.Data.SqlClient.SqlConnectionFactory.C[...]
Configuration Error - GoDaddy - Personal Starter Kit
Fri, 16 Dec 2005 19:21:14 GMT
Hi everyone. New to 2.0 and having a hard time getting my site running on GoDaddy. I created the personal site, followed the step by step instructions on the GoDaddy site on installing the Personal Starter Kit, yet still getting an error. Can someone help please? THANKS! Error: Server Error in '/' Application. Configuration Error
Description: An
error occurred during the processing of a configuration file required
to service this request. Please review the specific error details below
and modify your configuration file appropriately.
Parser Error Message: It
is an error to use a section registered as
allowDefinition='MachineToApplication' beyond application level. This
error can be caused by a virtual directory not being configured as an
application in IIS.
Source Error:
Line 16: Line 17: Line 18: Line 19: Line 20: Source File: Line: 18
Pictures dont display
Tue, 22 Dec 2009 15:27:18 GMT
they work great in the 'manage' section but not the album. In the album it even says i have 2 pics
thoughts?
I want to buy complete web site in ASP.NET
Mon, 28 Dec 2009 15:54:43 GMT
Hi ,
I'm planning to buy complete web site programmed in ASP.NET for used cars only .
then I want to change it by self .
where can I find like that ?
password for "Manage"
Sun, 20 Dec 2009 08:20:02 GMT
Hello
I just installed Personal Site Starter Kit,
it looks ok.
Question is : which is, default username/password to login such as menu "Manage" to appear after login .
Thanks
Stefan
Vote action on images
Mon, 21 Dec 2009 01:44:05 GMT
Hi all,
I have a Personal Site up and running - and was wandering if someone had some smart code I could implement so users can vote on the photos - to rate them 1-5 or something. has anyone done this or can help:?
Cheers
Alan
Password Regular Expression
Tue, 24 May 2005 08:58:26 GMT
It appears that there's a password length/format requirement for the personal site registration page, but when I look at the CreateUserWizard properties, the PasswordRegularExpression is not set to anything specific. Does anyone know how/where this default is set?
I change something of photos' gridview,It doesn't work
Fri, 18 Dec 2009 20:29:52 GMT
Hi,guys
I don't need album in my project, So I connet User and Photos as one to many. I add 2 fields for photos: one is foreign key for User, the other is IsPublic.
admin\photos.aspx has a gridview, I change it to this
You currently have no photos.
EditItemTemplate>
after I changed.everything looks fine,but rename, [...]
Webpage output doesnt stay in place.
Mon, 16 Nov 2009 23:51:21 GMT
My webpage sidebar doesn't stay in the main content page. Is there anyone know how to fix this? Thanks.
here's an example how it look...

Usage question
Wed, 25 Nov 2009 17:09:48 GMT
Does the personal site starter kit include markup, codebehind, and everything?
I find it also as a template in VS2008. To use it, should I download it or apply its template in VS2008?
Has anyone made a successful blog using the personal site starter kit as foundatation template?
Thanks.
Solution to: problem with Personal.mdf
Wed, 09 Dec 2009 22:56:10 GMT
Hi all, I myself had a problem with Personal.mdf when compiling the Personal Site starter kit. The error message I received suggested I should make a new Personal.mdf, but until about ten minutes ago, I had no idea how.
The solution is very simple, and quite straightforward:
1. Delete the Personal.mdf datafile from your personal site project (if this cannot be done from within your VS, try deleting from your Windows tree [..]/App_data/ directory where the file resides. 2. Also in this App_data directory there is a file named 'Personal-add.sql'. Open this file in SSMS or whatever client you use to connect to SQL Server 200x 3. Add 'CREATE DATABASE Personal' as the first statement in this file, and execute this statement alone. 4. Change context to your newly created database 5. Execute all the statements in the original file 6. Detach the database (don't know if this is necessary, but then..) 7. Copy your Personal.mdf (and your Personal.ldf) to the forementioned App_Data directory 8. Return to the starter kit project in visual studio or web developer express and press F5 to build the site.
This worked like a charm on my system, hopefully it will work for you, too:-)
How to put server side processed code in between header and footer
Fri, 04 Dec 2009 02:53:01 GMT
Hello,will someone please help..... I am trying to fill out the main content with information that comes from server by the following coding ( some excerpts):....Response.Write(" "); foreach (XmlNode xn in xnList) { string Link = xn["link"].InnerText; string Title = xn["title"].InnerText; string Desc = xn["description"].InnerText; string date = xn["pubDate"].InnerText; Response.Write(" " + Title + "" + " "); Response.Write(date + " "); Response.Write(Desc); } Response.Write(" ");...........Please see attched picture, which shows what is going on---content is not falling in between header and footer. What am I doing wrong? Why my code cannot put the processed information in between header and footer? I did not change original css and original master file. The code for for frontend form file is:<%@ Page Title="" Language="C#" MasterPageFile="~/Default.master"AutoEventWireup="true" CodeFile="Default2.aspx.cs" Inherits="Default2" %> US National Top Stories Politics Technology Business [...]
|