Home
Get Started
Learn
Downloads
AJAX
MVC
Community
Wiki
Forums
Sign in
|
Join
Home
›
ASP.NET Forums
›
Search
Search
You searched for the word(s): userid:748494
More Search Options
RSS Available
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
Posted to
Client Side Web Development
(Forum)
by
Disco Patrick
on 10/22/2009
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
Posted to
Configuration and Deployment
(Forum)
by
Disco Patrick
on 10/22/2009
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.
Posted to
Configuration and Deployment
(Forum)
by
Disco Patrick
on 10/22/2009
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
Posted to
Configuration and Deployment
(Forum)
by
Disco Patrick
on 10/22/2009
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?
Posted to
Configuration and Deployment
(Forum)
by
Disco Patrick
on 10/22/2009
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!
Posted to
Configuration and Deployment
(Forum)
by
Disco Patrick
on 10/22/2009
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?
Posted to
Configuration and Deployment
(Forum)
by
Disco Patrick
on 10/22/2009
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
Posted to
Client Side Web Development
(Forum)
by
Disco Patrick
on 10/21/2009
Page 1 of 19 (190 items) 1
2
3
4
5
Next >
...
Last »
ASP.NET:
Merry Christmas
TechNet Edge:
FPE Customer Story
Silverlight:
Being a writer, and having an editor. A Short Rant.
Channel 9:
Channel 9 Live at PDC09: Dr Brian Brooks (3M)
Channel 9:
C9 Lectures: Dr. Erik Meijer - Functional Programming Fundamentals Chapter 13 of 13
Silverlight:
Information for Silverlight HVP Developers…
WindowsClient:
Custom Content Loaders in Silverlight 4.0
WindowsClient:
MVVM Links\Info
TechNet Edge:
Check out how Dolly Parton uses IE8 and Web slices!!!
Silverlight:
A Silverlight HVP Update
Channel 9:
Channel 9 Live at PDC09: This Week on Channel 9 - PDC09 Daily Show Edition Day 1
Channel 9:
Maria Klawe: Scholar, Scientist and Microsoft Board Member
Channel 10:
Play the Bing Sherlock Holmes Game
Channel 9:
Channel 9 Live at PDC09: Loic Le Meur
Channel 10:
How to Delete Jump List Items
Channel 10:
Roll Back to Classic Network Indicator in Win7
Channel 9:
Jafar Husain: Silverlight Toolkit and Rx, Part 2
Channel 9:
Ping 42: Is Microsoft cool? Photo DNA, Win7 tool, 10k MIX contest
Channel 9:
Jafar Husain: Silverlight Toolkit and Rx, Part 1
Channel 9:
Francesco Logozzo - Static Checking with Code Contracts for .NET
Microsoft Communities
ASP.NET
Channel 8
Channel 9
Channel 10
IIS.NET
Silverlight
TechNet Edge
WindowsClient
Mix Online