|
 |
|
|
WikiTopicLink.cs File is missing in the Zip. It has been referred in many places in the Open Collective Engine.
Sukanya
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
I just downloaded the ZIP to test. The file is definitely there. In the OpenCollective.Engine project. Not sure why you would not have it. I suggest trying the download again. -Tyler
Tyler Jensen Right tools, right methods!
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
There is a problem with hosting this app on a website on an IIS 6 machine. The application path is returned as a '/' where on IIS 5 it would be an empty string. A simple fix for this is to use this code in the Page Load of wiki.aspx:
private void Page_Load(object sender, System.EventArgs e) { appUrlPath = Request.ApplicationPath.ToLower(); if (appUrlPath == "/") { appUrlPath = ""; } . . .
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
I don't seem to be able to get all of the functionality. When I go to the projects page, I am not able to add/delete. I cannot add pages either.
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
Hello,
I've gone through instructions a number of times and read through all the comments, but I am still getting "page not found" when the app starts up and redirects to "http://localhost/opencollective.web/wiki/Software%20Development/Home%20Page.wiki". I checked "wiki" extension in IIS
Any suggestions?
Thanks
|
| Sign In·View Thread·PermaLink | 2.00/5 (1 vote) |
|
|
|
 |
|
|
Things to check for:
1) .wiki extension 'check that file exists' is NOT checked. 2) project compiled. 3) asp.net enabled (aspnet_regiis).
Let me know if you have more trouble.
Tyler Jensen Right tools, right methods!
|
| Sign In·View Thread·PermaLink | 1.00/5 (1 vote) |
|
|
|
 |
|
|
So far, I cannot get the solution to compile. I believe it has something to do with the MS Application Block. Now, instead of getting a setup similar to yours, the application block namespaces have all changed and, apparently, so have the methods.
Installing the MSAP means that you get the "Enterprise Library." Or have I installed the wrong item.
Can anyone help me? Mark
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
 |
|
|
Thanks. That did the trick. Now, however, I'm getting a message that the opencollective.web/wiki/Software%20Development/Home%20Page.wiki page is not available.
It's true. The file doesn't exist anywhere. What do I do now?
Ok - I see where you can define the starting point in the web.config file. But there aren't any .wiki files supplied with the download. I really don't know anything about wiki files. Do I only need to add a wiki file as starting page to get this to work properly?
Mark
-- modified at 17:07 Monday 3rd October, 2005
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
I've added a junk.wiki file just to get this thing working. Now I get an error that the login fails because "Reason: Not associated with a trusted SQL Server connection."
I get this no matter what I do with the user name or password. I've added myself as a user to the database and checked "Windows Authentication" with no luck. I've also tried setting up a user using "SQL Server Authentication" still with no luck.
Now what? Help, please...
Mark
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
The connection string in the web.config uses SQL Server authentication. If you're going to use Windows Authentication, you'll have to impersonate a user in the ASP.NET code and setup that user to access the database. I would not recommend that approach. Having a SQL Server authentication user with limited rights to run the stored procedures would be the best means of securing access.
Tyler Jensen Right tools, right methods!
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
Thanks for the reply, Tyler, but I'm still having problems connecting to the database. I've written plenty of database apps, but for some reason I'm having a "brain fart" trying to fix this.
I've added ASPNET as a user to the database and set the default database to OC (OpenCollective). I setup SQL Authentication and verified the password in the config file matches the password in the database. The connection string identifies the inital catalog as "OC" - I continue to get the error "Login failed for user 'ASPNET'. Reason: Not associated with a trusted SQL Server connection."
I've setup other applications like this and haven't had a problem. Is there a setting in the MS App Blocks I need to check? Do you have any ideas that might help?
Thanks again Mark
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
Here's the connection string entry in my web.config:
<add key="ConnectionString" value="server=127.0.0.1;database=OpenWiki;uid=OpenWiki;pwd=OpenWiki" />
Works like a charm. I did experience the "page cannot be found" error referring to the .wiki page, but I can't recall how I fixed it. According to this article, no pages actually exist with the .wiki extension, and that's why you configure your virtual directory in IIS to run .wiki requests through the ASP.NET "filter".
Chris
-- modified at 11:12 Tuesday 4th October, 2005
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
Thanks Chris. I had a very similar connection string and it just didn't work. I had to use integrated security=SSPI to get a connection. Not sure why, just yet. But at least now I can run the application.
Mark
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
 |
