提问的智慧SVN版 - 提问者必读
发新话题
打印

[原创] SVN配置远程维护工具--取名为ISVNAdmin

我这里在输入用户名和密码admin进去之后,就出现了以下错误,大家帮我看一下。谢谢大家了

Server Error in '/1126' Application.
Section Error: NoSection Found Before lyapr1$pa/.....$XG319aMtThq5Bp9VmRDoa/
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Exception: Section Error: NoSection Found Before lyapr1$pa/.....$XG319aMtThq5Bp9VmRDoa/

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[Exception: Section Error: NoSection Found Before lyapr1$pa/.....$XG319aMtThq5Bp9VmRDoa/]
   web.component.SvnConfigFile.ReadConfig() in D:\Project\Office\Tools\SvnRemoteControl\web\component\ConfigFileIO.cs:121
   web.component.SvnConfigFile..ctor(String AConfigFileName) in D:\Project\Office\Tools\SvnRemoteControl\web\component\ConfigFileIO.cs:72
   web.component.AppCache.GetUserConfig() in D:\Project\Office\Tools\SvnRemoteControl\web\component\AppCache.cs:23
   web.UserManage.GetUserSection() in D:\Project\Office\Tools\SvnRemoteControl\web\UserManage.aspx.cs:28
   web.UserManage.BindData() in D:\Project\Office\Tools\SvnRemoteControl\web\UserManage.aspx.cs:34
   web.UserManage.Page_Load(Object sender, EventArgs e) in D:\Project\Office\Tools\SvnRemoteControl\web\UserManage.aspx.cs:21
   System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +15
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +34
   System.Web.UI.Control.OnLoad(EventArgs e) +99
   System.Web.UI.Control.LoadRecursive() +47
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1061

TOP

是不是把Section关闭了?

TOP

回复 99# 的帖子

有兴趣的话,可以写个布署过程给大家参考一下.
不支持Htpassword档,至于SSL支持,当然是可以支持的.

TOP

发个帖子测下,看有没有金钱我:。穷人咯

TOP

原来有,谢谢谢谢,下下来试用一下。。。。。。。。。。。。。。

TOP

折腾了一会儿,跑起来了,谢谢咯,环境windowsxp sp2, + iis5.1+.net2.0

TOP

引用:
原帖由 goldpicker 于 2007-12-8 02:18 发表
是不是把Section关闭了?
你好,我用的是apache+TortoiseSVN,能实现对权限的控制。因为把这个svn架设在服务器上,所以要实现远程可以修改权限控制文件,便于管理。所以安装iis5.1+asp.net2.0的环境,因为有apache+ii5.1共存,所以我把iis5.1的ip地址设置为127.0.0.1 端口为8080.也同时修改了楼主的给的目录下web.config 的路径,就是楼主说明的三个路径。后来登录就出现之前的错误。想请楼主帮一下忙,谢谢了。

对了,你说的section 关闭了是不是linux的系统的?

TOP

你用提Apache和TSVN?我的这个系统不支持Apache啊?你怎么用的?

TOP

引用:
原帖由 goldpicker 于 2007-12-8 22:49 发表
你用提Apache和TSVN?我的这个系统不支持Apache啊?你怎么用的?
之前没想到怎么去管理权限控制文件,只以为事先写好权限就可以了。所以事先用了apache和TSVN,但是现在需要远程控制权限文件,我到你写的帖子,就载下来试了。那我现在应该把apache去掉,然后如何操作。先谢谢楼主了

TOP


换成SVNServe作SVN服务就可以了.

TOP

好东西呀,我正在找类似的工具呢,谢谢lz了

TOP

楼主,我换了服务器,可以进去了。但是在里面点“组管理”时,发生了以下错误。
对了,我有时侯可以登录,有时候不能登录,这个是什么原因?每当删除虚拟目录,重新建个虚拟目录,就可以了。
还有就是,现在最新下载文件里Web.config多了一行,那个属性路径怎么设置?

Server Error in '/1214' Application.
--------------------------------------------------------------------------------

Object reference not set to an instance of an object.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.  

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   web.GroupManage.BindData() in D:\Project\Office\Tools\SvnRemoteControl\web\GroupManage.aspx.cs:37
   web.GroupManage.Page_Load(Object sender, EventArgs e) in D:\Project\Office\Tools\SvnRemoteControl\web\GroupManage.aspx.cs:21
   System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +15
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +34
   System.Web.UI.Control.OnLoad(EventArgs e) +99
   System.Web.UI.Control.LoadRecursive() +47
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1061




