++++++++++++++
<configuration>
<system.web>
<compilation>
<assemblies>
<add assembly="BusObj"/>
</assemblies>
</compilation>
</system.web>
</configuration>
++++++++++++++
But the runtime looks for BusObj.dll in wwwroot/bin/ instead of wwwroot/thisapplication/bin, which is the actual folder containing the application program.
I know that the MSDN library says "The value of <add> is an assembly name, not a DLL path. ASP.NET looks up the assembly name to find its physical DLL location." So what should I do to specify these DLL's? How can I tell the runtime to look for them in a self-defined folder?
Thanks very much!i not very sure abt this but as far as i know to use a dll in .net u simply physically add the dll in the /bin directory of ur application and use it dierctly u dont nedd to do any configuration settings
Yep... I know that by default, runtime will look for those dll in my application's bin, if not found, it looks in upper levels.
But in my case, it always looks up in wwwroot/bin, instead of wwwroot/myapplication/bin, so wired.
And if I try using VS.NET to create a project called exactly myapplication, then delete everything automatically created in that folder, then put my code into THIS myapplication, supprisingly it works in this case.....???
Why...
0 comments:
Post a Comment