简体   繁体   中英

Can't find namespace on host

I have a ASP.NET application that just works fine on localhost, but when I up to host I get an error:

The type or namespace name 'Nini' could not be found (are you missing a using directive or an assembly reference?)

I have no idea how to fix this. The dll was added by using 'add reference' on VS 08 and the Nini.dll file was uploaded in bin folder.

How to fix this?

无论在何处使用此DLL,都应尝试通过在代码中使用语句来包含名称空间。

Make sure that:

  1. The DLL is being copied over to the web server. You can check this by navigating to the site via FTP, or just going to where the files are deployed to (whether it be on your company's network, an external website/web app, etc.).

  2. If you're using a web deployment utility, like within Visual Studio for example, click on the DLL in the solution explorer, press F4 (for "properties"), and make sure that Copy Local is set to True. If not, set it to True, then try deploying again.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM