I am publishing a project in my local computer, I am getting an error because of the path of the files, in my project I am using relative path, but when i published the project I specified a Site/application so I put: localhost/myapp, but then, after the login the additional name myapp make it loses the path references, do you have any idea how to go through this?
Error after publishing .net web project
160 Views Asked by DuSant At
1
There are 1 best solutions below
Related Questions in ASP.NET-MVC-4
- SignalR client is not connecting to the hub after changing the client app's cookie name
- How I Can send question and answer by without reload web page
- Load SQL database saved MS word document to Syncfusion Document Editor
- @Html.ValidationSummary(true) throw CSP error
- Rotativa PDF export taking significantly longer on Windows Server 2016 after recent update
- Two ASP.NET MVC applications overwrite same session cookie
- List is not binding in controller, when pass it through hidden field from view in ASP.NET MVC
- Calling AJAX methods in parallel increases server response time?
- OpenCover Profiler Error : ProfilerCommunication::RequestInformation(...) => Communication (Chat channel - TrackAssembly) with host has failed
- Nested child sub menus not getting generated in Asp.Net Core MVC project
- How to show Documents on viewer when htmlmode: true in Configuration.yml file in Group Docs
- ASP.NET MVC role is trying to use SQL Server Express not the SQL Server
- Error HRESULT E_FAIL has been returned from a call to a COM component in Asp.net MVC
- How I can get total number from Database by SignalR
- Application Insights telemetry shows 'NA' from MVC 4 application behind private load balancer
Related Questions in RELATIVE-PATH
- Python importing hierarchy failing
- how to access a file under the localhost path that my Python app runs
- How to set relative path in a .js file which works inside a executable(windows exe) file for below scenario
- How to set types for absolute path and relative path?
- How do I get TInyMCE to accept relative image paths without a leading slash
- Using relative file paths in Go as function parameters
- jest not working with absolute paths, how to fix in nestjs app
- Relative path in Java for program that run on other machines
- ENOENT: no such file or directory, open './src/assets/images/logo.png'
- Is it Possible to Save Images to Documents Directory Android Studio - Kotlin
- How to make the level of subpackage up when import subpackge in main script?
- File referencing using relative paths on Ruby
- How can I open .ttf font in SDL2_ttf?
- Trouble with Cygwin, Curl and Full paths for certificates in windows
- Error: The deployment failed: Relative import path "$fresh/server.ts" not prefixed with / or ./ or ../
Related Questions in PUBLISHING
- Why does visual studio not make an exe file when using the windows service template and publishing it?
- Can't publish my linux Flutter app on snapcraft
- Usage of .exe file in framework-dependent asp.net core publish
- Publishing in Visual Studio 2019 - Could not find part of path
- UnexpectedAppleResponse Error when trying to publish app to App Store
- gradle publishing not working - No such Algorithm
- How to publish free unity game to Google Play?
- How can I put publish files in the custom folder in asp.net core?
- Publish app Huawei Appgallery in the China
- How can I "publish" an editor add-on to be used by just me?
- C# application publishing error - references to development computer in cronjob errors on remote dev server
- My App is in review or pending publication in google play store
- Publish button missing in Visual Studio
- Flutter and Android Studio Publishing
- Safe distribution of Spring based application
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
I encountered the same problem with my web application this problem occurs because in your application you are hardcoding paths for ex :-
/Home/Indexor something which creates problems whenever you want to provide paths use helpers like@Url.Action(),@Html.Action(),@Url.Content()as shown below :-If you are using areas in you application then specify it as :-