views:

328

answers:

3

Hi all. i have a class library and it has a folder. My project's classes are in that folder. I can use the class which is without that folder. But i can't use classes which is in that folder. For example:

without that folder:

Example exmp = new Example();

i can use exmp normaly.

in the folder:

User user = new User();

i m using asp.net framework 3.5 with c#

stack trace : at MedulaRADClassLib.MedulaClasses.Kullanici..ctor() at KlinikMuhasebe.Giris.f_GirisYap() in C:\Users\cagin_arslan\Desktop\Medula V3 Gerçek 5 Haziran 2009\V3_Gercek\KlinikMuhasebe\Giris.aspx.cs:line 59

inner exception : An error occurred loading a configuration file: Failed to map the path '/'

That problem in only my computer. The other computers in the team hasn't same problem. if you have an idea please say it to me...

A: 

Well it sounds like something either in the User constructor or something it calls, or in the User's static initializer, or something that calls. Or possibly in the classloader which is looking for that class (if it's Java).

If you post the full stack trace of the exception it's likely to give a lot more of a clue - in particular, which class is throwing the exception!

(You should also say what platform you're on. Is this Java, .NET, something else?)

A search for

"An error occurred loading a configuration file" "Failed to map the path"

finds quite a few hits suggesting it's ASP.NET, with one solution suggesting running VS2005 as an administrator...

Jon Skeet
i m using asp.net framework 3.5 with vista. Kullanici kul = new Kullanici();stack trace : at MedulaRADClassLib.MedulaClasses.Kullanici..ctor() at KlinikMuhasebe.Giris.f_GirisYap() in C:\Users\cagin_arslan\Desktop\Medula V3 Gerçek 5 Haziran 2009\V3_Gercek\KlinikMuhasebe\Giris.aspx.cs:line 59inner exception : An error occurred loading a configuration file: Failed to map the path '/'.
cagin
Please edit your question to include that stack trace. Then have a look at the type initializer for Kullanici... what does it do in a static constructor or static variable initializers?
Jon Skeet
A: 

be sure that the user account which the program runs on, has file read / write / modify privileges

Tolgahan Albayrak
DÜn akşam bilgisayarımı kapatmadan evel hiç bi sorun yoktu. Fakat bilgisayarı yeniden açtığımda bu hatayla karşılaştım. İzinlerle lakalı bir sorunolduğunu sanmıyorum. ama yinede kontrol ediyorum.
cagin
Please write comments in English - they'll be more useful to the *vast* majority of users of the site.
Jon Skeet
A: 

I m starting my project as adminstrator and solved that problem Thanks everybody

cagin