有人试过MSDN的设计模板吗? [英] Anyone tried the design templates from MSDN?

查看:44
本文介绍了有人试过MSDN的设计模板吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,


昨天我发现了MSDN设计模板[1],并且已经看了它们。

看着它们。


我的个人模板有问题。我没有SQL Server

Express已加载,因为我已经有SQL Server 2000,而是使用它。

所有其他样本在此时工作正常您更改了

连接字符串,但Personal示例无法启动。错误

是......


"建立与服务器的连接时发生错误。

连接时到SQL Server 2005,这个失败可能是由于在默认设置下SQL Server不允许远程

连接的事实造成的。 (提供者:SQL网络接口,错误:26 - 错误

查找指定的服务器/实例)"


并且上线...


返回HttpContext.Current.Profile [" StylesheetTheme"]。ToString();


这听起来像问题与个性化有关。我想

它正试图连接到SQL Server Express以获得个性化的数据,但由于没有安装SSE而失败了。


任何人都知道如何解决这个问题并使模板正常工作。

用Access数据库做不了人吗?如果是这样的话,是否有一个简单的方法来修改这个模板呢?


感谢您的帮助。如果你还没有看到这些模板,我推荐

吧。


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


-

Alan Silver

(此行下面添加的任何内容都无关和我一起)

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)

推荐答案

是的,昨天我和他们一起玩了。很酷。


但是,关于你遇到的问题。您的SQL Server是否为asp.net 2.0配置了
2000? ...意思是你有一个数据库

已经设置了名为aspnetdb。


另外,你是否告诉web.config文件指向你的SQL Server 2000?

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?


>是的,昨天我和他们一起玩了。非常酷。


非常,但起初有点令人困惑。我可以看到,浏览那些

很多,看看他们是怎么做的将是一项重要工作。
>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.
但是,关于你遇到的问题。您的SQL Server是否为asp.net 2.0配置了? ...意思是你有一个名为aspnetdb的数据库已经设置好了。


不,我不知道怎么做!!你能指点一下

指令吗?

另外,你是否告诉web.config文件指向你的SQL Server 2000?
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?




是的,其他模板都运行正常。我所做的就是更改

连接字符串。这个在它到达那么远之前就会失败

;-(


感谢您的回复,任何进一步的帮助将不胜感激。


-

Alan Silver

(此行下面添加的任何内容都与我无关)



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)

<在您的.NET框架安装方向上的




C:\ WINDOWS \ Microsoft.NET.NET \ Framework \v2.0.50727)

那里应该是一个名为aspnet_regsql.exe的文件。运行该实用程序和

它将为你创建所有asp.net特定的

表的数据库。应该这样做。

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.


这篇关于有人试过MSDN的设计模板吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