c# - AppHarbor - /order/rpc.ashx(1): error ASPPARSE: Could not create type 'web.order.rpc' -
this first attempt @ getting project running on appharbor
the solution references number of other project dlls. build works locally , using git push appharbor.
i message build fails: /order/rpc.ashx(1): error aspparse: not create type 'web.order.rpc'.
[httpparseexception]: not create type 'web.order.rpc'.
at system.web.ui.simplewebhandlerparser.gettype(string typename)
at system.web.ui.simplewebhandlerparser.gettypetocache(assembly builtassembly)
....
at system.web.compilation.buildmanagerhost.precompileapp(clientbuildmanagercallback callback, list`1 excludedvirtualpaths)
at system.web.compilation.clientbuildmanager.precompileapplication(clientbuildmanagercallback callback, boolean forcecleanbuild)
at system.web.compilation.clientbuildmanager.precompileapplication(clientbuildmanagercallback callback)
at system.web.compilation.precompiler.main(string[] args)
the source code pretty simple:
namespace web.order
{
public class rpc : ihttphandler { public void processrequest(httpcontext context) { var response = context.response; var request = context.request; response.expires = 0; response.contenttype = "text/plain"; response.write("{}"); } public bool isreusable { { return false; } } }
}
any appreciated
ok having same issues precompilation of site sub web application included on it.
the check list solve was:
- make sure dll ashx inside bin directory.
- if using code behind files, make sure cs files included inside folder app_code
- you can try compile folder locally can see if there missing:
c:\windows\microsoft.net\framework64\v4.0.30319\aspnet_compiler.exe -v / -p "c:\your\webs\folder" -errorstack
this command helps check can wrong.
my scenario little different. in remote server (iis 7.5, don't use appharbor) checked site project created using:
c:\windows\system32\inetsrv\appcmd list sites
then checked id site wanted precompile. in sample 5, run:
c:\windows\microsoft.net\framework64\v4.0.30319\aspnet_compiler.exe -m lm/w3svc/5/root -c -errorstack
and compiled.
another way make compilation copying dll included ashx child application folder main site bin folder can derive in problems , dependencies issues.
Comments
Post a Comment