Search

You searched for the word(s): userid:748494

Matching Posts

  • Log into an ASP.NET website using WebClient?

    I have successfully used the WebClient class to download a file from a folder in an ASP.NET website to my WinForms app. We now have to put authentication on this particular folder so it's contents are not available for all to download. However, if we do, the WebClient class (obviously) returns a 404 error. Is it possible to have the WebClient object "sign in" to the ASP.NET app as if it were just another user, and therefore gain access to the file?
    Posted to Security (Forum) by Disco Patrick on 11/9/2009
  • Re: Log into an ASP.NET website using WebClient?

    Good idea. We'll give it a go.
    Posted to Security (Forum) by Disco Patrick on 11/9/2009
  • Re: 'Windows Form' embedded into an ASP.NET WebPage Issue

    Looks like signtool.exe would be the command line app to use to sign assemblies in a post build event. It's included in the .NET Framework 2.0 SDK. Strangely though, the /snk parameter is not supported, so I'm not sure how to sign my assembly with an snk. If I use the default option, the signing seems to work, but my UserControl doesn't work. However, if I manually resign the assembly in VS2008, the UserContol does work. I could just resign the assembly after every build manually, but
  • signtool.exe doesn't let you specify an snk file

    I have a Web Application project with an aspx page, into which I would like to embed a Winforms UserControl - so I have added a Windows Control Library project to my solution where I have created my control. After I have built the UserControl, I copy the DLL to the root directory of my Web Application (NOT the bin folder - they won't be served from the bin folder) and then reference that DLL in my aspx page using an <object> tag. I was initially having some problems getting it to work
  • Re: signtool.exe doesn't let you specify an snk file

    Hey, nice to see you again (love the avatar!) Hmm, that's interesting. I see you're using a pfx key and you don't have to worry about doing anything after build. I, on the other hand, am using an snk key, and if I make changes to the code and then rebuild, I *have* to go through the signing process again, otherwise my control doesn't work. I think I will try using a pfx key like you do, and see if that helps.
  • Re: signtool.exe doesn't let you specify an snk file

    [quote user="atconway"] < Assembly: AssemblyKeyFile("MyProjectKeyFile.pfx") > <Assembly: AssemblyKeyFile("MyProjectKeyFile.pfx")> [/quote] On second thoughts... I think the above line of code is the reason it is working for you. Every time you build, this line of code *may* be triggering the re-signing process. I would be interested to know if your assemblies are still signed if you *don't* set the pfx key in the project properties - that would be an
  • Re: signtool.exe doesn't let you specify an snk file

    Another discovery: If you omit the password option when creating a new strong name key, you get a .snk file. On the other hand, if you specify a password, you get a .pfx file. Is the password the only difference between these two keys, or are there more?
  • Re: signtool.exe doesn't let you specify an snk file

    I have followed everything that has been suggested here. Yet the situation remains - I have to manually resign the assembly after making a change to the source code. Oh well. I guess I'll just have to put up with it. It's bugging me though!
  • Re: signtool.exe doesn't let you specify an snk file

    By the way atconway, the reason it might not be working for me is because I'm actually embedding this Winforms UserControl into an aspx page, which comes with a lot of security implications. That's different from what you're doing, right?
  • Re: 'Windows Form' embedded into an ASP.NET WebPage Issue

    Umer, I have the same problem. My DLL is not in the bin folder, but it still shows as an empty box (except for the image icon in the top left). Strangely, it seemed to work just the first time I ran the web app - I could see the first few letters of a label in the Winforms control (though surprisingly I couldn't see the whole label - even after setting height and width properties on the <object> tag that were way bigger than the control). However, the next thing I did was to add a button
Page 1 of 19 (190 items) 1 2 3 4 5 Next > ... Last »