Click here to Skip to main content
15,893,161 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi I want to send a web application that have several .aspx pages, masterpage, style.css etc.
The person who will recieve it wants to be able to open the .aspx files in a browser by right-clicking the files and open in the browser.

Now I have a problem about how to do this in the right way? I have the project-file and the .apsx files but when I try to put all the files in a folder and try to open it will not open. When I try to open the project file, it says:
"Error opening web C:\\Users\Yngvild\WebSites\oppgave\. Unable to open the Web site. The Web site does not exist"

Any tips on how to make this work? Do I have to deploy or publish or anything?

What I have tried:

Tried to make a new folder with all the files.
Posted
Updated 30-Apr-17 4:25am
Comments
F-ES Sitecore 30-Apr-17 9:58am    
Web sites need to be configured under IIS, you're not going to be able to run them from the file system.

1 solution

There is no "right way" to do this. ASPX pages cannot exist without a web server serving them up. They cannot work as ASPX pages from a filesystem.

You will have to convert everything to straight HTML and javascript in order to get them to work from a filesystem.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900