I'm developing a web service MVC .NET application that access to a Sharepoint 2013 site, I'm using the Microsoft.Sharepoint.dll not the client dll. When I run my web service on VS2015 in the IIS Express in release and debug mode I donĀ“t have any problem, but when I deploy the app to my local IIS the web service return an error
The Web application at http://[URL to SharePoint]/ could not be found.
I've tried running it with different URL such as http://localhost/sites/mysite and by domain name http://domain/sites/mysite, and I got the same results, on my VS IIS Express runs without problems but on the deploy IIS not.
The app is running on Framework 4.5 and AnyCpu compilation, I've tried downgrading the framework to 3.5 but without success. What could be the problem?, Is there any special permissions on the VS IIS that I need to enable on my local IIS?
I resolved deploying my application on a new web site in the IIS with the same applicattion pool used by my Sharepoint web site
Related
I would like to try OutOfProcess hosting for .NET Core Web App (.NET 5) in IIS 8.
I thought all I need to do is to change hosting model to outofprocess in web.config and IIS will forward request to Kestrel which would host the app.
When I use inprocess hosting model, website is accessible at http://localhost:8080/Test2.
When I change hosting model to outofprocess http://localhost:8080/Test2 returns HTTP error 502.5 as captured on screen below. Manually starting the app from command line with
dotnet myApp.dll
makes application available at http://localhost:5000 but I would like to access it thru IIS port.
What do I need to do to access .NET Core App thru IIS when App hosting model is outofprocess?
I've installed hosting bundle for .NET5 and .NET6.
I restarted IIS after configurations change.
I've set folder permission for application pool account, also for
"everyone" group.
Reading MS documentation I guess it is not possible to host application like this without modifications to app source code and publishing it again. To be honest I don't understand this article entirely.
Current host settings [Windows Server 2012 R2]
I recently created an API that will be hosted on a local machine to our intranet. It is built as a .net core webapi project targeting .NET5
I deployed it to IIS using an App pool with the No managed code setting. And I added Authenticated Users as well as IIS_IUSRS to security.
Now when I try post to the api it just keeps loading, and in browser if I open a request it also just loads to no end.
Thanks
I have created a project of ASP.Net Core API v2.2 in Visual Studio 2017 v15.9.9. When I run the project, it provide me correct data. But when I host it in IIS server, it is not working. I have hosted in IIS server same way I host other websites.
Please find below screenshot of Solution explorer, IIS, Project Run View and IIS browsing view.
I have a functioning API that I can launch from Visual Studio 2015, I can also clean and build it. It outputs a dll file with other supporting files but I don't understand how I take the build files and actually host them as an API.
How can I host my API 2 project externally?
Like most Microsoft web technologies, you'll most likely have to host them on a web server running IIS.
http://www.c-sharpcorner.com/UploadFile/2b481f/how-to-host-Asp-Net-web-api-on-iis-server/
Visual Studio has a wizard for publishing API services to IIS.
http://dotnetmentors.com/web-api/host-asp-net-web-api-in-iis-using-visual-studio-publish.aspx
If you don't have an IIS web server, you can host on the Microsoft Azure cloud platform which will provide an instance of IIS for you.
http://www.asp.net/web-api/overview/data/using-web-api-with-entity-framework/part-10
I wrote a web service in VS 2012 and it works fine while debugging in VS. I am now trying to publish it to the web server. I keep getting "The resource cannot be found." HTTP 404. This is what I have done:
Verified code works in local debugger
Propped code to web server to the web site that is known to be working and hosting other regular .net applications (but none of them are web services - just regular sites/applications).
Installed HTTP Activation
Added .svc to MIME Types
Restarted IIS
Deploying to Windows Server 2008
.Net 4.0
Using VS 2012 for dev/debugging
What am I missing?