Developing asp.net on Mac OS X - c#

I have been asked to make some changes to an asp.net website but i only have access to a macbook air and no applicable servers. I don't have the disk space to install windows server on parallels and have tried following the instructions in the link below.
https://blog.tonysneed.com/2015/05/25/develop-and-deploy-asp-net-5-apps-on-mac-os-x/
I could get the console app to run but the web app threw up a bunch of errors.
Does anyone know a better way to do this? Maybe a free trial for a cloud based windows server or some other way of deploying the site so i can see my changes?
Thanks for any help
Richard.

Related

Hosting a .net core 1.1 webapp on a windows 10 system

Not sure where to ask this but figure someone might be able to shed some light on it. I am new to the whole .net core stuff and have been learning and taking some online classes. My question is this I am trying to self host a webapp/site what I am making in visual studios 2015 in C# using .net core 1.1. I have the app up and running locally when I run it in IIS Express everything works fine. What I cant seem to figure out is how to publish this to my windows 10 system. I have been digging around the web an came across a few articles but even following there steps it seems i cant get this thing to publish. Has anyone here run into the same situation and have gotten it working or know what i need/how to configure windows 10 and IIS to get this running ? Thanks in advance for any help given.
Here is the guide for configuring Kestrel to use IIS as a reverse proxy:
https://learn.microsoft.com/en-us/aspnet/core/fundamentals/servers/
Note that you do not want to use Kestrel by itself as it has not been hardened against attacks yet.
That said, what you are trying to do is not likely to work. For starters; IIS running on a desktop OS is limited to 10 concurrent connections, so having a real live website is just not going to happen. Furthermore, you need a static IP for the server to be consistently reachable via DNS. That service usually will cost you quite a bit (more than just using shared hosting).
The easiest way to host this would likely be in a free Azure Web App.

Accessing ASP.NET web application that only runs on a local machine

So I have zero experience with deploying software or putting something live. The situation is like this:
I have developed a dashboard web application on a laptop. This application uses a microsoft SQL database that also runs locally. When I run it, it's a localhost address. Now, I need to be able to access my web application from other PCs within my company's network. This way I can do some user testing. What are ways to do this? I searched and things confuse me to no end.
I use:
.NET Framework 4.5
Visual Studio Ultimate 2012
IIS7
Thanks
There are a few things you'll need to do to make your local application visible on the network. I'm assuming you want your app running on something like http://foobar/myapp where foobar is the name of your machine
Here is what you need to do:
Add a URL reservation so your machine will allow IIS to serve content on the url http://foobar/myapp
Create an inbound rule in Windows Firewall to allow incoming connections on port 80
You can find the exact commands you need to run on Scott Hanselman's excellent blog post. Of course, he's focusing mainly on getting SSL to work with IIS Express, but it has enough pointers to get you going, too.
look at msdn.microsoft.com
you can learn about:
Prerequisites
Creating the Web Site
Creating a Test Page and Class
Publishing the Web Site
Testing the Published Web Site
Next Steps

Seeing the source code instead of a website

I'm kind of new in ASP.NET and C# so it may sound a stupid question.
I installed MAMP in order to have a testing server.
My project is in the htdocs directory.
I'm working with mac and as I said I'm trying to learn C# and ASP.NET.
When I try to preview my website in dreamweaver, I see the source code instead of the website (when not in "live view" I see the example button I put in the code).
When I use mono-develop, the same project works good on the browser. I think the problem is with MAMP or apache but I'm not sure...
MAMP is specifically for Apache, MySQL and PHP installations. ASP and C# are Microsoft languages and the MAMP server will not recognize them. You need Windows to have a c# server. I tried to do what you are doing: get Windows 7, it is easier.
Luckily:
You can run Windows on your Mac
Microsoft gives out free developer tools including Visual Studio which will help you get started.
Alternatively you can get a .NET web host for less than $7 per month and try all of your creations out on their server. It would still be a challenge for a beginner to code on a Mac and pull it off though.

Which Continuous integration programs support a good workflow for Windows Phone 7

I'm a bit confused on how continuous integration works with a Windows Phone App. Is there a way to upload the app to the marketplace automatically, or do you still need to do a manual update?
Do I need my own server for this, or are there hosted options?
And which program works best to test, build, and continuously integrate a windows phone 7 app?
Edit: I'm using Atlassian Jira, but Bamboo seemed to only apply to Web apps, not apps that are deployed on devices. I have no requirements, and no experience, and don't understand how CI even works with a non-Web based project. However, I do want our code to be passing all it's tests before it's committed to SVN, and if there is a way to automatically push the latest stable build to our users, in an automated way, that would be great.
Marketplace submission is a manual process and there is currently no way to do this automatically.
There are various continuous integration processes and tools available. Whether you need a separate server to run it on or which program will be "best" for you will depend on your scenario, requirements, experience and preferences.
You can use any solution which supports Visual Studio 2010 as long as you can install the Windows Phone SDK on the same machine. Hosted solutions may or may not allow you to do this.

Web-Update class in WinForms application

I have build an C# Winforms application which will need regular updates and patches in the future. To ease the update process for the users of my app I'd like to build an web-update class that looks for an update on my site.
What would be the most secure and reliable way to implement such a class, considering:
The site is build in PHP / Joomla
I haven't the foggiest idea how to program in PHP
All webserver directories are read-only by default (and only writeable by an FTP account I own)
The first and so far only idea that comes up to me is to create a file on my webserver that'll never be renamed, and in it I'll define the location of the latest version and number of it. The app will then be able to download the update from that path using the WebClient class.
However, if there's anyone with a better update-class idea that doesn't require an asp.net webserver nor webservices (already tried and failed on that one), I'll be grateful.
Edit:
I've tried the ClickOnce solution suggested by Gabriel McAdams, but on application startup I experience a "ClickOnce launch utility has stopped working" crash. So I'm again looking for a solution to update an application. For the moment, the answer of Kristian Damian is the most suitable.
I would look into ClickOnce Deployment.
Here is some of the text from that page:
ClickOnce deployment allows you to publish Windows-based applications to a Web server or network file share for simplified installation. Visual Studio provides full support for publishing and updating applications deployed with ClickOnce.
Maybe this link can help you:
http://themech.net/2008/05/adding-check-for-update-option-in-csharp/
I developed a Windows application in C# that does updates automatically over the Internet. After much grief, mainly because at that time I had very little experinece with Web development, I purchased a product that made it easy to update the application. If it is OK with StackOverFlow and you are interested, I can give you the URL.

Categories

Resources