I have deployed the website on my Azure account using DNN platform. Right now I need to run this website locally on my PC. I have installed a "Open From Azure Websites" extension for the Visual Studio:
https://visualstudiogallery.msdn.microsoft.com/60d414b1-4ead-4fde-9359-588aa126cd6c
I have downloaded from an Azure my publish settings file and opened it in the Visual Studio: File -> Open From Azure Websites.
The process of downloading files is interrupted with the following error:
"An error occurred when the request was processed on the remote computer. An error was encountered when processing operation 'Read File' on 'write.lock'"
Can somebody help with it?
It seems IIS has a lock on you 'write.lock' file, you can exclude the file when you are downloading the site.
this is more complicated than just downloading and running. Are you looking to redeploy this site to azure or just work with it locally for testing. If just local testing, I use ftp and just download the site files, then you have to change the connection string to a local db that is a copy of your azure db and then you have to adjust your hosts file to point to the site and the associated portal alias(s) in dotnetnuke.
Have a look at link below for more detailed steps
http://www.ifinity.com.au/2012/09/05/Creating_a_test_copy_of_your_DotNetNuke_website
Related
When I am trying to create a new project in dotnetnuke 9 with for Theme develop using VS, I am getting the following error:
"The Web Application Project is configured to Use IIs. The webserver could Not be found "
I am using VS 2019 and SQL 2017. I create a website in IIS with port 80 that works correctly at localhost. Folder wwwroot/dnndev.me has Network Service permission full access, hostname is dnndev.me without www, there is no .csproj file because the project has not created it yet.
Any suggestions are welcome.
Please check if you have some virtual directories and/or applications in your web site. Visual Studio creates these very often when you open a project. It's safe to remove them - also after opening the project.
When we create a Publish Profile (azurepubxml) for our Azure Projects (ccproj) and commit to VSO, we tend to get this error in VSO when viewing the file:
VSO Error when Viewing in Browser
This file contains non-printable characters and no other viewer was found for file extension "azurePubxml".
Click to download file to your computer.
Viewing AzurePubXML withinin VSO
After further review - there seems to be something in the TFS/VS IDE Tooling that corrupts the file during upload.
The fix is to perform the following steps:
Download the original publish profile locally
Delete the publish profile from VSO
Upload the downloaded file directly using VSO in the browser.
Not sure why this is occurring, but hopefully this helps someone else and short circuit time to resolve.
I created a report locally on my pc and now I want to push it to the clients production environment.
Do I need to ask the client to install Visual Studio in order to deploy the report?
What other way is there to get the report to this production machine, to which I can not connect to from my local machine?
You can upload a file (such as a report RDL file) using the Report Server's Report Manager website.
See Upload File Page (Report Manager) for step by step details.
You will need permission access to this webpage, of course. But once you have the correct access, you can upload a report file from your local machine or a file share you have access to. No need for a VS install on the server.
We went with the option to use the command line tool RS.exe
the usage of which is explained here:
http://sqlserverselect.blogspot.nl/2010/10/rsexe-and-rss-scripts-for-automation-of.html
I'm struggling to publish a project from the command line. Here are the steps I've taken:
Created a brand new ASP.NET MVC 3 (internet) project in
Visual Studio 2012
Added a publish File System profile using the publish wizard and specified the destination directory.
Clicking publish successfully deployed the app to the location specified.
Added a second publish profile but this time a Web Deploy
profile. Specified the server, the site name, a username and
password for an account that I use to remote desktop to the
server. Clicked Validate Connection. It displays a small "tick"
image to denote success.
Clicking publish Successfully deploys the app to the remote server.
So in summary, when I use the publish wizard from within Visual Studio I can successfully deploy to the local file system or a remote server using Web Deploy.
Then I switch to the command line
msbuild MyMVCProject.csproj /p:DeployOnBuild=true /p:PublishProfile=PublishToFileSystem.pubxml /p:VisualStudioVersion=11.0
Deploys successfully to the local file system.
However
msbuild MyMVCProject.csproj /p:DeployOnBuild=true /p:PublishProfile=BuildServer.pubxml /p:VisualStudioVersion=11.0 /p:AllowUntrustedCertificate=true
Returns the following error:
msdeploy error ERROR_USER_UNAUTHORIZED: Web deployment task failed. (Connected to the remote computer ("10.0.1.6") using the Web Management Service, but could not authorize. Make sure that you are using the correct user name and password, that the site you are connecting to exists, and that the credentials represent a user who has permissions to access the site. Learn more at: http://go.microsoft.com/fwlink/?LinkId=221672#ERROR_USER_UNAUTHORIZED.)
The page it mentioned in the error message didn't really help me.
Can anyone help, why can I deploy without an issue from the Visual Studio publishing wizard and not from the command line?
The solution turned out to be very simple. I simply needed to add /p:Password=<insert password here> as a parameter on the command line. I supplied the password in the publish wizard, but for security purposes this isn't stored in the .pubxml file.
Actually I discovered this from a 'supplement' book by SAYED IBRAHIM HASHIMI. The book is titled Supplement to Inside the Microsoft Build Engine.
I'm trying to publish an Azure application, but can't sign in using Visual Studio 2010. I get the error message "The web browser cannot be started. To resolve this problem, you must restart Windows."
I've tried both rebooting and making Internet Explorer the default browser, but I still get the error message. This also occurs when clicking on other links (for example "Online Privacy Statement" in the same publish dialog box).
How can I fix this, or alternatively, are there any other easy ways to publish to Azure?
There are several ways to publish to Azure. Depending on your preference, some of them may be easy. Some, not so much.
First of all, are you using a source control? If you're using git, then you can use Azure Git Repository that comes free with Azure Websites and also Azure Cloud Services. So when you push your code to the Azure repository, it automatically publishes the final bits to the corresponding site.
If you're using TFS locally (at home or office), you can set up a build task that'll deploy the bits to Azure. Also, check out TFS Preview if you are comfortable with a Microsoft hosted free TFS server.
If you feel comfortable using FTP, you can get the FTP account details from the Azure portal when you set up a new azure website or a cloud service.
Finally, one of the easiest way to publish to Azure is to use the Publish Profile feature.
You'll find a link called "Download Publish Profile" associated with
your azure website. Click on that to download the profile (an XML
file).
Then right click on your VS project and hit Publish. Under Profile
tab, select "Import" and pick this downloaded file.
It should populate all the details for you. Test your connection to make sure everything works okay.
Publish and ENJOY!
UPDATE: Based on the comment to this answer, adding screenshot to show where to get the FTP details for your azure website.