Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Friday, November 22, 2024 
 
slxdeveloper.com Community Forums  
   
The Forums on slxdeveloper.com are now retired. The forum archive will remain available for the time being. Thank you for your participation on slxdeveloper.com!
 Web Forums - ASP/ASP.NET/Web Services/Other
Forum to discuss building external web applications for SalesLogix. View the code of conduct for posting guidelines.
Forums RSS Feed


 Back to Forum List | Back to ASP/ASP.NET/Web Services/Other | New ThreadView:  Search:  
 Author  Thread: Trying to link to an ASPX page
Corey
Posts: 42
 
Trying to link to an ASPX pageYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 04 Dec 06 10:10 AM
fiogf49gjkf0d
I am trying to have SLX link to an ASPX page when you click the "+" on a certain page. It's not working, don't even know if I have it coded right. Here's the line of code:

TabAdd.push("http://vmsrv2003-c/inetpubss/wwwroot/WebSite1/AddAccountProfile.aspx");

Can anyone tell me what's wrong with it?
[Reply][Quote]
Jeff Ballard
Posts: 326
 
Re: Trying to link to an ASPX pageYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 04 Dec 06 11:38 AM
fiogf49gjkf0d
It looks OK syntactically, but it looks as if you're putting in the explorer/physical file path to the ASPX page and not the true http/URL path. Do you actually have a virtual directory named "inetpubss" with a subfolder wwwroot and another subfolder WebSite1? I would be surprised to see a virtual directoy named "inetpubss".

The URL should be something similar to http://servername/virtual_directory/any_subfolders/aspx page.

What's the name of the virtual directory you have set up through IIS?

Jeff
[Reply][Quote]
Corey
Posts: 42
 
Re: Trying to link to an ASPX pageYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 04 Dec 06 11:48 AM
fiogf49gjkf0d
Are virtual directories setup automatically, because I don't recall ever setting any up. How do I set one up to get the aspx page working?
[Reply][Quote]
Jeff Ballard
Posts: 326
 
Re: Trying to link to an ASPX pageYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 04 Dec 06 12:04 PM
fiogf49gjkf0d
No, they aren't set up automatically by IIS. SalesLogix, however, does create a virdir for their .NET components (in 6.2.3+) called "aspscripts". You could put your page in there, but you'll end up using the slx web.config and you'll probably want to create your own. This article gives an overview of creating a virtual directory - http://msdn2.microsoft.com/en-us/library/zwk103ab.aspx

Jeff
[Reply][Quote]
Corey
Posts: 42
 
Re: Trying to link to an ASPX pageYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 04 Dec 06 12:56 PM
fiogf49gjkf0d
Well, I created a virtual directory called SlxAspx and here is my new call:

TabAdd.push("http://vmsrv2003-c/SlxAspx/AddAccountProfile.aspx");

When I ran the web client, Here's the error that I received:

Server Error in '/' Application

The resource cannot be found.

Here is the requested url that was listed at the bottom of IE:

/SlxAspx/AddAccountProfile.aspx

Any thoughts?
[Reply][Quote]
Ryan Farley
Posts: 2265
slxdeveloper.com Site Administrator
Top 10 forum poster: 2265 posts
 
Re: Trying to link to an ASPX pageYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 04 Dec 06 1:36 PM
fiogf49gjkf0d
It could be that you've not made the virtual dir an application. In IIS, in the properties for the virtual dir, look on the "Directory" tab. In the lower section of the screen, where it says "Application name", does it have a "Create" button to the right of it? Is so then click it. Also, open the ASP.NET tab in the properties dialog and ensure the correct version of the .NET framework is selected.

Also, is the webclient running on a different port? Is the virtual dir in the same web server as the SLX webclient (ie under the same tree in the IIS listing) or a different site on a different port?
[Reply][Quote]
Corey
Posts: 42
 
Re: Trying to link to an ASPX pageYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 04 Dec 06 2:11 PM
fiogf49gjkf0d
The virtual dir is an application with the correct version of the .NET Framework. Also, the virtual dir is in the same web server as the SLX webclient.
[Reply][Quote]
Jeff Ballard
Posts: 326
 
