I need to create a web service in either 3.4 or 4.5 version of .net framework and deploy it into a windows server 2012 R2 OS.
IIS is been configured on the 2012 SEREVR R2 OS already.
Can anyone provide step-by-step information for this?
This web service would be consumed by a java client for my project.
Also, would like to know what should be the approach, whether i need to wcf service & deploy the same in target server's IIS.
If I create:
asp.net web application in 4.5 framework and add a web service -asmx -file will that be sufficient for me to deploy onto the target server?
How to take the web service code from my dev machine to another machine also.
Related
I want to start a windows service from asp.net webform which are deployed on the server . It gives error cannot control service on this computer
You have to use the impersonation to control your windows service from asp.net application. To access the windows service from web application required some access rights on machine where you have installed the service.
Please check this link it may help
I have a .NET Framework web app that runs fine in IIS Express on my local machine. I have created a Docker for Windows container with Windows Server 2016 running in it in which I've installed:
- IIS Express
- the .net framework web app
When I run the web app in IIS Express (I do not want to use full IIS) in the container, and then, also in the container, send requests to it using curl, I get a 500 response with the error:
The current identity (User Manager\ContainerAdministrator) does not have write access to 'C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files'
I haven't found a solution to this yet. Has anyone tried this or have a suggestion?
I want to host a ASP.NET Core application on shared windows host. I read the documentation and as far as I understood it can depend directly on the .NET framework, but other tutorials says that it cannot be done without the .NET Core (also my windows hosting provider said that it cannot be done).
Does the ASP.NET Core application can be host on windows shared hosting machine or additional configurations need to be done ?
Thanks.
Yes, you can. But your host needs the .NET Core Windows Server Hosting. Once your host has this installed, you can run your .net core app (full .net or .net core).
You can find more info here.
Yes, I have deployed ASP.NET core web apps to two different Windows shared hosting services successfully. I've had success with both framework-dependent and self-contained deployments. You can my instructions for doing a self-contained deployment here: https://birdsbits.blog/2019/02/18/publishing-an-asp-net-core-web-app-to-a-cheap-windows-hosting-service/
I am trying to understand why the same C# Oracle access code works under VS2010 environment but not under IIS.
I am building a web service to access Oracle 9.2 database on the remote machine. The web service must be hosted in the IIS under Windows 2003 machine. The same machine is hosting Oracle 9.2 database.
The web service must be compiled for x86 CPU because of Windows 2003 that is 32-bit architecture.
My Visual Studio project is WCF Application.
When I run the service under ASP.NET Development Server everything works fine. The database is connected and all CRUD operations are possible.
When I deploy everything under IIS on my machine or any other machine the I am getting "ORA-03134: Connections to this server version are no longer supported." at the time of connecting.
I supposed it is some kind of permission problem so I run the service under special Application Pool with LocalSystem account. I even gave to the Oracle client folder installed on my machine Full Control permissions for IIS users but this should not be needed because of LocalSystem account.
Anyway I tried and nothing. It is always the same error.
What could be the reason ?
Is a server needed for the .net framework to run a .net web application on my local machine?
The application is on my local machine and I have configured it in IIS. I am connecting a server(xxx). Does xxx need the .net framework to run a .net web application at my local machine?
Yes. Or no (see comments).
The server does not need the .NET Framework to access your local application if it is an ASP.NET web application/web site. If you want to move the application from your local box to the server machine so the server hosts the application, the server will need the .NET Framework and IIS.