"Венчурные Интеллектуальные Проекты"
04 Мая 2024, 06:53:55 *
Добро пожаловать, Гость. Пожалуйста, войдите или зарегистрируйтесь.

Войти
Новости:
 
   Начало   Помощь Войти Регистрация  
Страниц: [1]   Вниз
  Печать  
Автор Тема: Как запустить ваш сайт Asp.net от корня "/"  (Прочитано 4768 раз)
0 Пользователей и 1 Гость смотрят эту тему.
krakoss
Разработчик 2
Ветеран
***
Offline Offline

Сообщений: 600


Email
« : 07 Февраля 2012, 11:59:08 »

Цитировать
How to Run your Asp.net site from root "/" location (in url) instead of using project directory in Visual Studio 2010?


By default, web application project in visual studio 2010 will run the asp.net site from the root directory. For example, http://localhost:1593/Default.aspx

But the Website project in visual studio will include the project directory in the url when executing. Like below, http://localhost:1568/UrlDemo/default.aspx

To make the Website project to run from root "/" directory,
1. Go to solution explorer, click the project node and go to property window(not property pages). Else, you can simple press F4 after clicking the project in solution explorer to get the property window.
2. Change the "Virtual Path" property from the project directory to simply "/".
3. That's it. Execute your application.
Записан
krakoss
Разработчик 2
Ветеран
***
Offline Offline

Сообщений: 600


Email
« Ответ #1 : 12 Февраля 2012, 08:42:33 »

Особенно это важно при работе с базой данных SQLite
выкладываю фото как надо настроить свойства решения
Записан
Страниц: [1]   Вверх
  Печать  
 
Перейти в:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!