473,385 Members | 1,798 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Anyone tried the design templates from MSDN?

Hello,

I discovered the MSDN design templates[1] yesterday and have been
looking at them.

I have a problem with the Personal template. I don't have SQL Server
Express loaded, as I already have SQL Server 2000, and use that instead.
All of the other samples work fine with this when you change the
connection string, but the Personal sample fails to start. The error
is...

"An error has occurred while establishing a connection to the server.
When connecting to SQL Server 2005, this failure may be caused by the
fact that under the default settings SQL Server does not allow remote
connections. (provider: SQL Network Interfaces, error: 26 - Error
Locating Server/Instance Specified)"

and comes on the line...

return HttpContext.Current.Profile["StylesheetTheme"].ToString();

This sounds like the problem is to do with personalisation. I guess that
it is trying to connect to SQL Server Express to get the personalisation
data, but failing because there isn't an SSE installation.

Anyone any idea how to get around this and get the template working.
Can't personlisation be done with an Access database? If so, is there a
simple way to modify this template to do that instead?

Thanks for any help. If you haven't seen these template, I recommend
them.

[1]
http://msdn.microsoft.com/asp.net/re...s/default.aspx

--
Alan Silver
(anything added below this line is nothing to do with me)
Dec 15 '05 #1
10 2452
Yes, I played around with them yesterday. Pretty cool.

However, in regards to the issue you are having. Is your SQL Server
2000 configured for asp.net 2.0? ...meaning do you have a database
already setup called aspnetdb.

Also, did you tell the web.config file to point to your SQL Server 2000?

Dec 15 '05 #2
>Yes, I played around with them yesterday. Pretty cool.

Very, but a bit confusing at first. I can see that wading through that
lot to see how they did it will be a major job.
However, in regards to the issue you are having. Is your SQL Server
2000 configured for asp.net 2.0? ...meaning do you have a database
already setup called aspnetdb.
No, I wouldn't know how to!! Can you point me in the way of some
instructions?
Also, did you tell the web.config file to point to your SQL Server 2000?


