Professional Web Applications Themes

Help Required - ASP.NET Security

Hi, I want to deploy my private shared assembly using codebase keeping some of the assemblies in common folder. I am using following tag in web.config <runtime> <assemblyBinding xmlns="urn:schemas-icrosoft-com:asm.v1"> <dependentAsembly> <assemblyIdentity name="CodeBaseTest" publicKeyToken="8e7599d58ab3f23" culture="en-US" /> <codeBase version="1.0.1332.41747" href="file:///d:/inetpub/wwwroot/CodeBaseTest.dll" /> </dependentAssembly> </assemblyBinding> </runtime> I have also added reference of the CodeBaseTest.dll to the project. My application runs fine but dll which has been added to the project is being executed. Why the assembly which has been referenced by codeBase is not getting loaded? I have even tried the href with href=http://localhost/TestApp/CodeBaseTest.dll , but the result is same. I tried to remove ...

  1. #1

    Default Help Required

    Hi,
    I want to deploy my private shared assembly using codebase keeping some of
    the assemblies in common folder.

    I am using following tag in web.config
    <runtime>

    <assemblyBinding xmlns="urn:schemas-icrosoft-com:asm.v1">

    <dependentAsembly>

    <assemblyIdentity name="CodeBaseTest" publicKeyToken="8e7599d58ab3f23"
    culture="en-US" />

    <codeBase version="1.0.1332.41747"
    href="file:///d:/inetpub/wwwroot/CodeBaseTest.dll" />


    </dependentAssembly>

    </assemblyBinding>

    </runtime>

    I have also added reference of the CodeBaseTest.dll to the project.

    My application runs fine but dll which has been added to the project is
    being executed.

    Why the assembly which has been referenced by codeBase is not getting
    loaded?

    I have even tried the href with
    href=http://localhost/TestApp/CodeBaseTest.dll , but the result is same.

    I tried to remove the reference of the CodebaseTest.dll from the project but
    i am getting error of filenotfound exception.

    Am I missing something here?
    Can some body help me out.

    Thanks and Regards

    Dinesh




    Dinesh Upare Guest

  2. #2

    Default Help Required

    Hi,
    I have written one cgi script which gets the input from user and
    modify one xml file and I got this string as output
    [url]http://prv-arweb3.Test.com/Remedy/servlet/Servlet?URL=http://asharma.Test.co[/url]
    m/Query1.xml&TURL=http://asharma.Test.com/Remedy1.xsl

    Here I am getting modified Query1.xml as input and I have to give this
    command in address bar to get the desired result. Could you please help me
    to let me know how directly through CGi I can go to the address mentioned
    above without copying and pasting in address bar. This address will always
    remain the same only the xml file will change.

    General Question:

    In my cgi script I want to open some site let us suppose
    [url]http://www.google.com[/url]

    How can I do that.

    Regards,
    Amit.













    Amit Sharma Guest

  3. #3

    Default Re: Help Required

    Amit Sharma wrote:
    > Hi,
    > I have written one cgi script which gets the input from user and
    > modify one xml file and I got this string as output
    > [url]http://prv-arweb3.Test.com/Remedy/servlet/Servlet?URL=http://asharma.Test.co[/url]
    > m/Query1.xml&TURL=http://asharma.Test.com/Remedy1.xsl
    >
    > Here I am getting modified Query1.xml as input and I have to give this
    > command in address bar to get the desired result. Could you please help me
    > to let me know how directly through CGi I can go to the address mentioned
    > above without copying and pasting in address bar. This address will always
    > remain the same only the xml file will change.
    >
    > General Question:
    >
    > In my cgi script I want to open some site let us suppose
    > [url]http://www.google.com[/url]
    The way I know of off the top of my head goes something like this:


    use CGI;

    my $cgi = new CGI;
    print $cgi->header;
    print "<script>location.href = 'http://www.google.com';</script>


    There is a more correct way to do this using HTTP codes, such as:


    print "HTTP/1.0 302 Found\n";
    print "Location: www.google.com\n\n";


    This could be wrong, though, so someone please correct me.

    --
    Andrew Gaffney

    Andrew Gaffney Guest

  4. #4

    Default Re: Help Required

    On Fri, 14 Nov 2003 00:17:29 -0600, Andrew Gaffney wrote:
    >> In my cgi script I want to open some site let us suppose
    >> [url]http://www.google.com[/url]
    > use CGI;
    >
    > my $cgi = new CGI;
    > print $cgi->header;
    > print "<script>location.href = 'http://www.google.com';</script>
    >
    > There is a more correct way to do this using HTTP codes, such as:
    >
    > print "HTTP/1.0 302 Found\n";
    > print "Location: www.google.com\n\n";
    Not quite "right" CGI.pm-wise, as the CGI module _has_ a redirect()
    function;

    use CGI;

    my $cgi = CGI->new();
    print $cgi->redirect( 'http://www.google.com/' );

    More information:

    perldoc CGI


    --
    Tore Aursand <toreaursand.no>

    Tore Aursand Guest

  5. #5

    Default Help required

    Hi,

    I am trying to write an upload function and I get an error - the output
    is as follows.

    base_dir = /home/e-smith/files/ibays/Primary
    temp name is /tmp/phpMWwTxt
    Sending file to
    /home/e-smith/files/ibays/Primary/html/RGASite/GEORGE/Ocean Wave.jpg

    Warning: open_basedir restriction in effect. File is in wrong directory
    in /home/e-smith/files/ibays/Primary/html/RGASite/admimages.php on line
    66

    The relevant piece of source is

    echo "base_dir = ". ini_get('open_basedir')."<br>";
    echo "temp name is ".$_FILES['userfile']['tmp_name']."<br>";
    echo "Sending file to $path<br>";
    if (is_uploaded_file($_FILES['userfile']['tmp_name']))
    { copy($_FILES['userfile']['tmp_name'], $path);
    }

    Line 66 is the copy statement.

    Can I not read from the source?

    If so, what can I do about it?

    Suggestions gratefully received.

    Ian

    --
    Ian - posting to a Newsgroup. Please remove everything to reply.
    Ian Hobson Guest

  6. #6

    Default Re: Help required

    "Ian Hobson" <NewGroupsntlworld.everything.com> wrote in message
    news:bY7zEMCdpRlAFwhNntlworld.com...
    > Hi,
    >
    > I am trying to write an upload function and I get an error - the output
    > is as follows.
    > Warning: open_basedir restriction in effect. File is in wrong directory
    > in /home/e-smith/files/ibays/Primary/html/RGASite/admimages.php on line
    > 66
    > if (is_uploaded_file($_FILES['userfile']['tmp_name']))
    > { copy($_FILES['userfile']['tmp_name'], $path);
    > }
    >
    > Line 66 is the copy statement.

    Ian,

    You can't use copy with an uploaded file. That's what the 'restriction in
    effect' warning is trying to tell you.

    Use move_uploaded instead.
    Check the manual for details

    HTH

    Ron

    ..


    Ron Barnett Guest

  7. #7

    Default Re: Help required

    In message <5mclc.41$D9.27newsfe1-win>, Ron Barnett
    <ron.barnettntlworld.com> writes
    >"Ian Hobson" <NewGroupsntlworld.everything.com> wrote in message
    >news:bY7zEMCdpRlAFwhNntlworld.com...
    >> Hi,
    >>
    Source snipped
    >
    >Ian,
    >
    >You can't use copy with an uploaded file. That's what the 'restriction in
    >effect' warning is trying to tell you.
    >
    >Use move_uploaded instead.
    >Check the manual for details
    >
    Thanks. Its working now :)

    (And I thought the code in the manual would be a working example to
    copy! Perhaps is was way back when, but no longer...

    Regards

    Ian
    >HTH
    >
    >Ron
    >
    >.
    >
    >
    --
    Ian - posting to a Newsgroup. Please remove everything to reply.
    Ian Hobson Guest

Similar Threads

  1. ASP help required please
    By Stephen in forum ASP Components
    Replies: 4
    Last Post: February 25th, 01:06 PM
  2. required help
    By James Edward Gray II in forum PERL Beginners
    Replies: 5
    Last Post: October 10th, 05:17 PM
  3. Help required please!
    By Alex Cotgreave in forum Adobe Photoshop Elements
    Replies: 0
    Last Post: July 9th, 01:41 PM
  4. what is required for job(?)
    By doc in forum Macromedia Flash Sitedesign
    Replies: 3
    Last Post: July 8th, 03:16 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139