I am trying to compile my Web Forms 2017 project using PowerShell. I know it can be done (and in Command Prompt), because I have done it before. I am using this script to compile the project:
The folder, DimaWeb, is the one which contains my VS project files (aspx and aspx.vb pages, images, scripts, MS Access database, etc). The folder, DimaWebCompiled_test, should contain my compiled files ready to be uploaded to my Web hosting service. I am getting this error:
/-u/DimaWeb/Account/RegisterExternalLogin.aspx(1): error ASPPARSE: The file ‘/-u/Site.master’ does not exist.
Is there another script I can try as I don’t understand the error. I do not have a file called RegisterExternalLogin.aspx(1) in my Account folder, but I do have a file called RegisterExternalLogin.aspx in my Account folder in Visual Studio. I also have a file called Site.master in Visual Studio, though I never use it.
What should I be doing, please, that I am not doing?
/-u/DimaWeb/Account/RegisterExternalLogin.aspx(1): error ASPPARSE: The file '/-u/Site.master' does not exist.
PS C:\>
Site.master does exist in the DimaWeb folder, but if I remove it and then run your script again, I still get that same error. Does that imply that it is little to do with the PS script?
I think what Olaf is saying is that, on a cross post, whenever you get something that solves your use case, be sure to go back to all site you asked and post the answer.
& : The term ‘amp’ is not recognized as the name of a cmdlet, function, script file, or operable program. Check the
spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:2
Yeppers, check that and any dependencies relative to your app.
This could also just be a quoting issue and I just notice the you did not have a slash after that $env. PS will not do that for you. Also space in directory names it always a bad idea. It will eventually come back to bite you.
When I copied and pasted your first code, a screen - looked like a cmd prompt screen - rapidly popped up and then disappeared and then nothing happened. With the second set of code, a new PS screen loaded, and I got the same error:
/-u/DimaWeb/Account/RegisterExternalLogin.aspx(1): error ASPPARSE: The file '/-u/Site.master' does not exist.
PS C:\>
I have escalated this to Microsoft because RegisterExternalLogin.aspx (but not RegisterExternalLogin.aspx(1) is definitely in the Account folder.