--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42

TOP

4: 开放相关的权限
给IIS进程设置相应的安全权限,在Win2003下是IIS_WPG, Win2000下是ASPNET
给两个SVN配置文件的读写权限
给仓库根目录的列目录权限

楼主,这个开放相关权限,具体怎么操作的。

TOP

是不是在文件右击属性 “web共享”里改

我改了之后,点挤“组权限”还是出现跟先前一样的错误。我就是登陆帐号好,直接去点,事先没有添加成员,在两个权限文件也没有去修改或写。

TOP

回复 114# 的帖子

权限分配是在Windows系统的安全选项里.
另外,权限文件里,你先写一个初始设置进去.否则有可能出错.

TOP

windows 系统的安全选项是在NTFS系统下,我这边因为测试需要 所以装了三个系统,都为FAT32系统。是不是我的系统要重新装一下,有没有其它解决的办法。

TOP

回复 116# 的帖子

FAT32,没有安全选项,
你先手工写一下用户文件和权限文件,再用ISvnAdmin读读看,能否读到.有问题再找我.

TOP

哈哈,谢谢楼主,有你的isvnadmin,我的架构就几乎完美了.我正在想办法通过web托管方式来解决设置权限问题.
在windows上用mono测试代码都正常,唯一发现htpasswd产生密码文件不兼容,但我的AD用户和密码认证方式可以优先忽略该文件中的明文密码.(已经测试通过)

Linux上的AD认证配置:
<location />
   DAV svn
   SVNListParentPath on
   SVNParentPath /home/svn/
   AuthType Basic
   AuthName "xxx SVN"
   AuthLDAPEnabled on
   AuthLDAPBindDN "CN=test,OU=xxx,DC=xxx,DC=com"
   AuthLDAPBindPassword "test"
   AuthLDAPURL "ldap://ldap.xxx.com:389/ou=xxx,dc=xxx,dc=com?sAMAccountName?sub?(objectClass=*)"
   AuthLDAPURL "ldap://ldap1.xxx.com:389/ou=xxx,dc=xxx,dc=com?sAMAccountName?sub?(objectClass=*)"
   AuthLDAPURL "ldap://ldap2.xxx.com:389/ou=xxx,dc=xxx,dc=com?sAMAccountName?sub?(objectClass=*)"
   AuthLDAPURL "ldap://ldap3.xxx.com:389/ou=xxx,dc=xxx,dc=com?sAMAccountName?sub?(objectClass=*)"
   AuthLDAPAuthoritative on
   Require group cn=EVERYONE,ou=xxx,dc=xxx,dc=com
   Require user svn
</location>

在linux上测试代码.
Web.config配置如下:
<?xml version="1.0" encoding="utf-8"?><configuration>

  <appSettings>
    <add key="UserName" value="Admin"/>
    <add key="UserPass" value="Admin"/>
    <add key="UserConfigFile" value="/home/svn/user"/>
    <!--<add key="AuthzConfigFile" value="c:\authz"/>-->
    <add key="AuthzConfigFile" value="/home/svn/access"/>
    <add key="ReposPath" value="/home/svn"/>
  </appSettings>
    <connectionStrings/>

目前访问http://localhost:8080/login.aspx发现此问题,如何解决?(但在windows下无此问题)
Server Error in '/' Application

Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.

Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customErrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customErrors> tag should then have its "mode" attribute set to "Off".

<!-- Web.Config Configuration File -->

<configuration>
    <system.web>

        <customErrors mode="Off"/>
    </system.web>
</configuration>


Notes: The current error page you are seeing can be replaced by a custom error page by modifying the "defaultRedirect" attribute of the application's <customErrors> configuration tag to point to a custom error page URL.

<!-- Web.Config Configuration File -->

<configuration>
    <system.web>
        <customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>

    </system.web>
</configuration>

12/26/2007 6:29:40 AM

[ 本帖最后由 windymax 于 2007-12-26 09:46 编辑 ]

TOP

linux下成功配置了.继续测试...

TOP


回复 118# 的帖子

按照出错说明,配置一下自定义错误错误,把自定义错误关闭,这样才可以在远程看见出错的原因,然后再看看怎么解决.

TOP

发新话题
订阅 我用Subversion - SVN中文论坛 邮件列表:iUseSVN@googlegroups.com
电子邮件:
网站重要事项将会在这个列表进行通知,点击这里浏览存于列表中的所有邮件