On the ASP.NET server (production), I am told to use the web service that is written by some other person.
Question is how do I find out what webservices were deployed on the production server. All I am told is to make a call using "CheckFile" (which I believe is a part of the web service). I went to the Inetpub folder to see if there is any folder that has these webservices but there is none?
Sorry I am doing this first time and hence many questions,
My end goal is to use these webservices in my ASP.NET application and call those functions such as "CheckFile" and others from this webservice.
Thanks.
I agree ask your co-worker if you have one.Else if you have access to old asp.net app then right clik on project and click on service reference tab it will show web services in that .net app.
Related
I have developed an ASP.NET C# Web application with 2 web forms and I have purchased a domain from Fasthosts in order to host my site. I have changed the server to be Windows-based and used the correct ftp details to upload my app to the site. The only problem I am having is that when the site is published I am receiving this error.
I am hoping that this issue is fairly easy to resolve. Any help on what I can do to get around this issue would be much appreciated. Thanks:)
Since you have not provided details of any set up using IIS, I would imagine that your issue is that you have simply deployed the file and gone to the URL expecting the site to be there. Normally you'd have some setup to do, unless they are handling that for you?
Have you make sure that you have setup your default page? Do they support .net core? Maybe this post https://windowswebhostingreview.com/troubleshoot-403-error-when-publishing-asp-net-core/ can help you.
I'm trying to understand if there is a way to make a web application run on the local computer(browser) without IIS.
My main objective is to transform my web application (that is on the internet) to a software that runs on the local computer without using the internet and without IIS.
My idea is to distributed my webapp between my colleagues and not forcing them to work online and not needing an internet connection.
I have a MVC web app with 3 pages and a couple of methods on the server side.
The idea of the application is to get proprieties from a form that I implemented on one of the pages of my web application and transform the proprieties on the client side to JSON and send it to the server, the server will generate XML file according to the JSON object and let the client download the XML file that were generated.
The flow of it:
1.The Client fill the form in my site.
2.The form become JSON object on the client side.
3.The JSON object that stored the properties of the form(filled by the client) is send to the server.
4.The server get the JSON object and generated XML document from it.
5.The client download the generated XML file.
Very simple web application.
I know that I can run HTML page by clicking it and the page will display on the browser but I need the server side to be working too to carry out actions.
So my question is : How can I make my web application run without internet ?
With the constrains:
No IIS required.
Working with .NET 4.0. (OWIN 2.0 - Not good)
No internet require.
No installation required to the computer ill pass this web app.
The server side code wont be expose when I send this application to my friends.
I read a couple of articles about OWIN, SingalR, Cassini and WCF but its all very vague...
If someone could provide me with a guide lines it will be very helpful.
Thanks a lot.
You can definitely self host a .NET web application using OWIN. Unfortunately documentation and information about it is vague and confusing at best. The fact that you're using MVC makes it somewhat easier as you may be able to directly use the self-host packages from Nuget for self hosting Web API. There may be similar packages for MVC.
I don't have recent experience but a Nuget search for "MVC Self Host" should yield some results.
Below is a link with an example. But the term you are looking for is definitely "self host". It can be done via a console window or (more complex) a windows service. It will likely use some form of OWIN but you can probably find some startup code to copy and paste into your project, usually in the form of a Startup.cs file.
http://www.c-sharpcorner.com/UploadFile/4b0136/working-with-owin-hosting-and-self-hosting-in-Asp-Net/
I'm developing a project that based on columns from a database tables as to present a dashboard.
I've been told to create a Web Api project (added to a windows form project) to obtain the columns data and work it to present the charts.
My windows form project is project1 and the web api is project2.
The idea is when I click a form button, I'll present a html file with the charts. My line of thought is when I press the button project2 will start, with the data already collected in project1, to present a dashboard.
If I'm thinking correctly, my questions are:
How can I call the web api when clicking a button
How can I pass the information already collected to project2
May be you not explaining something right or I don't understand something.
Looks like you adding a Web Api project as part of the solution. Looks like you have some data at Windows application, which then being posted via Web Api to database. If this is correct then:
Web Api is .NET web-centric framework for REST, in which HTTP stack is at the center. In REST you have stateless application running on the web server and you making calls to it. The beauty of REST is that the client can be practically anything - any device, any application, another REST service - anything!
The answer:
So, your Windows App can make a call to your REST layer and post data. In your Windows app you will need to reference System.Net.Http to use HttpClient class. Using this namespace you can compile Http messages and make Http Requests and receive Http Responses.
I think, this is exactly what happening in your solution. Please let me know it it is not what I think.
I have a IIS running on my webserver. I developed a rest api based on a mvc 4 web api. the problem i have at the moment is that when I put new / changed files onto the IIS that the IIS is not "recognizing" them.
lets say for example i changed one service - put the new file on the server - server thinks he still has the old file. I observer this behaviour because when i call the service i still get the old result - not the new result as implemented in visual studio locally. I have no clue why the IIS is acting like that...
As leppie already mentioned in the comments, I had a wrong understanding of ASP.NET web sites and ASP.NET web applications.
As a solution, I had to do a rebuild to compile the DLL again and then deploy it to the IIS.
I have planned to develop a web application using MVC, can any one suggest me the how easy to deploy the application on the IIS?
And also let me know the steps to that.
regards,
Satish
Just publish your application either to your server directory or locally and copy it to the the destination server. Make sure your server is configured for MVC, see below:
Using ASP.NET MVC with Different Versions of IIS
Server installation options for ASP.NET MVC 2
as rick says, and also, make sure (if IIS6) to use wildcard mapping - this needs to be added in the IIS control panel. again, our old friend google should throw up plenty of options on doing this. if you're under shared hosting, you can request it and most are happy to add it.
jim