Click here to Skip to main content
15,888,401 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Error is :
Error 1 The type or namespace name 'changerate' does not exist in the namespace 'Raj' (are you missing an assembly reference?) E:\mine\WebSiteD\Default.aspx.cs 15 13 WebSiteD
C#
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Text;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using System.Data.SqlClient;

public partial class _Default : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        Raj.changerate rs = new Raj.changerate();
        DataSet ds = rs.getrates();
        GridView1.DataSource = ds.Tables[0];
        GridView1.DataBind();
    }

}
Posted
Updated 3-Aug-14 23:55pm
v2
Comments
Prasad Avunoori 4-Aug-14 5:50am    
Do you have a class changerate in Raj namespace?
harshavardhan12345678 4-Aug-14 5:52am    
ha yeah
Prasad Avunoori 4-Aug-14 5:56am    
Then make sure you have given reference to Raj dll, then rebuild it.
harshavardhan12345678 4-Aug-14 5:59am    
again getting error
Prasad Avunoori 4-Aug-14 6:08am    
Is the class changerate declared as public?

It seems that you don't have a reference to assembly which contain mentioned class.

Fix it using:
Why did I receive the error: "The type or namespace '<namespace name="">' does not exist in the class or namespace '<parent namespace="">' (are you missing an assembly reference?)"[^]


[Update]
Check this also:
Error : Are you Missing an Assembly Reference?[^]

[Update 2]
Have you tried this:
C#
<system.webserver>
    <modules runallmanagedmodulesforallrequests="true"></modules>
</system.webserver>


Set runAllManagedModulesForAllRequests to true in your web.config.

--Amy
 
Share this answer
 
v3
Comments
harshavardhan12345678 4-Aug-14 7:14am    
HTTP Error 403.14 - Forbidden
The Web server is configured to not list the contents of this directory.

Most likely causes:
A default document is not configured for the requested URL, and directory browsing is not enabled on the server.

Things you can try:
If you do not want to enable directory browsing, ensure that a default document is configured and that the file exists.
Enable directory browsing.
Go to the IIS Express install directory.
Run appcmd set config /section:system.webServer/directoryBrowse /enabled:true to enable directory browsing at the server level.
Run appcmd set config ["SITE_NAME"] /section:system.webServer/directoryBrowse /enabled:true to enable directory browsing at the site level.
Verify that the configuration/system.webServer/directoryBrowse@enabled attribute is set to true in the site or application configuration file.

Detailed Error Information:
Module DirectoryListingModule
Notification ExecuteRequestHandler
Handler StaticFile
Error Code 0x00000000
Requested URL http://localhost:51569/
Physical Path E:\mine\ChangerateWS
Logon Method Anonymous
Logon User Anonymous
Request Tracing Directory C:\Users\Srikanth\Documents\IISExpress\TraceLogFiles\CHANGERATEWS

More Information:
This error occurs when a document is not specified in the URL, no default document is specified for the Web site or application, and directory listing is not enabled for the Web site or application. This setting may be disabled on purpose to secure the contents of the server.
View more information »
_Amy 4-Aug-14 7:34am    
Updated solution.
First upload changerate class file so i will give beater help you
 
Share this answer
 
Comments
Vishal radadiya 4-Aug-14 7:23am    
upload your class file CHANGERATEWS code .....

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900