Last post Nov 05, 2008 09:02 AM by imran_ku07
Oct 31, 2008 07:19 PM|ajaykumar.pv|LINK
iam new to asp.net.
i have created a class (invoice.cs), in the App_Code folder. Also a .dll file in the bin directory. i have used classes from both the dll and the class file to my .aspx and .aspx.cs pages. In the local server (using IDE), it's working. But in the case when
i upload those files to the website, iam getting a error - CS0246 The type or namespace name <type/namespace> could not be found (are you missing a using directive or an assembly reference?). What's the problem. Please help.
I read somewhere that it's something related to virtual directory.Is that correct? If it is, how to solve that problem. Any help will be appreciated
Oct 31, 2008 09:01 PM|allendehl|LINK
did you put the dll in the bin directory?...
Nov 01, 2008 03:54 AM|ajaykumar.pv|LINK
Nov 05, 2008 02:02 AM|Zong-Qing Li - MSFT|LINK
I suggest to publish the website in the visual studio and put it to the server. Otherwise, please check the configuration for the virtual directory.
Please refer to the following link below for the information about "ASP.NET and IIS Configuration"
I look forward to receiving your test results.
Nov 05, 2008 04:04 AM|abidshahzad|LINK
Re add the reference of the .dll file.
The Build and Publish. This may solve the problem
CS0246:The type or namespace name <type/namespace> could not be found (are you missing a using directive or an assembly reference?)
Nov 05, 2008 08:33 AM|ajaykumar.pv|LINK
Nov 05, 2008 08:38 AM|ajaykumar.pv|LINK
Nov 05, 2008 08:46 AM|imran_ku07|LINK
Nov 05, 2008 08:48 AM|ajaykumar.pv|LINK
Nov 05, 2008 09:02 AM|imran_ku07|LINK