CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums

ASP.NET Web Hosting – 3 Months Free!



Can Reply:  No Members Can Edit: No Online: Yes
Zone: > NEWSGROUP > Asp.Net Forum > visual_studio.vs_2005_web_application_projects Tags:
Item Type: NewsGroup Date Entered: 5/31/2006 12:13:11 AM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 1 Views: 25 Favorited: 0 Favorite
2 Items, 1 Pages 1 |< << Go >> >|
Berehem
Asp.Net User
Why can't I place my assemblies in a sub-directory of the bin folder?5/31/2006 12:13:11 AM

0/0

I have a web application project in VS 2005. I want to have the following directory structure for the output assemblies of my application.

    \---H
        |   H.csproj
        |   H.csproj.user
        |   Service1.asmx
        |   Service1.asmx.cs
        |   Web.config
        |
        +---bin
            |
            +---Debug
            |           H.dll
            |           Service1.asmx
            |           Service1.asmx.cs
            |           Web.config
            |           H.pdb
            |
            \---Release
                        H.dll
                        Service1.asmx
                        Service1.asmx.cs
                        Web.config
           
However, I get a run-time error from ASP.NET (hosted by Visual Studio) because it expects my assemblies to be in the bin folder. I want to retain this directory structure and still run my application from within Visual Studio. How can I do this? i.e.,

  • How can I ensure that everything that is requried by application to run exists in the bin\Debug and bin\Release folders?
  • How can I tell VS to use bin\Debug or bin\Release as the virtual folder for running my application depending on the active configuration when I hit F5 in VS?

Essentially, I want to have a directory structure for web-applications that is similar to what I would for any other type of application (winApps, ConsoleApps etc.)

I would really appreciate any help. Thanks.
vcsjones
Asp.Net User
Re: Why can't I place my assemblies in a sub-directory of the bin folder?5/31/2006 2:53:25 AM

0/0

You can tell the runtime where to probe using the configuration like this:

<configuration>
	<runtime>
		<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
			<probing privatePath="bin;bin\Release"/>
		</assemblyBinding>
	</runtime>
</configuration>

For mor information see this page:
http://msdn2.microsoft.com/en-us/library/4191fzwb.aspx

Berehem:
How can I tell VS to use bin\Debug or bin\Release as the virtual folder for running my application depending on the active configuration when I hit F5 in VS?

That's possible, but it would require defining the paths programmically with the AppDomain and not use the config file.


Cheers,
       Kevin Jones


2 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Programming Perl in the .NET Environment Authors: Yevgeny Menaker, Michael Saltzman, Robert J. Oberg, Pages: 496, Published: 2002

Web:
MSDN Visual Basic General Including data files in "Click Once ... My application will not run unless the "Hands" folder, 9 data files and 3 ... Create a subdirectory named bin and place all of your application files here, ...
Server Errors when updating live Web Applications online - Rick ... In case you don't know about App_Offline.htm: It's a file you can drop into the ..... I put my app's assemblies into a sub-folder of bin and name the folder ...
Making Local Assemblies of different versions Coexist - .NET 1)Place the different versions of Assembly D in the different subdirectories of the bin folder with the version name as the sub-directory ...
DotNetNuke > Community > Blogs - Locked assemblies when using ... Assemblies that are shadow copied will then show up in a sub-directory of ... I can simply drop my xxx.ascx.vb file in the same folder as xxx.ascx and it ...
" target="_" >TechBubble - Locked assemblies when using Assemblies that are shadow copied will then show up in a sub-directory of this folder. In my test, the files from the path were not shadow copied ...
Localization and satellite assembly problem in the bin/Debug/es-MX folder under my project code and renaming it to ... satellite assembly to the es-MX subdirectory of the application's ...
Web.Config problem with sub site - SubSonic Forums My web.config, bin directory, and App_Code folder in the .... I don't know but you can override the web.config in subfolders. ...
Merge Module Destination [Archive] - Acresso Community NET 2003 folder !!!! My assemblies still cant find them! .... (temporarily reset targetdir somewhere to winsysdir or the bin subdirectory? ...
Building Re-Usable ASP.NET User Control and Page Libraries with VS ... One last note: I obviously don’t recommend calling sub-directories ..... Can you deploy with just an assembly in bin/ and a web.config file (plus images and ...
K. Scott Allen : HttpModule Catch-22 After some google searches I determined the workaround is to place the assembly with the HttpModule into the /bin directory of the application which doesn't ...




Search This Site:










mobile application

could not find codebehind files

error bc30002 - not recognizing web services at runtime - <applicationsettings> in web.config

how do i convert a vs 2005 wap back into a vs2005 wsp

namespace issues, web app. template

wap on vs2005 french version

programatically adding projects to solution

"ambiguous match found" error in @page directive

project with wap, precompile?

publishing wap referencing user control project

designer files driving me batty!

unable to evaluate the expression because the code is optimized

merging files (only .doc document)

how to do column groupings in gridview control in asp.net 2.0

accessing resources embedded in a asp.net web application?

error bc30451 with vbc : name application is not declared

web tests and ajax...

web site project to wap – app_code directory conversion issue

problem when web app published but ok on asp.net development server

is it possible to migrate vs2005 web application project to vs2005 web site.

webapplication does not unfold a gat .vstemplate

string is longer than 255 character

asp.net mobile web application project

migration issue.

converting class library projects to web application projects

web application projects and vs2005 service pack 1 beta

web application projects absent in vs2005+sp1

copy a wap

pulling the database using webapp to my hosting site

converted project not recognizing when new controls are added!

  Privacy | Contact Us
All Times Are GMT