error ASPPARSE: Could not load type error with msbuild on teamcity - asp.net

I'm receiving error ASPPARSE: Could not load type error when building a project on team city.
The file it is failing on is a folder which is not referenced in the project but is just there for source control.
C:\TC\Agents\3\work\fd3ea8938fa12582>C:\Windows\Microsoft.NET\Framework64\v4.0.30319\aspnet_compiler -v /DummyDeployWeb -p C:\TC\Agents\3\work\fd3ea8938fa12582\Project C:\TC\Agents\3\work\fd3ea8938fa12582\PreCompiled\Project-fixednames -u
ERROR
/DummyDeployWeb/common/files/somefilename.ascx(1): error ASPPARSE: Could not load type 'Project.somefilename'
How can I get the project to build and ignore these folders that arent referenced?

The ASP.NET compiler knows nothing about project files, it simply processes the entire contents of the folder you point it at.
There is no way to tell the compiler to exclude specific files and so if this is a requirement for you then one solution would be to move these files out of the folder before you run the compiler and then copy them into the deployment folder after the compilation is complete.

Related

call gRPCTargets.cmake can't found libgpr.so

I import grpc project use gRPCConfig.cmake file. But the following error occurred
CMake Error at /home/openwrt/openwrt/staging_dir/target-arm_cortex-a53+neon-vfpv4_glibc-2.22_eabi/usr/lib/cmake/grpc/gRPCTargets.cmake:178 (message):
The imported target "gRPC::gpr" references the file
"/usr/lib/libgpr.so"
but this file does not exist. Possible reasons include:
The file was deleted, renamed, or moved to another location.
An install or uninstall procedure did not complete successfully.
The installation package was faulty and contained
/home/openwrt/openwrt/staging_dir/target-arm_cortex-a53+neon-vfpv4_glibc-2.22_eabi/usr/lib/cmake/grpc/gRPCTargets.cmake
but not all the files it references.

ASP.NET MVC 5 error: The type exists in both directories

I am working with Resource files. Previously it was in root directory and it was working in local system only not in build server
So i changed that files to App_ResourceFiles. Now whenever i am running the system its showing error
e:\Project\Views\Shared\_Layout.cshtml(20): error CS0433: The type 'Resources.Resources' exists in both 'c:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\b16288ea\ad7e7d58\assembly\dl3\84b4e25c\954d49a2_04b6cf01\Project.UI.DLL' and 'c:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\b16288ea\ad7e7d58\App_GlobalResources.687j25cv.dll'
I restarted the VS2013...deleted the root folder temp files and re-open the solution and clean and rebuild it.
But still it showing the same error again.
any help would be appreciable
Did you check the Project file?
And you might want to change the namespace.
see http://msdn.microsoft.com/en-us/library/64wh5743.aspx

aspnet_compiler incremental precompile

I have a website project and I want to make aspnet_compiler precompile incrementally (right now it cleans out everything and recompile everything from scratch)
I tried to delete the -f flag, and use fixednames, but then it gave me this error error ASPRUNTIME: The target directory is not empty.
am I suppose to delete the target directory after each instance of precompiling?

Error while publish MVC3 project

Error 1 Copying file Content\themes\base\AdminHomeImages\GiftControl.jpg to obj\Debug\Package\PackageTmp\Content\themes\base\AdminHomeImages\GiftControl.jpg failed. Could not find file 'Content\themes\base\AdminHomeImages\GiftControl.jpg'. 0 0 ResturantManager
I get the above error while publishing MVC3 project.. What should i do to solve it.
When you choose to Publish the Project and Let's say your Publish Method is "File System" that means you are copying your necessary files from one location to another location. The Index of these files are mentioned in your project file. You have two options below
(a) Remove the Index of these files(Files causing Compilation Error) from your Project File and Publish
(b) It is must to keep the Project related Files to their exact location(Files that causing Compilation Error, Try keeping a fake file with same name and same Extension). This relative path is mentioned in your project file. Publish now
This Compilation Error will not be shown when you Rebuild/Build the application.

Not able to create war file in netbeans

Hello I am trying to create a war file in netbeans7.0 but I am not able to create it. It is showing following error
Deleting directory C:\Documents and Settings\a\My Documents\NetBeansProjects\ABC\build
C:\Documents and Settings\a\My Documents\NetBeansProjects\ABC\nbproject\build-impl.xml:1109: Unable to delete file C:\Documents and Settings\a\My Documents\NetBeansProjects\ABC\build\web\WEB-INF\lib\asm-3.1.jar
This typically happens when trying to clean before the build, and GlassFish has a lock on a file that needs to be deleted in the clean process.
Try just doing build (without clean), or shut down GlassFish and then clean and build.

Resources