Publish my system to IIS and it is not loading multiple files

Asked

Viewed 546 times

-4

I published my system on IIS (locally) and when I access it, it does not load a range of required application files. inserir a descrição da imagem aqui

I believe I published it correctly, but I’m not getting around to solving this problem. How do I make it possible to upload all these files? OBS: when I compile the system in Visual Studio, from perfectly.

  • As far as I could tell it was published, but the javascript addresses for example are wrong.

  • How do I solve the problem? When we publish it on the server in the room, we can access it perfectly. Just need to place the application in the local machine now running on the local IIS

  • It depends on how you are processing and including the javascript because in the address you have a folder and in the call of your script you do not have? maybe the point is there.

  • This is an example of how I am calling the files: <link href="/vendors/datatables.net-Bs/css/dataTables.bootstrap.min.css" rel="stylesheet">

  • @Jeffersonsouza At IIS, you have created a new website or configured, added a new application or just placed your content in the "autonav" directory inside the Netpub wwwroot folder ???

  • @Leandroangelo!

  • @Jeffersonsouza Which of the options? : P

  • Inetpub wwwroot

Show 3 more comments

2 answers

1

The first step you can try is to simply convert your directory to an application.

Open the IIS manager (type inetmgr in windows "run") inserir a descrição da imagem aqui

But it may still require some adjustments to your application for the baseURL

Another alternative is to create a new website using another port and pointing to your directory. If this server will run only this site, in the Default Web Site change the mapped path to your directory and be happy.

  • I have already done this, ai da os erros [link] https://i.stack.Imgur.com/xpLLu.png [/link]

  • What have you done? Allah, how have you made your Publish?

  • I made using the visual studio @Leandroangelo. I converted into application already

  • Tried one of the other alternatives?

0

Usually this error happens by running locally with a virtual directory other than the server.

For example, on your machine the address is http://localhost/ and on the server http://server/filename/

If this is the problem, just keep both environments with the same virtual directory.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.