Benefits of having multiple Web.Config files in ASP.NET Application [closed] - c#

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
We can have multiple web.config files in asp.net application.
What are the advantages of having multiple web.config files?
Please any one give a better solution for this question..

web.confing apply it's settings to all application if it is at root and only one web.config is present. but suppose there is one additional web.config in any particular folder then it's settings will affect only that particular folder and subfolders of that folder. Files on root folder will refer only web.config at root.

Related

Organize C# app dependencies into subfolders [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 days ago.
Improve this question
I want to organize my app's files because it's honestly just messy having to keep every DLL in one folder, and if I make a self contained app I end up with 200+ DLLs mixed in with the executable which is just completely unacceptable.
I want to layout the files kind of like this
-dotnet (folder for dotnet DLLs, if it's a self contained app)
-mylibraries (folder for any of my own DLLs being used)
-App.dll
-App.exe
I have tried using a config file to specify a probing path or a code base, neither made a difference. I also tried using PrettyBin but I couldn't figure out how to use it.

How Can I Share Document Files with Multiple Web Projects? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
I have three ASP.NET MVC Projects. before I use one single Directory to manage documents/files, and all projects can access from that source, but now I have to store files in particular projects (under App_Data) and have to access from other projects.
My question is, how can I manage this?
Linking files in Visual Studio could perhaps be a solution to your problem.
https://jeremybytes.blogspot.com/2019/07/linking-files-in-visual-studio.html
I used it myself the other day where I needed a single .csv file available in multiple projects.

Where to put files used by a .Net application [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 5 years ago.
Improve this question
Here is a question not about code but about patterns. I'm developing a .Net application that needs to use three files in order to work properly.
File 1: Has the app settings created by a configuration form
File 2: Binary file that contains a set of serialized objects used as a playbook that the application follows in order to realize sequential tasks.
File 3: A sqlite database used as a record cache that the application updates on every start
Now my question is about file location, where to put this files? On Program Files or AppData inside the users's Documents And Settings.
Thanks in advance.
AppData should always be preferred, since it requires less permissions (you might need Administrator permissions to create / updated files in Program Files).
Also it depends whether data should be personalized or global for all users. Take a look at this post

Do I need to REBUILD my project after changes in web config? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 7 years ago.
Improve this question
I am changing the DEBUG MODE to FALSE in web config. Should I rebuild my project after changing DEBUG?
Note: We have many bins. In order to avoid replacing bins in online I am asking this question.
No. You don't have to rebuild, the config file will be read as is as long as it's saved.
If you're talking about <compilation debug="true">, no, you don't need to rebuild your solution/project.
This is about ASP.NET compilation rather than your regular project compilation. Whenever an ASP.NET application is started, unless it has been published precompiling it, ASP.NET engine will compile your user controls, code-behind code and other areas of your Web application during the first request to your Web site.

is there a way to know where is the solution from a published site folder? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 7 years ago.
Improve this question
I have a published website that I need to modify, but could not find the solution to open the project. Is there a file, even in the IIS or in the published website folder that could have the path of where that project is?
There is no way knowing where your solution is other than searching your hard drives for "*.sln"

Categories