Forum  General Visual ...  Install It!  regarding .wgx and .aspx extensions
Previous Previous
 
Next Next
New Post 10/2/2008 1:14 AM
  pateal
37 posts
No Ranking




regarding .wgx and .aspx extensions 

Hi,

we are developing webgui applications using vs2008 . up to now we are using mainform.wgx as  a start page. Is there any posibility to add an extension .aspx . so that my main page is mainform.aspx. If is there any posibility like related that one please post it .

Every reply greatly appreciable.

 


Regards, praveen.chitturi,
 
New Post 10/2/2008 2:18 AM
  pateal
37 posts
No Ranking




Re: regarding .wgx and .aspx extensions 
Modified By host  on 10/5/2008 11:45:57 AM)

I done some workaround this one as follows

I add the following line under system.web and specified that form1.aspx as startup page .

<

 

 

http://localhost:51764/form1.aspx

http://localhost:51764/form1.wgx  .

Eventhough I put this application in IIS7.0 in that one also i am getting both pages i.e.

http://localhost/visualwebgui/form1.aspx

http://localhost/visualwebgui/form1.wgx

I added wgx hanler mapping in iis .

NOw the problem is from remote client place i.e. from another system if i am trying to http://production04/visualwebgui/form1.wgx it is opening good i.e. fine.

But when i am going to open http://production04/visualwebgui/form1.aspx  i am unable to open this page i am getting an error on page.

 

can you any body help me out.

 

add verb="*" path="*.aspx" type="Gizmox.WebGUI.Server.Router,Gizmox.WebGUI.Server,Version=3.0.5701.0,
-->Culture=neutral,PublicKeyToken=3de6eb684226c24d
" /> then i am able to browse both aspx and wgx pages from visual studio i.e.

Regards, praveen.chitturi,
 
New Post 10/5/2008 10:12 AM
  ori.cohen
4383 posts
1st Level Poster




Re: regarding .wgx and .aspx extensions 
Hello,

You basically need to do the following to change the VWG "*.wgx" extension to "*.aspx":

Add the following element inside the <WebGui> section of your Web.config file:
<Extension Value=".aspx"/>

Change the following element:
<add verb="*" path="*.wgx" type="Gizmox.WebGUI.Server.Router,...
/>
to:
<add verb="*" path="*.aspx" type="Gizmox.WebGUI.Server.Router,...
/>

Change the project default start-up page's extension to ".aspx".

That's it.

If you have a problem running your application this way, your hosting service provider may have  configured their IIS server to prohibit this action. In this case you can use the ".ashx" extension the same way.

Regards,

Ori Cohen
The Visual WebGui team
 
New Post 10/6/2008 1:00 AM
  pateal
37 posts
No Ranking




Re: regarding .wgx and .aspx extensions 

Thanks Mr.ori Cohen.

yes I got it as you said i.e. I am able to open http://localhost/aspxvisualwebgui/form1.aspx   from IIS. But the thing is I am giving form1.aspx as default document in IIS . but still I have to give http://localhost/aspxvisualwebgui/form1.aspx manually. If i enable directory browsing in iis it is listing the directory and again i have to enter form1.aspx manually. If i disable the directory browsing I am getting the following error.

Internet Information Services 7.0

Error Summary

HTTP Error 403.14 - Forbidden

The Web server is configured to not list the contents of this directory.

Detailed Error Information
Module DirectoryListingModule
Notification ExecuteRequestHandler
Handler StaticFile
Error Code 0x00000000
Requested URL http://localhost:80/aspxwebgui/
Physical Path C:\Users\Administrator\Documents\Visual Studio 2008\Projects\WebGUIApplication4\WebGUIApplication4\
Logon Method Anonymous
Logon User Anonymous
Most likely causes:
  • A default document is not configured for the requested URL, and directory browsing is not enabled on the server.
Things you can try:
  • If you do not want to enable directory browsing, ensure that a default document is configured and that the file exists.
  • Enable directory browsing using IIS Manager.
    1. Open IIS Manager.
    2. In the Features view, double-click Directory Browsing.
    3. On the Directory Browsing page, in the Actions pane, click Enable.
  • Verify that the configuration/system.webServer/directoryBrowse@enabled attribute is set to true in the site or application configuration file.
Links and More Information

 

 

I want to open the defualt document automatically . I don't want to give the form1.aspx manually .

 


Regards, praveen.chitturi,
 
New Post 10/6/2008 1:07 AM
  pateal
37 posts
No Ranking




Re: regarding .wgx and .aspx extensions 

And also one thing Mr.ori cohen . I am in a confusion that how will you allow aspx type in your visual web gui applications as you will loose your identity i.e. wgx type started using by your team or software .

Generally  If i brought new type say *.praveen I want to expose that type in the IT world so that it will show my identity . like that why you are allowing common aspx types in your application.

 

Can you plz give me some clarity regarding that one. If you say yes or no we will proceed  a standary *.wgx or *.aspx .

 


Regards, praveen.chitturi,
 
Previous Previous
 
Next Next
  Forum  General Visual ...  Install It!  regarding .wgx and .aspx extensions
Assessment Bottom
.NET Web, Cloud and Mobile application delivery platform | Sitemap | Terms of Use | Privacy Statement | Copyright © 2005-2011 Visual WebGui®       Visual WebGui weblog on ASP.NET Visual WebGui Group on LinkedIn Visual WebGui updates on Twitter Visual WebGui Page on Facebook Visual WebGui YouTube Channel Visual WebGui Platform News RSS