unhandled error in Silverlight application
code: 2104
Category: initializeError
Message: 2104 error
The Default.aspx page shows 2 string connections:
LocalSqlServer="data source=.\SQLEXPRESS;Integrated
Security=SSPI;AttachDBFilename=|DataDirectory|aspnetdb.mdf;User
Instance=true"
OLAPConnectionString="Data Source=localhost;Initial
Catalog=AdventureWorksDW"
but I can´t find the LocalSqlServer string to change the values.
Thanks in advance,
George Jovanovic
You error is at client side. You browser cannot initialize silverlight
app.
It can be many causes why...
- incompatible os, browser or silverlight version
- xaf-file (built by you) is incorrect by some reason
Please specify you OS, Browser and Silverlight versions.
Have you all last updates installed?
Do you install all dependences specified at our readme file?
Please attach xaf-file content info (compiled sample silverlight app)
Regards,
Anatoly
If you can not do this then please check MIME types, other IIS
settings again and restart IIS.
If you can download xap-file then we will analyze other posibilities.
Regards,
Anatoly
Anatoly
Go to MS SQL Management Studio, connect to Analysis Server and check
that database exists.
Then check identity at Default.aspx page.
Does ServerIdentity has rights to your OLAP database?
Anatoly
> The program is running but now I can't get access to database. The messages
It is default setting at C:\Windows\Microsoft.NET\Framework
\v2.0.50727\CONFIG\machine.config
No problem - LocalSqlServer connection string is not used by our
control.
You can see and debug that exception is in OlapWebService.asmx.cs
file.
There is NO Silverlight code, NO complex logic.
We check that user has right to enumerate cubes in OLAP database.
and OLAP server rejects request.
Please create simply application (for example console app) and execute
var connectionString="Data Source=localhost;Initial
Catalog=AdventureWorksDW";
using (var connection = new AdomdConnection(connectionString))
{
string s = "";
connection.Open();
foreach (var c in connection.Cubes)
{
s += c.Name;
}
}
When you can do this successfully we will continue to solve your
issue.
Regards,
Anatoly