Showing posts with label setup. Show all posts
Showing posts with label setup. Show all posts

Saturday, March 24, 2012

Trouble updating version to 1.1

Having trouble getting the my.net framework to version 1.1 I downloaded it, ran the setup.exe, and restarted. I open up my visual stud .net and it says 1.0. Please helpVS.NET 2002 will only work with 1.0 of the framework, and VS.NET 2003 will only work with the 1.1 framework. Does that give you an idea of whats wrong.
I thought you were able to update the framework. Anyway, I guess that would be the problem then. So, there is no way I can share projects that are created in vs.net 2003 using vs.net 2002. For instance, "arParams[0] = new SqlParameter("@.RegionId", ddlRegion.SelectedValue);" does not work in 2002, but does in 2003... .selectedValue is an issue.
You can install different frameworks, but VS.NET 2002 and VS.NET 2003 cannot switch between the different frameworks.

Your assumption is correct, there is no way of doing what you wish if you want to code against the 1.0 framework (using VS.NET 2002).
so i have to buy vs.net 2003 to view these projects?
Well, yes and no. To get the full IDE experience, I'd say yes. But, you can do command line compilations, if you wish.

Trouble with authentication in asp.net

Im trying to setup windoes based security for my asp.net web app in server 2003. This is what I have done

* Created the user "testuser" on the local machine

* created the group "testgroup" on the local machine

* added testuser -> testgroup

* created an asp.net webapp in IIS and set it to windows authentication

* in explorer, I have added testgroup to read rights on the web app folder.

* Now I run the app, I enter the username and password and it let me in..

BUT when I write User.IsInRole("testgroup") I get "false"... why is that? I should get "true"...

so my problem is with the groups, everything else works fine!!!

whats the problem?
/HenrikHave you set identity impersonation to true?
Yes!! But im not sure it matters?

I have done something similar for a winforms app, but there I fetched the group info from the AD using system.directoryservices and then created genericprincipal and genericidentity... then it works to check Thread.User.IsInRole("wewwq"),,,

im not sure what to do with asp.net to get the same functionality...
/henrik
Maybe you need to disable "anonymous" in the IIS server.
It may be passing "anonymous" instead of the user id.
?
i have disabled anonymous login in the IIS, and set to windows authentication... and I get the correct username when using User.Identity.Name its the groups that dont work correct

/Henrik
Have you restarted the machine for the group changes to take effect? Or tried issuing iisreset at the command prompt?