.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Post New Web Links

Compiler Error Message: CS0308

Posted By:      Posted Date: September 04, 2010    Points: 0   Category :ASP.Net
 
Can anyone explain the meaning of this error?   Compiler Error Message: CS0308: The non-generic method 'System.Web.Mvc.Html.LinkExtensions.ActionLink(System.Web.Mvc.HtmlHelper, string, string, string, string, string, string, System.Web.Routing.RouteValueDictionary, System.Collections.Generic.IDictionary<string,object>)' cannot be used with type arguments Source Error: Line 23: <div id="header"> Line 24: Line 25: <p id="logo"><%= Html.ActionLink<InstancesController>(c => c.Index(), "Firmex Instance Manager") %></p> Line 26: Line 27: <ul id="mainMenu">   Thank you, in advance.


View Complete Post


More Related Resource Links

Compiler Error Message: CS0308

  
Can anyone explain the meaning of this error?   Compiler Error Message: CS0308: The non-generic method 'System.Web.Mvc.Html.LinkExtensions.ActionLink(System.Web.Mvc.HtmlHelper, string, string, string, string, string, string, System.Web.Routing.RouteValueDictionary, System.Collections.Generic.IDictionary<string,object>)' cannot be used with type arguments Source Error: Line 23: <div id="header"> Line 24: Line 25: <p id="logo"><%= Html.ActionLink<InstancesController>(c => c.Index(), "Firmex Instance Manager") %></p> Line 26: Line 27: <ul id="mainMenu">   Thank you, in advance.    

Compiler Error Message : CS0006: Metadata file 'System.EnterpriseServices.dll' could not be found

  

I get this error when i Debug my web application....

error

I followed these steps.,

  • Ended the aspnet_wp.exe process in the Windows Task Manager
  • Then deleted the application`s folder in C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\
  • Then started Visual Studio 2008 again

I also rebooted my system but no use....

Plz help !


How can I solve this problem?::Compiler Error Message: CS0433: The type 'CrystalDecisions.Web.Cryst

  

I upgraded my web application from visual studio 2003 to 2008. When I want to create a report in visual studio 2008 and receiving this error at runtime. I am able to compile but when runnning thats when I am getting this error.

How can I solve this problem? please help.

Compilation Error

Server Error in '/IRPSDEV' Application.

Compilation Error

Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

Compiler Error Message: CS0433: The type 'CrystalDecisions.Web.CrystalReportViewer' exists in both 'c:\WINDOWS\assembly\GAC_MSIL\CrystalDecisions.Web\10.5.3700.0__692fbea5521e1304\CrystalDecisions.Web.dll' and 'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\irpsdev\9e97e0a9\94a2ecd\assembly\dl3\151eb571\00df56e1_6064c201\CrystalDecisions.Web.DLL'

Source Error:

Line 161:        
Line 162:        [System.Diagnostics.DebuggerNonUserCodeAttribute()]
Line 163:        private global::CrystalDecisions.Web.CrystalR

Compiler Error Message: CS0103: The name 'lblRegion' does not exist in the current context

  
i am gettign this error Compiler Error Message: CS0103: The name 'lblRegion' does not exist in the current context Source Error: Line 31: {Line 32: Line 33: lblRegion.Text = dt.Rows[0]["RegionName"].ToString();Line 34: lblCountry.Text = dt.Rows[0]["CountryName"].ToString();Line 35: lblCountryCode.Text = dt.Rows[0]["CountryCode"].ToString(); this is source code:using System;using System.Data;using System.Configuration;using System.Collections;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.WebControls;using System.Web.UI.WebControls.WebParts;using System.Web.UI.HtmlControls;using System.Net;using System.Xml;public partial class CSharp : System.Web.UI.Page{    protected void Page_Load(object sender, EventArgs e)    {        //Get IP Address        string ipaddress;        ipaddress = Request.ServerVariables["HTTP_X_FORWARDED_FOR"];        if (ipaddress == "" || ipaddress == null)            ipaddress = Request.ServerV

"Compiler Error Message: BC30002: Type 'OledbParameter' is not defined."

  

The code below gives the following error:

"Compiler Error Message: BC30002: Type 'OledbParameter' is not defined."

Changing OledbParameter to SQLParameter does nothing. Nor does anything else I've tried, including staring, praying, methamphetamines, Green Lantern rings or applications for government aid.

Can anyone see what I am doing wrong?


<%@ Page AspCompat="true" language="VB" masterpagefile="./master.master" %>
<asp:content id="head" contentplaceholderid="head" runat="server">
<TITLE>Donate Wheels: Many Thanks!</TITLE>
</asp:content>
<asp:content id="content" contentplaceholderid="content" runat="server">


<%
'declare your variables
Dim charity, donorname, email, phone, carcolor, make, model, year, vin, notes
Dim sConnString, connection, cmd
'Receiving values from Form, assign the values entered to variables
charity = Request.Form("Charity")
donorname = Request.Form("Name")
email = Request.Form("Email")
phone = Request.Form("Phone")
carcolor = Request.Form("Color")
make = Request.Form("Make")
model = Request.Form("Mode

Compiler Error Message: CS1501: No overload for method 'EndExecuteNonQuery' takes '0' arguments

  

Hello..

I have a page that add and edit news. and 2 class file

first:


public class PageDataAccess:Page
{
    protected DataAccess DA=new DataAccess();

    protected void Page_UnLoad(object sender, EventArgs e)
    {
        DA.DataClose();
    
    }
}

Second:


public class DataAccess
{
    SqlConnection conn = new SqlConnection(ConfigurationManager.ConnectionStrings["MisrNewsConn"].ToString());
    public DataAccess()
	{
		//
		// TODO: Add constructor logic here
		//
        conn.Open();
	}
    public void DataClose()
    {
        conn.Close();
    }
    public int addEditNews(string Nid,string title, string summary, string detail, string cid, bool Ishome, bool IsMain, byte[] image)
    {
        SqlCommand cmd = new SqlCommand("StoredProcedure1", conn);
        cmd.CommandType = CommandType.StoredProcedure;
        cmd.Parameters.AddWithValue("@title",title);
        cmd.Parameters.AddWithValue("@summary",summary);
        cmd.Parameters.AddWithValue("@detail",detail);
        cmd.Parameters.AddWithValue("@cid",cid);
        cmd.Parameters.AddWithValue("@Ishome",Ishome);
        cmd.Parameters.AddWithValue("@IsMain", IsMain);
        cmd.Parameters.AddWithValue("@image&qu

Compiler error message:CS0433

  

Hello All,

I have a webapplication which uses the telerik controls.Whenever i run the web application, it says that
The type 'Telerik.Web.UI.RadScriptManager' exists in both c:\WINDOWS\assembly\GAC_MSIL\Telerik.Web.UI and
c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root.

Inorder to get rid of it temporarily, i copied the same telerik.web.ui.dll from c:\WINDOWS\assembly\GAC_MSIL and copied to the temporaray
asp.net files.But after sometime, the error appears again.

how to solve this permanently.

This error is driving me nuts.Please anyone try to help to solve the issue.


Thank You,

Smith


smith

Inserting personal error message in ValidationSummary

  

Hi,

I am creating a web form that requires a lot of validation. I use many of the validation control in asp.net already like RequiredFieldValidator and CompareValidator. 

My Problem: after my custom validation for the value entered return an error message, and I pressed enter key when the field is empty, my custom error message is overlapped by my ValidationSummary. 

Setting my custom error to visible = false on button click also does not seem to work as it requires for me to enter the value first.

This made me think, is there a way to insert my custom validation inside the ValidationSummary as an error message like for other validation control?

Thanks in advance


create user wizard login error message dont show in a message box?

  

hi

 

i am using create user wizard and capturing other information within content template when a new user

registers. Some of the textboxes are binded to required field validators.

 

there is a validation control on the page and ShowMessage box is True.

If they dont complete some of the text boxes then the message box pops Up with the error message.

It does not however include information errors like "User already exists" or Email address already exists

from the create user wizard membership  UserName and Password Textboxes

 

is it possilbe to hook all of these up so I get one message box with all errors including membership ones?

 

thanks

 


Very Basic Question - Error message running first page

  

Hi Everyone,

I am running Windows 7 and I have gone into Control Panel and activated all of the IIS Functions.

The web application I am running was downloaded from the net (and has worked on other machines previously).  Once I downloaded it, I moved it into C:/inetpub/wwwroot/code/main.asp

I am a bit of a novice at this!  But I am hoping someone can point me in the right direction!

 

I get the following error when I try and run the web application through IE:

"An error occurred on the server when processing the URL. Please contact the system administrator. If you are the system administrator please click here to find out more about this error."

(When i click the "click here" button it just goes to the IIS site).

 

Appreciate any help I can get!

Thankyou!

 

 


Localize framework message from xml validation error

  

I need to validate an XML through XSD. I am using XMLReader (with XmlReaderSettings and 

Validation_EventHandler to do it). Depend on users preference, I would like to change the output message generated by  Validation_EventHandler in french or english.

Any idea on how to perform this?

 

Thanks

Bert

 


Error Message when trying to open crystal report

  

Logon failed. Details: 42000:[Microsoft][ODBC SQL Server Driver][SQL Server]Cannot open database "DATA" requested by the login. The login failed. Error in File C:\Windows\TEMP\NewQuote {573CE511-64B7-4161-B9DF-0E58EB1EDA19}.rpt: Unable to connect: incorrect log on parameters.

I get the above message when loading the crystal report from the Intranet via IIS but it works fine from the localhost the report loads ok and picks up my parameters.  This is my Code behind Page.

Protected Sub form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles CrystalReportViewer1.Load

        Dim Count As Int32
        Count = Int32.Parse(Label1.Text)

        Dim ConnInfo As New ConnectionInfo
        With ConnInfo
            .ServerName = "\\Server1\Sqlexpress"
            .DatabaseName = "DATA"
            .UserID = "sa"
            .Password = "1181

Weird security configuration error message

  

Recently something has gone wrong with our website so that whenever you try to access an aspx file, it shows the following error:

 

Server Error in '/RALSWeb' Application.


Configuration Error

Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

Parser Error Message: Access is denied: 'RalsWeb'.

Source Error:

 
Line 256:                <add assembly="System.EnterpriseServices, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
Line 257:                <add assembly="System.Web.Mobile, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
Line 258:                <add assembly="*"/>
Line 259:            </assemblies>

Parser Error Message: Could not load type MasterPage File

  

 

Server Error in '/' Application.

Parser Error

Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.

Parser Error Message: Could not load type 'wamsilverlight.Web.Wam'.

Source Error:

Line 1:  <%@ Master Language="C#" AutoEventWireup="true" CodeBehind="Wam.master.cs" Inherits="wamsilverlight.Web.Wam" %>
Line 2:  
Line 3:  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">


Source File: /Wam.Master    Line: 1


Version Information: Microsoft .NET Framework Version:2.0.50727.4952; ASP.NET Version:2.0.50727.4927

 

All of the following have been tried over and over again:

1.) Delete all existing .dlls

2.) Delete MasterPage File and recreate it.

3.) Delete MasterPage perform a c

Error message when selecting a row in webdatagrid

  

Hi,

I have a webdatagrid control that is loaded by using an sqldatasource.  I have add and edit methods that behave correctly, however, I have a problem when I delete a row.   I can delete the row correctly from the datagrid and the database, but as soon as I select another row in the grid straight after, I get an error:

Microsoft JScript runtime error: 'undefined' is null or not an object

 

There are no events wired up to the row select, so it doesn't appear to be that.

 

Can anyone help?

 


override error message (The value 'test' is not valid for Age) when input incorrect data type for in

  

Hello everyone,

I've tried to override error message when input incorrect data type in input field on HTML form. For example I have the model like this.


public class Person
{
public string FirstName {get;set;}
public int Age {get;set;}

}

For view, I put text input for Age to get it value.

When type some string in Age text box like 'test' and press submit button. I got this error message

The value 'xxx' is not valid for Age

However, I want to change this message and try many way. There 's nothing effect this message value.

Please could you help me to solve this problem.


Importing Excel 2007 spreadsheet into WSS 3.0 -- Error Message

  

Hi,

I'm trying to import (Custom Lists >> Import Spreadsheet) into WSS 3.0 and I'm getting the following message: 

Refers to the _layouts

You are not authorized to view this page.  You might not have permissions to view this direcotyr or page using the credentials you supplied. [More stuff here.]

Http ERror 403 - Forbidden

Is this just a permissions problem or is there some other underlying issue?  Should you be able to upload an Excel spreadsheet (with links) into a Custom List?

Thanks!


Thanks! Patti N.
Categories: 
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend