I have developed an asp.net MVC 3 website. When I upload the site to a server (bin folder in which there are dll files) and Views (in which there all necessary pages) and other folders except coding and also upload the web.config file.
But when I enter a URL in web browser it give me the error:
Server Error in '/' Application. The system cannot find the file
specified
Kindly inform me how to solve this. Thanks in advance.
Related
I have a file located inside a folder on my server: F:\Data\Attachments\a.pdf.
I'm using Blazor server app with asp.net 5.0 and C#. Up to now, the user that uses the application can upload this file. This file is correctly saved inside my server folder.
I can open the file with the powershell on my computer on which the Blazor Server App is running thanks to \\ip_server\Data\Attachments\a.pdf and I checked the permissions of the folder on the server.
I want to create a button that consent to download the file on the client machine (so, notify the browser and open the save dialog to choose the destination) or something similar because I tried everything without success.
I also tried to open the file using a link <a href="file:////ip_server/Data/Attachments/a.pdf" >link</a>.
When my file was located inside the project folder, I had no problem. So, how can I solve this issue? Is there something that I'm missing?
If you need any other information, please ask.
Thanks in advance.
I have a ASP.Net MVC Application with CKEditor which helps me to create/edit the images with note.
I placed my images in the azure blob storage and trying to edit them using CKEditor. I have added Azure connector in place. The Application is working in IIS and able to access the images from the blob storage and edit them. But after migrating to the Azure Web App its failing to load the language file with the following error:
"Could not start CKFinder: Language file is missing or broken"
Below link states that mime type is missing and needs to be added:
CKFinder used in CKEditor does not work in my ASP
How do I update it in Azure WebApp(PaaS)?
You should add .json MIME type to your IIS configuration. Please read the docs https://ckeditor.com/docs/ckfinder/ckfinder3-net/quickstart.html#quickstart_troubleshooting_json
so I have an asp.NET website I've developed. I bought a domain and a host service. I went to the host services and uploaded all the files.
Problem: the start page has to be index.html/htm (which is located in root directory/httpdocs) but visual studio doesn't create a index.html file, so i made one myself. Thing is I cant redirect to any other files, I don't know the path. I've tried:
- "mywebsite.com/otherfile.aspx" but it says file not found.
- "mywebsite.com/httpdocs/otherfile.aspx" file not found.
- "/otherfile.aspx" file not found.
- "~/otherfile.aspx" file not found.
can anyone think of how I could access this file? I've never setup a website :(
are you sure that your hosting provider supports .Net? Httpdocs and Plesk sound like a Linux server that is not configured to server .aspx files.
I've published my ClickOnce application to my website via FTP.
I've got 404 error (not found) when run "app.application". In log file there is a line that says cannot find "app.exe.config" file.
I noticed that I can access to this file via FTP and online file manager of website, but when I try to use HTTP, this error is shown.
I've created new files with different names on website (all of them have .config or .cfg extension), but result is the same: I cannot access them via HTTP (through address bar of browser).
I am using a windows web hosting server and it has a "web.config" file in the root folder of website.
Should I do any change in server settings or I must rename my .config file?
any help will be appreciated.
** Dumb questions alert **
I created my first Web API project. I would like to test it on my web host, but I can't figure out what files to upload. I tried to upload everything from the HelloWorld folder, but I get a 403 "Access is denied" error when I attempt to access the files.
Once I upload the folders/files, how do I access them? Do I have to navigate to the Root > Views > Home > ... ?
Folder Structure
HelloWorld
HelloWorld
_UpgradeReport_Files
1 css, 1 xslt, 4 pngs
HelloWorld
All of my folders and files
This is what I tried to upload
packages
A lot of ASP and JQuery folders
Thank you for your help.
I think you have two separate problems here: knowing what files to deploy and getting the permissions correct so that you can access them.
In general, the files you will need to deploy are all of your static files (images, CSS, Javascript, HTML), any .cshtml/.aspx/.ascx/.asax files, and Web.config. However, the easiest (and best) way to know what files to deploy is to use Visual Studio's publishing mechanism. Go to Build->Publish, and publish to a local directory. Open that directory, and you'll see all the files you need to deploy.
As far as the second problem, that's more complicated. The solution depends on the version of IIS, but the basic upshot is that you need to give the correct user access permissions to your file. Depending on your version of IIS and how it's confusing, it will either be IUSR, IIS_IUSRS, or NETWORK SERVICE. Try Googling for "file permissions IIS ".