All Questions
Tagged with class-library asp.net
107
questions
0
votes
0
answers
125
views
How do I get the name of the project/assembly that called a class library from within the class library when a method logs an exception?
I'm not sure if this is possible, but I figured I'd ask before having to make dozens of changes to my code. Note that the class library is part of a nuget package and the project for it IS NOT ...
0
votes
2
answers
160
views
Can I use the same function in different ASP.NET pages?
protected void DropDownMainProduct_SelectedIndexChanged(object sender, EventArgs e)
{
string mainProductCode = DropDownMainProduct.SelectedValue;
if (mainProductCode == "0")
{
...
0
votes
1
answer
2k
views
Use Migration in Visual Studio MAC
I am using visual studio Mac 2022 Preview for the programming. Initially I am building my project from windows and its much easier for programming. Now I turned to MAC. My Solution is consider by 3 ...
2
votes
1
answer
646
views
While adding the class library I am getting an error
I have created a C# web application project and added one new project "Class Library. In the class library, I am trying to add "ADO.NET Entity Data Model" but I am getting below snap ...
0
votes
3
answers
634
views
Can we run part of an ASP.NET Core MVC web application as console application which is scheduled using Windows Task scheduler
I am working on a new project which contain 2 main parts:-
Scheduled service which reads files from SharePoint online and send them to external API.
The external API will process the received ...
1
vote
1
answer
912
views
Assigning parameters of one DTO to another
This is code for assigning parameters of one DTO to another
List<Projectdto> matchedProjects = new List<Projectdto>();
List<Projectdto> obj1 = new List<Projectdto>();
List<...
0
votes
0
answers
30
views
Compilation error on consuming and building .NetStandard library using MS Build
I have a couple of projects in my solution, migrated one of the class library to .netstandard(ModelLib) which is consumed by .net472 class library(serviceLib). The serviceLib is again referenced by ...
0
votes
1
answer
881
views
Build and Publish MVC4 application using MSBuild in Azure Devops Pipeline
I have ASP.NET MVC 4 application who is referring 4 class project. Using Visual Studio when I publish solution it is publishing to folder with files
1.App_global.asax.complied
2.KII_Deploy.dll
But ...
0
votes
1
answer
61
views
Unable to refer in namespace the class library in it ado.net entity data model .edmx in asp.net web application webapi
I have a classLibrary Project(. Net Framework 4.6.1) namely 'EmployeeDataAccess', it contains an ADO.Net Entity Data Model (.edmx) configured successfully to my SQL-server. I have a separate ASP.Net ...
1
vote
1
answer
148
views
How to call merged dll
I have merged two dll a.dll and b.dll into one (merged.dll), now i want to use this dll in my project by typing using merged.dll;, also have pass the reference but it is giving me an error that
type ...
0
votes
0
answers
248
views
Asp-net info from NLog wrapped in class library
I have a class library wrapping a NLog implementation with some own methods:
public static class MyLogger
{
private static readonly NLog.Logger Logger = NLog.LogManager.GetCurrentClassLogger()...
0
votes
1
answer
135
views
How to get wcf response in XML format which is referenced through service reference in class library project
// Created obj for wcf service
ServiceSummary.ImageService.ManagerServiceClient obj1 = new ServiceSummary.ImageService.ManagerServiceClient();
// Forming a request body
var request = new ...
1
vote
1
answer
3k
views
Difference between assembly, packages and SDK in ASP.NET Core class library
I have an old project that runs on ASP.NET Core 2.1. The project has dependencies folder in which we have
assemblies
packages(nuget packages)
SDK
I am little bit confused by their usage and what ...
0
votes
1
answer
2k
views
Webforms in class library in asp.net
I am making a class library in asp.net , is there any possibility to add web forms in class library ( content view files with their code-behind ) so i can run , only with a simple method in the CALLER ...
0
votes
1
answer
120
views
Can the "Windows Desktop Class Library" template be used to create a class library used by mutliple ASP.NET web applications?
I have a Visual Studio (2017) solution containing several C# ASP.NET Web Application projects (WebForms) targeting the 4.x .NET Framework. I am developing a class library that all of the ASP.NET ...