Note that there are some explanatory texts on larger screens.

plurals
  1. POError when attempting to run application
    primarykey
    data
    text
    <p>I am moving an asp.net web forms application over to mvc. I want to re-use as much code as possible so I decided use my existing linq to sql library.</p> <p>I am new to MVC, but have viewed numerous videos from PluralSite for direction.</p> <p>I created a model library to work between the linq to sql and the web api. I had read that I needed to do this because of linq to sql's complexities.</p> <p>I have also created a web api and started adding linq queries to the controllers.</p> <pre><code>public IList&lt;Model.vSchedulesFill&gt; GetCustomerSchedules(int id) { var sch = from p in _context.vSchedulesFills where p.CustomerID == id orderby p.SchedStartDateTime descending select new Model.vSchedulesFill(p); return sch.ToList(); } </code></pre> <p>I tested the above query using Fiddler and the result were good, so I tried to run the program and received the HTTP Error 403.14 - Forbidden error.</p> <p>The database is on a remote server, but I am running the app in debug mode on my local machine.</p> <p>The error mentions no default document or IIS directory browser not turned on.</p> <p>I looked up the default document and saw a lot about adding the web api help file. So I went to NuGet and installed it, but the application still will not run.</p> <p>I have looked all over for solution to this problem...</p> <p>What am I doing wrong and what do I need to do to fix this? </p> <p>Thanks for your help</p> <p>Added </p> <pre><code> &lt;directoryBrowse enabled="true" /&gt; </code></pre> <p>to web config under section system.webServer.</p> <p>Can view directory but that's not what I needed. I basically wanted to be able to run the program and then type in the path in the address bar, like I did in Fiddler.</p> <p>I didn't remove any of the default layout forms included in the web api project.</p> <p>Thanks</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload