Good day!
After watching a video I was able to summarize the steps I needed as such:
Steps in configuring and deploying to IIS ASP.NET 1. Create directory
example:
C:/inetpub/wwwroot/mvcauction
- Open internet information services Manager
- Right-click default website
- Add application.
- Choose website name. example mvcauction
- Paste the directory you created in step 1.
- Click select button.
- Make sure that the property has .net framework version 4.0
Click ok.
Go to your visual studio IDE.
- Righ-click on the project file in the solution explorer.
- CLick publish
- Click publish profile drop down and select new. Add a profile name. Example: Local IIS Website
- Choose publish method File System
- Use step one's directory for the Target location
- configuarion: Release
Choose local IIS Website.
Expect an error.
- Open visual studio command prompt.
- Execute this command: sqllocaldb share v11.0 IIS_DB
- Update your web config. Refer to the paint screenshot.
- Publish again in iis manager.
if not yet ok:
- Go to visual studio again.
- Open data base explorer.
- Right-Click to data connections to add connection.
- For the server name: Enter the value that we are using in the config file data source. Example (LocalDB).\IIS_DB
- Click ok
- Righ-Click on the new connection added.'
- Choose new query.
- Execute the shown commands.
- Go to the browser and refresh.
However I cannot finish step 21 which I conclude is because the tutorial did not use oracle database as its data source. I cannot publish my visual studio project successfully. So, please, does anyone here know what to put in the web config file?
This is my web config file:
<configuration>
<system.web>
<compilation debug="true" strict="false" explicit="true" targetFramework="4.5" />
<httpRuntime targetFramework="4.5" />
</system.web>
<connectionStrings>
<add name="OracleConnectionString" connectionString="Data Source=localhost;USER ID=userid;PASSWORD=password"
providerName="Oracle.DataAccess.Client" />
<add name="ConnectionString" connectionString="Provider=MSDAORA;Data Source=localhost;Password=password;User ID=userid"
providerName="System.Data.OleDb" />
</connectionStrings>
<appSettings>
<add key="ValidationSettings:UnobtrusiveValidationMode" value="None" />
</appSettings>
</configuration>