Last post Nov 05, 2008 10:02 AM by imran_ku07
Oct 31, 2008 08: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 10:01 PM|allendehl|LINK
did you put the dll in the bin directory?...
Nov 01, 2008 04:54 AM|ajaykumar.pv|LINK
Nov 05, 2008 03: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 05: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 09:33 AM|ajaykumar.pv|LINK
Nov 05, 2008 09:38 AM|ajaykumar.pv|LINK
Nov 05, 2008 09:46 AM|imran_ku07|LINK
Nov 05, 2008 09:48 AM|ajaykumar.pv|LINK
Nov 05, 2008 10:02 AM|imran_ku07|LINK