|
|
I thought I had set up the web site to disable anonymous access (in web site Properties -> Directory Security -> Edit)...
However on trying to open the page I am getting the above exception which is originating in the following code (GetUserName())
Line 310: string uname = User.Identity.Name; Line 311: if(uname.Length == 0) Line 312: throw new Exception("Anonymous access not allowed."); Line 313: if(uname.IndexOf("\\") > 0) //remove domain string Line 314: {
I have: <authentication mode="Windows" /> and <authorization> <allow users="*" /> <!-- Allow all users --> in my web.config.
Running on Windows 2003 server. In IE options, localhost is in the 'Intranet' zone and the 'Automatic logon only in Intranet zone' option is selected under 'User Authentication'
-- modified at 17:21 Thursday 1st September, 2005
|
| Sign In·View Thread·PermaLink | 5.00/5 (1 vote) |
|
|
|
 |
|
|
I don't have a quick answer for you here. If anyone else has any thoughts here or if you figure it out, please post the answer here. To be quick about it, do a Response.Write on values of the User.Identity object to see what you're getting on the Windows 2003 server.
Tyler Jensen Right tools, right methods!
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
Can't get anything from Response.Write (the error page that comes up when it hits that exception seems contain only the standard 'Server Error in.....' presentation of the exception).
From a QuickWatch in the debugger I see the following values for the fields of User.Identity:
AuthenticationType "" (empty string) IsAuthenticated false Name "" (empty string and of course this is what causes the exception to be thrown in GetUserName())
Does this suggest that the browser (IE) is not passing the necessary credentials with the request? I have tried all the 4 different options in IE's security settings for the zone (under the User Authentication section) to no avail.
One other thing of note: when I launch IE on this Server 2003 machine I see a start page saying that
Internet Explorer Enhanced Security Configuration is enabled Your server administrator has applied enhanced security settings to Internet Explorer. These security settings might prevent you from accessing certain Web sites and network resources, or performing other browser operations, such as downloading files. If you trust a Web site and need it to be functional, you can add the Web site to the Trusted Sites zone.
I have added http://localhost to the Intranet zone and also tried it in the Trusted zone. No difference.
Am I using the right technique to launch this? I am in Visual Studio, I click on the OpenCollective.Web project in Solution Explorer and I select 'Debug->Start new instance'. I have the page wiki.aspx set as the start page for the project. (Have also tried loading the page from IE (no debugger): same result.)
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
With anonymous access disabled, do you also have Integrated Windows Authentication enabled on the Authentication Methods dialog in IIS? It almost sounds as if your server is not requiring authentication at all.
Tyler Jensen Right tools, right methods!
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
Yes, in the Authentication Methods dialog, Anonymous Access is unchecked and Integrated Windows Authentication is checked. This is true both for my OpenCollective.Web virtual directory and for the 'Default Web Site' that is its parent.
Prompted by your question I looked at the Authentication Methods dialog fot the top level 'Web Sites' object in IIS. It was set to Enable Anonymous Access. Thinking I was on to something, I disabled anonymous access and enabled Integrated Windows Auth. But this also made no difference.
Am I doing this right by having the OpenCollective.Web virtual directory as a child of 'Default Web Site'?
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
I had this problem with a Win2k3 server.
My problem is that i configured a dns record to resolve http://kb.company.net to my web server for the intranet. The problem was IE trys to use only the FQDN name (different than domain name) to supply credentials for authentication.
Resolution: Add a entry for both http://kb.company.net and kb.company.net to Local Intranet zone, under security tab.
Domain resolution: User Config. GPO. entry
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
I set up everything on a different computer running XP and it all works there.
Apparently something is set up differently between the two web servers.
Has anyone else made this work on a Windows 2003 Server machine?
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
I'm getting the same symptoms you're describing for you 2K3 Server box, only I'm running Windows XP Pro.
Did you ever figure this out?
Chris
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
No: I got it working well enough for what I needed on XP. I spent a while looking for differences in the settings of the two systems in the Internet Information Services app, but it all looks the same (there are some differences since we are dealing with two different versions of IIS here, but nothing that appeared significant to this problem.)
|
| Sign In·View Thread·PermaLink | 3.00/5 (2 votes) |
|
|
|
 |
|
|
 |