I m very new to Asp.net technology. I have created website in asp.net and created package for it and hosted in local iis.
After hosting I made some changes in website in code behind and now I wanted it to be hosted in iis but I don't want to repeat all the stuff for hosting. does it work well if I paste built package on wwwroot folder?
please help
Yes. It is exactly what Web Deploy does. Just make sure to compile your code and get them from \bin folder.
Yes, you can xcopy DLLs into the host folder and it should just work. IIS should pick up the changes right away.
Related
I made a .net core web API project. My project has 3 layers. The first and second layers are .net core class library and the third layer is .net core web API.
When I start the web layer in Visual Studio with iis express no problem I can work with my web services but I want to publish it on my localhost it doesn't work.
I followed this tutorial:
https://www.youtube.com/watch?v=ZZfRlBMHds8 and when I try it with my project it doesn't work.
What should I do?
I also tried an empty web API project but it doesn't work either.
I would make sure you have he IIS_IUSR permission for the directory the the WebApi is located in. Then, I would open the solution in VS as the administrator and right click the WebApi project and select Publish. This will open the configuration part of publishing your WebApi and you can set your settings here. Make sure you can connect to your IIS site you wish to publish to and save your settings. Then stop IIS, publish, then restart IIS. Hope this helps.
I have to create an exe of an website created in asp.net using visual studio 2010.
I don't known whether exe of web application can be created or not, but I want that my application with database will be able to run on another system where visual studio will or will not be there.And my code should not to be visible to the users using that exe or running that project.
How can I achieve it?!
you can't make a exe for web application but you can do one thing to solve your problem
1)make a window project in this project make a code for run iis and open browser with your web application url and make your window application form hide
2) now make exe of your window application project
You cannot create an executable file in asp.net.
All you can do is create a website using visual studio. once done, publish your website. Deploy it to IIS or host it to a paid web hosting company so you can have your domain. Once done, other users can see your beautiful and elegant website.
You don't create exe of a web application. It is hosted on IIS. So first of all you have to publish your website and then you can host it. For more information you can refer to this one:http://msdn.microsoft.com/en-us/library/20yh9f1b%28v=vs.100%29.aspx Or google for more articles.
Posting to an old thread, but I came across this situation and found the solution.
Following footsteps of Spring Boot and other containerized solutions, I believe now Microsoft also has added this feature.
My scenario: Created a basic REST based Web application and built it.
This created Debug and Release folder within \bin within the root directory of Web application.
It also creates an exe file.
You just need the necessary runtime dependencies (like .NetCore 3.1 etc in my case) to run this exe.
I copied the entire Web application folder to a Windows Server 2016. There were some issues initially, however later when I added the required dependencies (dotnet folder which was present in my earlier machine), it worked like a charm.
I developed a site in asp.net using C# as the language.
I have debugged it and no more errors can be found and can also view the page from a browser.
I would like to host this site and direct a client to it for demo purposes but am having a problem each time I publish my site. The publishing only does away with all my .aspx.cs files but I don't see any .exe file that I can install or send to my hosting provider.
I would like to know if this what I am experiencing is normal or there are settings I need to do in my visual studio 2013 ultimate edition for these tasks to be performed?
Kindly advise me on the way forward
ASP.NET applications (not "ASP.NET websites") are compiled into a .dll file in your bin folder, which is then deployed on to the server.
Your .aspx/.cshtml1 files reference compiled classes and types contained within this DLL, thus eliminating the need for source files.
There won't be any .exe files, you need to deploy your project to a web server, like IIS. Check out this link.
I am new to dot net web services and I have created a web service which I was somehow able to deploy to IIS.
Now, I've made some code changes to it and again clicked on "Created Deployment Package". Should I just copy paste these new dlls to the location where my Web service is deployed or is there some-other way to redeploy the code changes for web service to IIS?
Yes simple and easy is copy the dll to iis and you are done, even you may not require deployment package.
in general i publish the site to a local folder and then copy it to server.
but in case you are using local machine iis you can publish directly to respective iis folder.
I've been looking and I've seen a few how-tos but I find them to be somewhat confusing.
Does anyone have a good tutorial or step by step writeup that's easy to follow for a newbie
In Visual Studio, go on project properties > tab web and check "Use Local IIS Web Server". Then, it will ask you to if you want to create the virtual directory, answer yes and vouala...you create a IIS virtual directory, when you run your application, they will run on IIS.
If you're just looking to run your application under IIS, setting up a virtual directory is pretty straightforward. If you're looking to test publish a build, the web deployment project is the way to go (you can do it from the command line and in VS.Net, it enables a "Publish" right-click option).
A good place to start would be looking into web deployment projects.
This link is for VS2008, but they also exist for VS2005
VS2008 Web Deployment Project
You can publish your web app to an iis website. Click on Build > Publish Web app and select to publish to Local IIS website. Job done.
For a local development environment this is fine but if you want to deploy to a test or staging server than look at another solution such as the Web Deployment project or use nant or msbuild.