Re: Trying to link to an ASPX pageYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 04 Dec 06 2:49 PM
fiogf49gjkf0d
Do you have the DLL associated with your .NET page/application in the /bin folder beneath your virtual directory?

Jeff
[Reply][Quote]
Corey
Posts: 42
 
Re: Trying to link to an ASPX pageYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 04 Dec 06 2:51 PM
fiogf49gjkf0d
No, do I need to go create a folder inside the 1st folder for the /bin folder?
[Reply][Quote]
Snow Monkey
Posts: 214
 
Re: Trying to link to an ASPX pageYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 04 Dec 06 2:51 PM
fiogf49gjkf0d
Does this url work independently outside of slx?

http://vmsrv2003-c/SlxAspx/AddAccountProfile.aspx

I havent tried out TabAdd.Push, but i have used something like this in the nav bar and it works.

MenuAdd[1] = "../../slxapp/show_details.aspx";

This will go back 2 steps and get into the "slxapp" vir dir and then load the show_details page.While copying the files, copy the aspx files to the root virtual directory folder and copy the assembly to a bin folder created under that.Refer to your test site for the correct directory structure.

Also i have slxapp created in the same web structure under the slx website.This way browsing is easy , security is derived from the parent root and i can use the same cert for the site.
[Reply][Quote]
Jeff Ballard
Posts: 326
 
Re: Trying to link to an ASPX pageYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 04 Dec 06 3:14 PM
fiogf49gjkf0d
Yes, that's where it should be located.

Jeff
[Reply][Quote]
Corey
Posts: 42
 
Re: Trying to link to an ASPX pageYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 04 Dec 06 3:28 PM
fiogf49gjkf0d
Just went to create the folder that links to he DLL in the /bin and there is not /bin folder or .DLL files in the website. All that's there are my aspx and vb files. I rebuild the website and still nothing. Do I need to do a release instead of a debug?
[Reply][Quote]
Jeff Ballard
Posts: 326
 
Re: Trying to link to an ASPX pageYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 04 Dec 06 3:33 PM
fiogf49gjkf0d
Have you actually done a build of the project? I created a quick & dirty web app using Visual Studio 2003 and it has a bin folder beneath my 'WebApplication1' folder, with my DLL in it as expected.

If you follow Nandu's suggestion, does it run if you don't call it through SalesLogix, but call it directly instead?

Jeff


[Reply][Quote]
Corey
Posts: 42
 
Re: Trying to link to an ASPX pageYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 04 Dec 06 3:36 PM
fiogf49gjkf0d
Yes, I have done several builds of the project and still no DLL. I called it directly and it didn't run.
[Reply][Quote]
Ryan Farley
Posts: 2265
slxdeveloper.com Site Administrator
Top 10 forum poster: 2265 posts
 
Re: Trying to link to an ASPX pageYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 04 Dec 06 3:57 PM
fiogf49gjkf0d
If this is ASP.NET 2.0 web app then you won't see a DLL and no Bin dir. This is a major difference between ASP.NET 2.0 and 1.1 and prior web applications.

For a ASP.NET 2.0 project, all you'll need to do is copy all contents to the virtual dir and make it an application.

So, I'd go back to Nandu's question, Does this URL run independently from SLX? http://vmsrv2003-c/SlxAspx/AddAccountProfile.aspx
[Reply][Quote]
Corey
Posts: 42
 
Re: Trying to link to an ASPX pageYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 04 Dec 06 4:10 PM
fiogf49gjkf0d
No, it doesn't run independently of SLX. As far as copying the files into the virtual dir, I thought the mapping of the files to the actual dir when I created the virtual dir took care of copying the file to the virtual, was I incorrect in my assumption?
[Reply][Quote]
Ryan Farley
Posts: 2265
slxdeveloper.com Site Administrator
Top 10 forum poster: 2265 posts
 
Re: Trying to link to an ASPX pageYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 04 Dec 06 4:13 PM
fiogf49gjkf0d
If it doesn't run independently of SLX then forget about trying to get it to launch in SLX until it works on it's own first.

It doesn't matter if you've copied the files to a dir or mapped the virtual dir to the place where the files are located.

So, now that we know it is a problem with the ASP.NET page itself, not a problem with integrating it into SLX, let's focus there. What is the error you get when you run the page from VS? Make sure that debugging is on and take a look at the stack trace and exception details to see exactly what is causing your problem.
[Reply][Quote]
Corey
Posts: 42
 
