ASP.Net Core 3.1 Razor Pages Authenticate Against Active Directory - asp.net-core-3.1

I am developing a site using ASP.Net Core 3.1 Web Application with Razor Pages (not MVC, not Angular). Unfortunately, when I created my project I chose "No Authentication". My organization uses Active Directory (not Azure AD) which I now need to authenticate/authorize users against and pull information from.
I have been been searching for 4 days and cannot find an example that uses this exact setup. Can anyone point me towards some resources that will show me how authenticate/authorize against Active Directory?

you can simply use Windows Authentication. You can enable within Visual Studio or within IIS. Visual Studio go to Debug under Project>Properties

Related

Hosting Asp .Net MVC3 Web Application in IIS 7.5

We have developed an application using Asp .Net MVC3 for our Organization.we want to host that Application to Access the Same using a Link from other systems.I did publish the web Application by right clicking on its properties and used web deploy option.Now i can see that Application in IIS under Default website and when i give browse i can view the Application running Properly.but when i try to access the same from another computer using the same link with my system's Ip Address i couldn't Access the Same.It would be great if we get any assistence on this issue.we r struggling on this for past 2 days

Error on deploying a SharePoint 2010 site template

I have a web application in which I have few document libraries, lists, picture libraries, workflows and few webparts. The webparts are created using visual studio with the feature site scoped. WorkFlows are created using SPD. Everyting working fine in my local SharePoint server. I want to copy my web application to a different server. For this I saved the site template Site Actions-> Save Site as template, saved the wsp to my desktop. Then I took the wsp to the other server machine where i created a webapplication.
Then using PowerShell command added the solution using Add-SPSolution command. When trying to install using Install-SPSolution command I got an error:
This solution contains no resources scoped for a web application and cannot be deployed to a particular web application
I tried to change the scope of webpart feature to Web/WebApplication but encountered error when tried to deployed using visual studio.
How can I deploy the wsp in a different SharePoint Server machine?
When you save the site as a template, you'll only save the site, not your web application. Create the web application first (maybe without a site template), and roll out your site from your WSP afterwards.
If you are using powershell to deploy the solutions, please remember to include the flag -GACDeployment.

Deploy MVC 4 application 4.5 Framework 1and1 hosting

I'm trying to deploy an mvc 4 project in vs2012 via FTP on 1and1.com
This is what I'm getting.
HTTP Error 403.14 - Forbidden
The Web server is configured to not list the contents of this directory.
Are there settings on 1and1 I need to set somewhere because it's an MVC proj or changes in webconfig?
#dright, Are you still encountering the problem? It appears 1and1.com has updated their hosting package to support 4/4.5 Framework with their Basic Windows hosting plans (https://www.1and1.com/windows-hosting?linkId=hd.subnav.windowshosting). I purchased a plan as a sandbox for deploying little apps that I develop.
I have successfully deployed a Asp.Net application using the WebMatrix IDE. But I have struggled using VS2013 template/default applications' Web.Config. I was curious if you have had any luck.
Thanks!
1and1 windows package doesn't support MVC. You would need to update to their server package. ~59/month

error activating .wsp file in sharepoint server 2010

I developed a sample application in visual studio 2010. I created an Empty SharePoint Project and gave the local site url for debugging. Checked "Deploy as Farm" as the trust level of the SharePoint solution. Added a visual webpart and also a class to the solution. I am able to build and successfully run the application using visual studio. In my local machine am using SharePoint foundation 2010 to debug the SharePoint application.
Now i want to deploy this application in the SharePoint server 2010 which is in a virtual machine.
1. I copied the .wsp file of the application i created to the virtual machine.
2. From the central administrator in the VM I created a web application and the site collection.
3. Then using Site Actions -> Site Settings -> Solution(Galleries), choose the .wsp file for uploading. it showed a "Warning: You should only activate this solution if you trust this solution. An activated solution can read, modify and delete your data. " and the activate button is disabled.
Then I tried to do same in my local machine on a different site collection. Here Activate button is enabled but when clicked it threw exception
Server Error in '/' Application.
This solution contains invalid markup or elements that cannot be deployed as part of a sandboxed solution. Solution manifest for solution 'aee60282-765d-4c9f-b67a-5981f18a6d3b' failed validation, file manifest.xml, line 10, character 4: The element 'Solution' in namespace 'http://schemas.microsoft.com/sharepoint/' has invalid child element 'TemplateFiles' in namespace 'http://schemas.microsoft.com/sharepoint/'. List of possible elements expected: 'FeatureManifests, ActivationDependencies' in namespace 'http://schemas.microsoft.com/sharepoint/'.
What could be this error?
The "TemplateFiles" element refers to items that will be copied onto the web server. This is allowed for farm solutions (which are deployed via CentralAdmin), but is not allowed for sandboxed solutions (which are deployed via the Solution Gallery).
When you deploy your wsp with visual studio, you deploy it as farm solution.
When you deploy your wsp from site settings into solution galery, you deploy it as user solution (sandbox solution) with some limitations :
first, avoid using out of the box visual webparts, it's prohibited !
Deploy your wsp by writing powershell script.
A good starting point here :
patrickboom.wordpress.com/2010/05/31/using-powershell-to-deploy-sharepoint-solutions-wsp-2/
Le_Fredo is correct here, when attempting to deploy a WSP file into the site collection directly under the site settings, you won't be able to. I found this article from microsoft to be extermely helpful
http://technet.microsoft.com/en-us/library/ff607688(v=office.14).aspx

Deploy the asp.net MVC 2 web application to the IIS 7.5 getting issues

I have developed the asp.net mvc web application. whereas my macine is configured with IIS 7.5. I want to deploy my web application with source code to the IIS so that i can attache the process and debug it run time. I choose this way because few functionality , like file copy and file create not performing after simple publish.
I tried by ,
Create the web application in IIS 7.5 manager. installed ASP.NET utility. As i browsed , I got asked by to enable directory browsing.
Which i enabled. where as in IE I found file structure which definitely did not want. I expected direct my LogOn page which is configured in globle.asax after deployment.
What else i need to check. or is any step i have missing?
I am using Visul web developer 2010 express edition to develop the application.
Please guide me.