pamela rizk
asked on
Publishing web application
dear All
when i publish/recompiled a web application i got the below error:
Could not load file or assembly 'App_Web_hfkovznn, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.
but if i publish without precompile the application , web application will be opeend correctly please advise.
when i publish/recompiled a web application i got the below error:
Could not load file or assembly 'App_Web_hfkovznn, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.
but if i publish without precompile the application , web application will be opeend correctly please advise.
Try to fully get the folder structure of the server, and the folder structure of your project. Probably there's a folder in the local project that's NOT on the server (could even be that it's not even needed). But you still need that folder on the server. Either place a file in the local folders, or create the folder on the server.
You might be referencing an unused assembly somewhere in your project, if you do not pre-compile it will run until it tries to use that assembly, then it will error out.
ASKER
ok but how can i know which file is giving this error?
It could still be a folder (that may not even be used). That's why I said you need to compare you local folders and the server folders.
The non-existent server folder (even though not in use), coud still cause the sync to fail.
If you don't want to bother comparing, place empty files in each empty local folder. It will force a sync where the folder will be created anyway now because of this file.
The non-existent server folder (even though not in use), coud still cause the sync to fail.
If you don't want to bother comparing, place empty files in each empty local folder. It will force a sync where the folder will be created anyway now because of this file.
ASKER
dear All,
i have same files in server and local since i clone my project again
and now i am having below error:
Could not load file or assembly 'App_Web_gs2qam0y, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.
Please help
i have same files in server and local since i clone my project again
and now i am having below error:
Could not load file or assembly 'App_Web_gs2qam0y, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.
Please help
The problem is, during cloning, it might skip creating a server folder, because the folder is empty. Then during Publishing, it's missing this folder (even though no files are needed) and throws an error. You have to manually try to find this folder and create it on the server side.
ASKER
dear all
i copy this project to another folder and i deleted it from git as i am having sample project
and i have same problem
Please help!
i copy this project to another folder and i deleted it from git as i am having sample project
and i have same problem
Please help!
ASKER
dear all
i am stuck with this issue 2 days ago please i need a solution for this
thank you
i am stuck with this issue 2 days ago please i need a solution for this
thank you
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.