Re: Trying to link to an ASPX pageYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 04 Dec 06 4:28 PM
fiogf49gjkf0d
Here's the error message:

Server Error in '/' Application.
Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

Parser Error Message: An error occurred loading a configuration file: Access to the path 'c:\inetpub\wwwroot\slxsite\web.config' is denied.

Source Error:

[No relevant source lines]


Source File: c:\inetpub\wwwroot\slxsite\web.config Line: 0

Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.210
[Reply][Quote]
Raul A. Chavez
Posts: 1300
Top 10 forum poster: 1300 posts
 
Re: Trying to link to an ASPX pageYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 05 Dec 06 8:34 AM
fiogf49gjkf0d
Seems as either you are not copying the Web.config or you may have ACL(Permission) issues with the folder and files.

Question, can you execute a Debug from VS and have it run the site (not using the Web Server from VS but configuring it to use IIS)?

Again, the last message is kind of clear stating that the site cannot read the config file. Check to see if the file exists and its permissions.
[Reply][Quote]
Snow Monkey
Posts: 214
 
Re: Trying to link to an ASPX pageYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 05 Dec 06 9:25 AM
fiogf49gjkf0d
Sorry for asking you this obvious questions...Does it work on your developement machine??

Is the config file "well formed" even after changing it on the server?To resolve, it copy paste the contents of the file to a notepad, save it as an xml file and try to browse the xml file in the browser. If the xml file is unable to be rendered by the browser and throws error, then you can find the place where the tags are not well formed or invalid characters exist and rectify them.

.Also just as we see the security problem, why dont you log on to the server under the user running the website and then try a put a dummy file to the 'c:\inetpub\wwwroot\slxsite directory?

Anyways, can you refer to these following 2 location and do what these 2 articles say..

http://www.cryer.co.uk/brian/mswinswdev/ms_vbnet_server_error_in_application.htm

http://support.microsoft.com/kb/823379
[Reply][Quote]
Corey
Posts: 42
 
Re: Trying to link to an ASPX pageYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 05 Dec 06 9:39 AM
fiogf49gjkf0d
Well, I finally figured out why it wasn't working in SLX. Apparently, at least for me, I had to put the port number in the url. Before, I was doing the following:

TabAdd.push("http://vmsrv2003-c/SlxAspx/AddAccountProfile.aspx");

For it to work, it had to look like this:

TabAdd.push("http://vmsrv2003-c:3333/SlxAspx/AddAccountProfile.aspx");

Does anyone know why the port number had to be specified in the url?

Thank you everyone for helping me to resolve this issue.
[Reply][Quote]
Ryan Farley
Posts: 2265
slxdeveloper.com Site Administrator
Top 10 forum poster: 2265 posts
 
Re: Trying to link to an ASPX pageYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 05 Dec 06 9:41 AM
fiogf49gjkf0d
Apparently your web server it is running in is on port 3333.
[Reply][Quote]
Snow Monkey
Posts: 214
 
Re: Trying to link to an ASPX pageYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 05 Dec 06 10:04 AM
fiogf49gjkf0d
hehe..Just as your added your vir dir under the slx website, all url shluld specify the port under which your slx website is working.

You can have some security problems if you run a website under a port other than 80.(if you have a tight shop security policy)

Stop the default site and move the slx website to 80.Change the same in web manager.Check the slx site to make sure it is up and running

Then try to call this aspnet pages without the port.It should work.I learned something today... that if the port is not mentioned correctly aspnet would throw a web.config acl error!!
[Reply][Quote]
 Page 1 of 1 
  You can subscribe to receive a daily forum digest in your user profile. View the site code of conduct for posting guidelines.

   Forum RSS Feed - Subscribe to the forum RSS feed to keep on top of the latest forum activity!
 

 
 slxdeveloper.com is brought to you courtesy of Ryan Farley & Customer FX Corporation.
 This site, and all contents herein, are Copyright © 2024 Customer FX Corporation. The information and opinions expressed here are not endorsed by Sage Software.

code of conduct | Subscribe to the slxdeveloper.com Latest Article RSS feed
   
 
page cache (param): 11/22/2024 8:35:24 PM