Yup, the other templates all work fine. All I did was change the
connection string. This one falls over before it gets that far though
;-(

Thanks for the reply, any further help would be gratefully appreciated.

--
Alan Silver
(anything added below this line is nothing to do with me)
Dec 15 '05 #3
in your .NET framework installation direction (
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727)
there should be a file called aspnet_regsql.exe. Run that utility and
it will create the database for you with all the asp.net specific
tables. That should do it.

Dec 15 '05 #4
Ooops I forgot. You also need to attach that database file that is in
the APP_DATA folder to Sql Server as well. This is one way sql server
can use that database in its current location. Or, you can copy the
..mdf and the .ldf files to SQL Server Data Directory which you can find
in Program files, Sql Server, 80 folder and data directory (I think
this is it), then you need to run a stored proc to attach the database
passing in the database name and file path. See this article for
further reference

http://databasejournal.com/features/...le.php/2224361

Dec 15 '05 #5
Thanks for the info. In the end, I decided it was easier to download SSE
and install it on the development machine that I used for the design
templates. That avoided all these issues!!

Cowards' way out, but I have enough to do without reconfiguring things
just to get the samples to work.

Ta ra
Ooops I forgot. You also need to attach that database file that is in
the APP_DATA folder to Sql Server as well. This is one way sql server
can use that database in its current location. Or, you can copy the
.mdf and the .ldf files to SQL Server Data Directory which you can find
in Program files, Sql Server, 80 folder and data directory (I think
this is it), then you need to run a stored proc to attach the database
passing in the database name and file path. See this article for
further reference

http://databasejournal.com/features/...le.php/2224361


--
Alan Silver
(anything added below this line is nothing to do with me)
Dec 19 '05 #6
>Thanks for the info. In the end, I decided it was easier to download
SSE and install it on the development machine that I used for the
design templates. That avoided all these issues!!


OK, so it didn't!!

Once I installed SSE, the site came up OK, but when I tried to change
the theme, I got the following exception...

Failed to update database "D:\DOWNLOADS\MICROSOFT ASP.NET DESIGN
TEMPLATES\PERSONAL\APP_DATA\ASPNETDB.MDF" because the database is
read-only.

Now I checked the file in question and it isn't read-only. I also gave
NETWORK_SERVICE full permissions on both the file and the containing
folder.

Any ideas why I got this and what I can do about it? TIA

--
Alan Silver
(anything added below this line is nothing to do with me)
Dec 20 '05 #7
So that means that you are running asp.net on Win 2003 Server? If
not, then the process identity is aspnet

Dec 20 '05 #8
>So that means that you are running asp.net on Win 2003 Server? If
not, then the process identity is aspnet


Sorry, should have mentioned that. Yes I'm using Windows 2003 Server SP1
with IIS6.

I don't actually think it's a permissions issue, as if it were, the
exception would have been different. This one seems to think the
database is read-only, not that it doesn't have permission to modify the
file. I could be wrong here though!!

Does that help? Thanks

--
Alan Silver
(anything added below this line is nothing to do with me)
Dec 20 '05 #9
Anyone any idea about this? TIA
Thanks for the info. In the end, I decided it was easier to download
SSE and install it on the development machine that I used for the
design templates. That avoided all these issues!!


OK, so it didn't!!

Once I installed SSE, the site came up OK, but when I tried to change
the theme, I got the following exception...

Failed to update database "D:\DOWNLOADS\MICROSOFT ASP.NET DESIGN
TEMPLATES\PERSONAL\APP_DATA\ASPNETDB.MDF" because the database is
read-only.

Now I checked the file in question and it isn't read-only. I also gave
NETWORK_SERVICE full permissions on both the file and the containing
folder.

Any ideas why I got this and what I can do about it? TIA


--
Alan Silver
(anything added below this line is nothing to do with me)
Dec 21 '05 #10
Anyone?
Anyone any idea about this? TIA
Thanks for the info. In the end, I decided it was easier to download
SSE and install it on the development machine that I used for the
design templates. That avoided all these issues!!


OK, so it didn't!!

Once I installed SSE, the site came up OK, but when I tried to change
the theme, I got the following exception...

Failed to update database "D:\DOWNLOADS\MICROSOFT ASP.NET DESIGN
TEMPLATES\PERSONAL\APP_DATA\ASPNETDB.MDF" because the database is
read-only.

Now I checked the file in question and it isn't read-only. I also gave
NETWORK_SERVICE full permissions on both the file and the containing
folder.

Any ideas why I got this and what I can do about it? TIA


--
Alan Silver
(anything added below this line is nothing to do with me)
Jan 2 '06 #11

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

43
by: grz02 | last post by:
Hi, Im an experienced database+software designer and developer, but, unfortunately, anything to do with web-programming and web-systems designs is still a pretty new area to me... (been working...
5
by: Clifford W. Racz | last post by:
Has anyone solved the issue of translating lists in Word 2003 (WordML) into xHTML? I have been trying to get the nested table code for my XSLT to work for a while now, with no way to get the...
6
by: Mr.Tickle | last post by:
How can I impleement a singleton pattern in an abstract or interface for inheritance to an object so all the pattern rules are followed on all similar objects?
3
by: Franck | last post by:
Hello, I'm looking for a way of giving some arguments to the client's printer I've found that link but...
2
by: tdavisjr | last post by:
These are some great samples MS has released. They are great to learn from on how to do cross browser xhtml page layout using ASP.NET 20 and Visual Web Developer. See link: ...
169
by: JohnQ | last post by:
(The "C++ Grammer" thread in comp.lang.c++.moderated prompted this post). It would be more than a little bit nice if C++ was much "cleaner" (less complex) so that it wasn't a major world wide...
11
by: Ken Fine | last post by:
I am using VS.NET 2008 and like it a lot. One of the very few things I don't like is a bug that seems to spawn literally thousands of   strings, one after the other, on design view changes....
1
by: Nilla | last post by:
Hi! I have downloaded and installed the design templates Personal Design and Basic from http://msdn.microsoft.com/en-us/asp.net/aa336613.aspx but I cannot make them appear among other templates...
1
by: PaulH | last post by:
Just announcing the news in the spirit of the News-groups: Artisteer - Web and Blog Design Automation Software Unveiled at BlogWorld Expo Ground-breaking Software Instantly Creates...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.