Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Mix up in ASP.NET dll
Message
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00848119
Message ID:
00848120
Views:
16
This message has been marked as the solution to the initial question of the thread.
Hi Michel,

Look at the directive of your .aspx page. It should contain information about where to find your code-behind file. The code behind (.aspx.cs or .aspx.vb) should be in the same directory as the related .aspx file. I;m also assuming that the French directory is another virutal directory.

If you are not using a different virtual directory then you need to use probing. You can use the element in the application configuration file to specify subdirectories the runtime should search when locating an assembly. The following example shows how to specify directories the runtime should search.
<configuration>
   <runtime>
      <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
         <probing privatePath="bin;bin2\subbin;bin3"/>
      </assemblyBinding>
   </runtime>
</configuration>
The privatePath attribute contains the directories that the runtime should search for assemblies. If the application is located at C:\Program Files\MyApp, the runtime will look for assemblies that do not specify a code base in C:\Program Files\MyApp\Bin, C:\Program Files\MyApp\Bin2\Subbin, and C:\Program Files\MyApp\Bin3. The directories specified in privatePath must be subdirectories of the application base directory.



>I am trying to resolve a weird issue since about three hours. I had one ASP.NET project to serve the English version of a Web site. All that is in production and running well. Today, I created a new project to manage the French version of the site. So, I created the new project under the /French directory of the Web site. All my project components are saved ok. I also build the DLL files in the /French/Bin directory. It is compiling well. So, basically, I have something like this for both versions:
>
>/
>/bin
>/French
>/French/bin
>
>When I run the French version, I can see that all aspx pages are responding well. However, the codebeind of each of them is using the /bin and not the /French/bin.
>
>What should I look for?
-----------------------------------------

Cathi Gero, CPA
Prenia Software & Consulting Services
Microsoft C# / .NET MVP
Mere Mortals for .NET MVP
cgero@prenia.com
www.prenia.com
Weblog: blogs.prenia.com/cathi
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform