Server Error in '/IIS' Application - asp.net

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: CS0246: The type or namespace name 'PropertiesLayer' could not be found (are you missing a using directive or an assembly reference?)

Looks like your code could not findout "PropertiesLayer" which you are refering in your code.
Where is PropertiesLayer defined ? Is it a seperate assembly ? Did you add a reference to that ? If not, add that. That would fix your problem.
Also make sure you are really using something inside that namespace, If you are not using,just remove the import /using statement. I have seen code where namespaces are refereed and not being used.

Related

Error CS0246 the type or namespace name 'XXXX' could not be found (are you missing a using directive or an assembly reference?)

"Severity Code Description Project File Line Suppression State
Error CS0246 The type or namespace name 'BLLV2' could not be found (are you missing a using directive or an assembly reference?) DMS_WEB D:\Projects\DMS_Web\DMS_WEB\AddCompBranch.aspx.cs 11 Active"
I have a Solution in which I hava 2 projects. 1 is 'BLLV2' and the second one is DMS_WEB. I have passed reference of BLLV2 in DMS_WEB when I compile I got Error List
enter image description here
but when I Click to one Error it open that page and automatically is show "No Error Found" for specific page.
same I open all pages and till list goes to 0 when I build again it show error again for all pages.
You might also need to add those DLLs which you have added in BLLV2 project for some other task. These are basically dependent DLLs.
Along with that you can also clean the solution and try to Rebuild project again.

Reference to System.dll is declared but not found - how to solve?

I'm trying so solve a Warning in an old asp.net Webapplication.
The warning Shows:
The Reference of Type System.Collections.Generic.ISet´1 is declared in "c:\Windows\assembly\GAC_MSIL\System\2.0.0.0__b77a5c561934e089\System.dll" , but couldn't found
Data: System.Core.dll
All the Files are in the folders. I dont know what it means and how I should solve that warning. Anybody got a clue?

ASP.net MVC 3 Type or Namespace error 'DocApprove'

I am trying to build my application but I keep getting an error. This is what is presented:
The type or namespace name 'DocApprove' does not exist in the namespace 'EngineeringPortalMVC.Models' (are you missing an assembly reference?)
I'm not sure what is causing this.
Somewhere in your code you have the following reference:
EngineeringPortalMVC.Models.DocApprove
and that model/namespace does not exist or is not in the specified namespace. You need to do a solution wide search for EngineeringPortalMVC.Models.DocApprove and fix the issue by referencing the appropriate namespace where DocApprove is actually located.

Web service Compilation Error

I have a problem with a web service. I add a web service reference to my project. I use this service in many pages. It is working correctly, no problems in VS but I copy App_WebReferences folder's files and Web.Config file to ISS path. But it is not working.
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: CS0246: The type or namespace name 'InterkomLaboratuar' could not be found (are you missing a using directive or an assembly reference?)
Source Error:
Line 22: InterkomLaboratuar.Service1SoapClient _sistemTip = new InterkomLaboratuar.Service1SoapClient();
Source File: c:\Inetpub\wwwroot\MedulaV3\diyaliz02\Istemler.aspx.cs Line: 22
How can i solve this problem please help..
Copy Bin folder to IIS. You are missing some assemblies.

Error compiling ASMX while accessing the web service

I have a ASMX web service. When I access it from a client the ASMX get compiled but I get this error:
Looking at csc.exe command line from the error detail the System.Windows.Forms asseembly is not referenced.
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: CS0234: The type or namespace name 'Windows' does not exist in the namespace 'System' (are you missing an assembly reference?)
Source Error:
Line 3: using System.ComponentModel;
Line 4: using System.Drawing;
Line 5: using System.Windows.Forms;
Line 6: using System.Xml;
Line 7: using Idp.Core.Configuration;
This problem can occur for at least two reasons:
The required assembly (in this case, System.Windows.Forms) is not referenced by your project. You can resolve this by adding the reference to your project in Visual Studio and, if required, redeploying the site.
The using statement is superfluous. Sometimes I wind up with unwanted using statements in my file. If it's unused, deleting line 5 should resolve the issue.

Resources