Reputation: 392
when I work in debug with IIS Express in visual studio and try to reach a file in /wwwroot, I don't have any problem with the path = 'wwwroot/fileName'.
But when I deploy my website into IIS Express server, I can't reach the file anymore and I get error because the file doesn't exist.
Did I make something wrong ? Did the path is not the same when WebSite is deploy ?
PS : The file is '.xlsx' extension
Upvotes: 2
Views: 906
Reputation: 32037
Most likely the file is not being deployed. Assuming you're using Visual Studio, try this:
My guess is you will find something wrong with that Content field. Deploy again and you should be good to go.
Upvotes: 3