Type or namespace is not found Error when deploying the website

257 Views Asked by At

the website works nice on local system but when I deploy it , an exception throws that :

CS0234: The type or namespace name 'ISisoDatabase' does not exist in the namespace 'SisoDb' (are you missing an assembly reference?) ?

it's a shared host by the way .

any idea why this is happening ?

Edit : I used Web Project instead of WebSite and this error is gone but another exception is thrown :

Could not load file or assembly 'SisoDb, Version=15.1.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The module was expected to contain an assembly manifest.

solved : the problem was the ftp client I used to upload dlls . it sounds ftp corrupted the dlls. when I added assemblies using file manager , the problem was solved

1

There are 1 best solutions below

0
On BEST ANSWER

the problem sometimes is the ftp client that is used to deploy files .they corrupt files when uploading them . try uploading files using file manager .