This topic has been archived. It cannot be replied.
-
工作学习 / 学科技术讨论 / 问一个ASP.NET的简单问题.my code within App_Code can't be accessed when i copy my work to a test server.多谢!
-od2nw(cool);
2008-7-14
(#4555276@0)
-
你要先Compile成bin file,用VS 2005 以上的话可以直接用Deploy web site
-dzhu(Daniel);
2008-7-17
(#4562114@0)
-
copy for .net 2.0 doesnt work, need to "publish web site"
-c1xwy(洪兴罩俺去战斗);
2008-7-17
(#4562124@0)
-
谁说的,我自己网站,从来都是copy 原文件,.net会自己编译,放的cach里运行
编译仅仅为了加密
-googlebot(bot);
2008-7-17
(#4562314@0)
-
yup, u a right, why last time i copied doesnt work, strange
-c1xwy(洪兴罩俺去战斗);
2008-7-17
(#4562333@0)
-
are you sure? it never happen to me... what do you mean cannot be accessed?
-thunderbolt(孙悟空);
2008-7-17
(#4562435@0)
-
i copied the entire folder to the test server and have such a problem. so, i rewrite my code and put the classes inside the page and it works.
也多谢其他高手指教,再试试.我现用VS2005.
-od2nw(cool);
2008-7-19
(#4566758@0)
-
the code in app_code folder should be directly used in your web application, maybe you are trying to use dependent assembly in GAC, try to change web.config and see the error log
-thunderbolt(孙悟空);
2008-7-21
(#4570173@0)
-
that's the point. i will try and see what happened and let know my practice. thanks a lot.
-od2nw(cool);
2008-7-21
(#4571139@0)
-
能否在进一步解释一下,what should i change in web.config.thanks!
-od2nw(cool);
2008-7-24
(#4576188@0)
-
oh, try: <customErrors mode="Off"/>
-thunderbolt(孙悟空);
2008-7-27
(#4581241@0)
-
it worked fine with either App_Code or the dll added to Bin folder in my local but the production server. what' wrong? any problem for server settings?
-od2nw(cool);
2008-7-24
(#4576885@0)
-
you need to set up a virtual dir for the app in your production server.
-sunday8(sunday8);
2008-7-24
(#4576925@0)
-
our administrator create an application in the virtual dir, that disabled the app_code, so i can use the old way, compile my code and add reference to bin, that works,although not too good.
-od2nw(cool);
2008-7-24
(#4576990@0)
-
What's error message ?
-googlebot(bot);
2008-7-24
(#4576931@0)
-
it says something like "compiler error message: CS0246: The type or namespace name 'xxx' could not be found(are you missing a using directive or an assembly reference?)"
-od2nw(cool);
2008-7-24
(#4576993@0)
-
most in this case, either you missing some dll in the bin folder , or you try to access some dll in GAC, try to use gacutil -l | findstr TARGETDLLNAME to find if deploy server have that assembly
-thunderbolt(孙悟空);
2008-7-27
(#4581242@0)