I have download the Web Deployment Projects tool
and made add web deployment project to my website
and I set the following properities:
Compilation --> generate debug information , allow precompiled site to be updated
Out assembiles --> merge all output to a single assembly
Deployment --> Create IIS Virtual Directory for output folder , replace existing virtual directory , remove App_Data folder from output location
Then I have created a web setup project and add the apxs files in the file system of the web setup project and I also added project output of the web deployement project
After I compile the solution and Install the website , and trying to browse the website from IIS the pages is displayed but there are data in database isn't retrieved and isn't displayed in the page while If I create the Virtual directory manually from IIS it works right and display the data from database
Note:
I added some tags in web.config file
<appSettings>
<
add key="ConnectionString" value="Provider=sqloledb;Data Source=developer3;Initial Catalog=KSearchDatabase;Integrated Security=SSPI;" /><add key="Connection_Type" value="SQLServer" />
<
add key="Addressing_Type" value="Rel" /><add key="IndexPath" value="Indexes" />
<
add key="FilePathStr" value="Files" /></appSettings>
Where is the problem ?!!!