0

I was trying to create a new database in WebMatrix, and I was shown this error: "Could not load file or assembly "Microsoft.SqlServer.Smo, Version=11.0.0.0, Culture=Neutral, PublicKeyToken=blablabla" or one of its dependencies. System cannot find the file specified.

I am sure that there is some error in SQL Server, but I am not getting help from anyone.

I have already searched alot for this issue. But the main thing is they are all providing help solutions for Visual Studio, none of them are giving some example for web.config or should I say for WebMatrix, I know in VS its pretty simple and easy, but what about WebMatrix?

All that I came upto is somelike in web.config under assemblies, but how to connect it? Or if it is there, how to check whether the file is on system or not?

My question basically is just to know whether the file is in the system; it was installed correctly of not, and to connect it to the project to create new Databases.

4

1 回答 1

0

没人帮我猜!所以我试图自己寻找答案。我在其他一些论坛上发现的是这样的:

在此文件夹下找到 dll:

C:\Program Files\Microsoft SQL Server\100\SDK\Assemblies

并将它们添加到您的站点中,使用 WebMatrix 将需要一些帮助程序;因为我使用 WebMatrix 而不是 Visual Studio。

所以为此我需要一些东西:

@using Helper.Name;

对我来说,问题是 dll 没有安装在 Windows 8 中。并且无法运行,所以出现了异常。

于 2013-09-12T14:59:18.450 回答