[RESOLVED] Creating Web App in Sub Domain
I have created a small web app in VS 2005. I want to publish it to a sub domain. So we're clear, this is www.xxx.yyy.com, where it will go into xxx
The site runs just fine locally (local host). When I try to publish it, the status bar in VS says Publish started, then Publish failed.
Today, I get no dialog box at all. Yesterday I got this:
Unable to open the Web'http://xxx.yyy.com'. An error occurred accessing your sharepoint services site files. Authors - If authoring against a Web server, please contact the Webmaster for this server's Web site. Webmasters - please see the searver's application event log for more details.
I checked with my new ISP and this is their response:
When using extensions you can not publish directly to the subdomain, you must do so via a subweb of the main domain. Please consult your documentation for details on creating subwebs.
I have no idea what this means much less how to find the documentation to resolve it.
Can I get an assist here? Thanks!!!!!
Re: Creating Web App in Sub Domain
Hey,
This sounds like it is very much a ISP specific issue. Have you searched your ISP's documentation, i.e. on their website on how to create a subweb on your account?
Gary
Re: Creating Web App in Sub Domain
Most isp's will allow you to select the directory that you would like your subdomain directed to.
Re: Creating Web App in Sub Domain
I have created a folder in my domain as my sub domain. That is where I am trying to set up the app. The folder exists.
Am I getting the terms Sub Domain and Sub Web wrong? I would think Sub Domain is a folder off (below) the main folder on my ISP's server. Is not Sub Web the same thing?
What questions should I be asking my ISP to resolve the problem (and sound semi-intelligent in the process?)
Re: Creating Web App in Sub Domain
Who is your ISP? Is there not a tutorial on their website for what you are trying to do? Seems like a reasonably common thing to want to do!
Gary
Re: Creating Web App in Sub Domain
webstrikesolutions.com
I agree. This has got to be a done pretty often. That's why I'm surprised they didn't refer me to a place to find the info I need.
Should I be searching their site for "Setup Sub Web" or what? Nothing obvious in the FAQ.
Re: Creating Web App in Sub Domain
What about this.
Is this what you are doing?
Re: Creating Web App in Sub Domain
Actually, yes it is. Thank you for finding it. I did what it suggested, uploading to yyy/xxx.com.
Publish was successful. However, no server is found at xxx.yyy.com. I get an indication that a web app is available at yyy/xxx.com. Which is fine. I can live with that.
So I guess the app is up there, but I can't make it run. One step at a time, I guess.
Now, any idea what THIS is about? (BTW, 'oblivion' = xxx)
Server Error in '/' Application.
Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.
Parser Error Message: Could not load the assembly 'App_Web_of-pjsgk'. Make sure that it is compiled before accessing the page.
Source Error:
Line 1: <%@ page language="VB" autoeventwireup="false" inherits="_Default, App_Web_of-pjsgk" %>
Line 2:
Line 3: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
Source File: /oblivion/persuasion.aspx Line: 1
Re: Creating Web App in Sub Domain
Hey,
Depending on how IIS is set up on their servers, you may have to compile your website into a DLL, rather than placing the code files on the server.
Or, you may have to specify what version of ASP.Net you are wanting to use, see here.
Also, this support article might be of use.
Gary
Re: Creating Web App in Sub Domain
My ISP suggested just FTPing into my main domain, opening my sub domain, and copying the files from my Visual Studio project into that folder. Sounded too easy to actually work. So I tried it.
It did.
I think the last bit had to do with Visual Studio attempting to compile the vb code-behind page (which is exactly opposite of what gep13 just suggested). Apparently the server DOESN'T want a precompiled DLL.
Anyway, all seems well now. Thanks everyone!
Re: [RESOLVED] Creating Web App in Sub Domain
You are getting that error because your ISP is running under medium trust which prevents you from publishing precompiled ASP.NET web applications. It's a 'hidden catch' that you find out after you start developing and publishing. You can use visual studio to publish in any case but you must uncheck the box for precompiling.
Re: [RESOLVED] Creating Web App in Sub Domain
Thank you. I haven't tried it or looked for the precompile box, but it sounds like it'll work.
Thanks everyone.
Re: [RESOLVED] Creating Web App in Sub Domain
Let us know how you get along, this kind of stuff will help other people with the same problem