MSBuild Error

Discussion in 'ASP.NET / ASP.NET Core' started by Santinath, Aug 1, 2011.

  1. Hi all, I want to publish my asp.net web project using ms build and I'm using a batch file and given reference to one xml file configuration file. Here is the contents of the files. Is is working fine on development system but once move the source code to customer system it is not working as expected though they have changed the path mentioned in the build.xml file. It throws error.
    Please reply.


    Build FAILED.
    /SMS/global.asax(1): error ASPPARSE: Could not load type 'SMS.Global'.


    bat file
    -------------------------------
    set path=%path%;C:\Windows\Microsoft.NET\Framework\v2.0.50727;
    msbuild Build.xml
    Pause


    Bild.xml
    --------------------------------
    <Project DefaultTargets="Main" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
    <PropertyGroup>
    <WebsiteName>STIMS</WebsiteName>
    <PrecompiledAssembliesPath>D:\Test\Publish</PrecompiledAssembliesPath>
    <BuildDirectory>D:\Test\STIMS</BuildDirectory>
    </PropertyGroup>
    <Target Name="Main">
    <AspNetCompiler
    VirtualPath="/$(WebsiteName)"
    PhysicalPath="$(BuildDirectory)"
    TargetPath="$(PrecompiledAssembliesPath)"
    Force="true"
    Debug="false"
    Updateable="true"
    FixedNames="true"
    Clean="true" />
    </Target>
    </Project>
     
  2. I solved the issue. By mistake I've delete the SMS.dll from the bin folder. Then I've build the app so that it will create the SMS.dll file in the bin folder and then publishing it.
     
  3. mjp

    mjp

    Thanks for posting the follow-up.
     

Share This Page