aydnahmet / Dalyan

Dalyan Web Application Project Template
35 stars 18 forks source link

How can I test Dalyan with SQL Express and IIS Express? #2

Open BuiTanDuoc opened 7 years ago

BuiTanDuoc commented 7 years ago

I want test Dalyan with IIS Express and SQL Express. How can I do?

aydnahmet commented 7 years ago

Did you deploy Database project to SQL Express?

Database Project is under Dalyan.Database directory. Build and publish to your SQL Express.

Set connection string in Dalyan.SPA/Web.Config

BuiTanDuoc commented 7 years ago

I think Database OK! What wrong with connection strings? In Dalyan.SPA\web.config `

`

and Dalyan.WebApi\web.config `

`

And error: /Dalyan.WebApi/User/GetAll Failed to load resource: net::ERR_CONNECTION_REFUSED

Thanks.

BuiTanDuoc commented 7 years ago

Thanks. I found what wrong. Change this: `var config = { apiurl: "http://localhost:8781/", weburl: "http://localhost:16178/",

generateApiUrl: function (serviceUrl) {
    return config.apiurl + serviceUrl;
}`

Thanks very much.

aydnahmet commented 7 years ago

Your welcome :)