Click here to Skip to main content
15,867,453 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hai All
I am adding silverlight xap in my website ,this xap used to load system folder structure in treeview,if i run using loacalhost in url(localhost/web/company.aspx),it work(i.e) system folder structure loaded in treeview,but if i use ip address or machine name like(http://192.168.0.54/web/company.aspx or http://admin-pc/web/company.aspx) it not load folder structure,simply it show blank page.

Why if use localhost in url it append folder structure ,but if i use ip address or machine name not append folder structure ?

For testing purpose i will use button and label,it will work in all url like localhost or ip address or machine name.


pls reply me asap


Regards
Aravindb
Posted
Updated 12-Dec-13 18:43pm
v10
Comments
w1sph 2-Dec-13 4:21am    
just to check: the machine name / ip you try are the same machine as 'localhost'?
Aravindba 2-Dec-13 4:37am    
yes,i try in same machine with ip and machine name,not work,but if i use localhost it work
w1sph 2-Dec-13 4:38am    
does your localhost url also contain http? like: 'url(http://localhost/web/company.aspx)'?
also: could you post some of your code?
Aravindba 2-Dec-13 5:17am    
yes,localhost contain http://,but in chrome by default if we enter with http://localhost/web/company.aspx it automatically change to localhost/web/company.aspx

1 solution

I think, it is security limitation. In Silverlight 5 your application should be the trusted one to support unlimited access to local file system: http://msdn.microsoft.com/ru-ru/library/ee721083(v=vs.95).aspx.
 
Share this answer
 
Comments
Aravindba 13-Dec-13 4:54am    
hi thank for ur reply, same codings work with localhost in url,but ip address or machine name not work.
in silver light application i am enable OOB and tick trust equivalent browser someting...
Irina Pykhova 13-Dec-13 5:12am    
and did you sign your application? When you run it from localhost signing is not required. But in all other cases it is not running as trusted without signature
Irina Pykhova 13-Dec-13 5:08am    
can you debug it? I.e. attach with debugger and in Debug-Exceptions check to break when exception is thrown. Also check debugger output window. Any more information or exceptions?
Aravindba 13-Dec-13 6:09am    
actually i develop silverlight application separately for load directory in treeview and if i select if show selected node text in textbox,for websit,i will use .xab file form Client folder.So how i use debugger.my website not fully developed in silverlight,only load directory in treeview and seleted nod text in textbox.bcz in asp.net we cant get file browse path.
Irina Pykhova 13-Dec-13 8:46am    
try to do the simplest Silverlight application and debug this issue there.
And you didn't answer about signing, did you sign your app?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900