Silverlight application , access folder in the web server how to ,

Hi i am getting an error when trying to access files inside a folder in a webserver...how can i access the images inside that folder in my web application .. The error msg I am getting is in the screenshot ... Directory.Getfiles(http://localhost:1441/images/) this is the folder I am trying to access how can I do it?
1.JPG
fatihdiAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

feddasCommented:
This may not work, but it's worth a shot.  It may be an issue with trusting the source.  To allow trust to remote sources close VS 2010.  Then open the %ProgramFiles%\Microsoft Visual Studio 10.0\Common7\IDE\devenv.exe.config file in any text editor and add the loadFromRemoteSources element as follows:

 


reference: http://social.msdn.microsoft.com/Forums/en-US/webdevelopmentprerelease/thread/ea9b9cab-cbfd-496d-8a81-7b3dd06e8c23
0
feddasCommented:
If this webfolder is the same folder your Silverlight application is in you should not be including the http://.  Rather you should be referencing the files with a relative uri, in your case this looks like it would be just Directory.GetFiles("/images/");
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Development

From novice to tech pro — start learning today.