1 <!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2 <html xmlns=
"http://www.w3.org/1999/xhtml" >
5 <title>enableHtmlAccess == false
</title>
8 <style type=
"text/css">
17 #silverlightControlHost {
22 <script type=
"text/javascript">
23 function onSilverlightError(sender
, args
) {
26 if (sender
!= null && sender
!= 0) {
27 appSource
= sender
.getHost ().Source
;
29 var errorType
= args
.ErrorType
;
30 var iErrorCode
= args
.ErrorCode
;
32 var errMsg
= "Unhandled Error in Silverlight 2 Application " + appSource
+ "\n" ;
34 errMsg
+= "Code: "+ iErrorCode
+ " \n";
35 errMsg
+= "Category: " + errorType
+ " \n";
36 errMsg
+= "Message: " + args
.ErrorMessage
+ " \n";
38 if (errorType
== "ParserError") {
39 errMsg
+= "File: " + args
.xamlFile
+ " \n";
40 errMsg
+= "Line: " + args
.lineNumber
+ " \n";
41 errMsg
+= "Position: " + args
.charPosition
+ " \n";
42 } else if (errorType
== "RuntimeError") {
43 if (args
.lineNumber
!= 0) {
44 errMsg
+= "Line: " + args
.lineNumber
+ " \n";
45 errMsg
+= "Position: " + args
.charPosition
+ " \n";
47 errMsg
+= "MethodName: " + args
.methodName
+ " \n";
50 throw new Error (errMsg
);
56 <!-- Runtime errors from Silverlight will be displayed here.
57 This will contain debugging information and should be removed or hidden when debugging is completed -->
58 <div id='errorLocation'
style=
"font-size: small;color: Gray;"></div>
60 <div id=
"silverlightControlHost">
61 <object data=
"data:application/x-silverlight-2," type=
"application/x-silverlight-2" width=
"1600" height=
"1200">
62 <param name=
"source" value=
"enableHtmlAccess.xap"/>
63 <param name=
"onerror" value=
"onSilverlightError" />
64 <param name=
"background" value=
"white" />
65 <param name=
"enablehtmlaccess" value=
"false"/>
66 <a href=
"http://go.microsoft.com/fwlink/?LinkID=115261" style=
"text-decoration: none;">
67 <img src=
"http://go.microsoft.com/fwlink/?LinkId=108181" alt=
"Get Microsoft Silverlight" style=
"border-style: none"/>
70 <iframe style='visibility:hidden;height:
0;width:
0;border:
0px'
></iframe>