cagin
cagin

Reputation: 5930

Unable to use classes contained in a class library folder

I have a class library and it has a folder. My projects classes are in that folder. I can use the class which is without that folder, but I can't use classes which are in that folder. For example:

Without that folder:

Example exmp = new Example(); 

I can use exmp normally.

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 is only on my computer. The other computers in the team haven't got the same problem.

Upvotes: 1

Views: 648

Answers (3)

cagin
cagin

Reputation: 5930

I started my project with administrator privileges and this solved my problem.

Upvotes: 1

Tolgahan Albayrak
Tolgahan Albayrak

Reputation: 3206

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

Upvotes: 0

Jon Skeet
Jon Skeet

Reputation: 1500923

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...

Upvotes: 1

Related Questions