473,386 Members | 1,873 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Path to WebResource.axd

Hi,

I'm developing an intranet for a client. On my development machine, I have
created a virtual directory called, fairly unimaginatively, intranet.

However, the client wants to deploy the app into its own site, rather than
into a virtual directory, on the production server.

Problem now is that the production site can't find WebResource.axd.

When I do a View Source on my development workstation, the location is
<script src="/intranet/WebResource.axd..."which is correct.

But on the production server, it should be <script src="WebResource.axd...">

Is there a way to specify the path into which ASP.NET creates the
WebResource.axd file?

Any assistance gratefully received.

Mark
Nov 7 '06 #1
8 8419
It will always be the root folder of your web application. With Visual
Studio internal web server it will be always a sub folder. ASP.NET will set
the correct path automatically.

--
Best regards | Schöne Grüße
Michael

Microsoft MVP - Most Valuable Professional
Microsoft MCAD - Certified Application Developer

http://weblogs.asp.net/mschwarz/
http://www.ajaxpro.info/


"Mark Rae" <ma**@markNOSPAMrae.comschrieb im Newsbeitrag
news:OX**************@TK2MSFTNGP03.phx.gbl...
Hi,

I'm developing an intranet for a client. On my development machine, I have
created a virtual directory called, fairly unimaginatively, intranet.

However, the client wants to deploy the app into its own site, rather than
into a virtual directory, on the production server.

Problem now is that the production site can't find WebResource.axd.

When I do a View Source on my development workstation, the location is
<script src="/intranet/WebResource.axd..."which is correct.

But on the production server, it should be <script
src="WebResource.axd...">

Is there a way to specify the path into which ASP.NET creates the
WebResource.axd file?

Any assistance gratefully received.

Mark

Nov 7 '06 #2
"Michael Schwarz" <no****@schwarz-interactive.dewrote in message
news:eH**************@TK2MSFTNGP04.phx.gbl...
It will always be the root folder of your web application. With Visual
Studio internal web server it will be always a sub folder. ASP.NET will
set the correct path automatically.
So why is it not...?
Nov 7 '06 #3
Hi Mark,
"Mark Rae" <ma**@markNOSPAMrae.comschrieb im Newsbeitrag
news:eM**************@TK2MSFTNGP02.phx.gbl...
"Michael Schwarz" <no****@schwarz-interactive.dewrote in message
news:eH**************@TK2MSFTNGP04.phx.gbl...
>It will always be the root folder of your web application. With Visual
Studio internal web server it will be always a sub folder. ASP.NET will
set the correct path automatically.

So why is it not...?

are you using a virtual application folder in IIS on the production server?
And, what do you get as path there? How do you include the WebResource.axd?

--
Best regards | Schöne Grüße
Michael

Microsoft MVP - Most Valuable Professional
Microsoft MCAD - Certified Application Developer

http://weblogs.asp.net/mschwarz/
http://www.ajaxpro.info/


Nov 7 '06 #4
"Michael Schwarz" <no****@schwarz-interactive.dewrote in message
news:%2****************@TK2MSFTNGP03.phx.gbl...
>>It will always be the root folder of your web application. With Visual
Studio internal web server it will be always a sub folder. ASP.NET will
set the correct path automatically.

So why is it not...?


are you using a virtual application folder in IIS on the production
server?
No.
And, what do you get as path there?
???
How do you include the WebResource.axd?
What do you mean by how do *I* include it...*I* don't do anything - it just
happens as part of ASP.NET 2, does it not...?
Nov 7 '06 #5
Hi Mark,
"Mark Rae" <ma**@markNOSPAMrae.comschrieb im Newsbeitrag
news:et**************@TK2MSFTNGP03.phx.gbl...
"Michael Schwarz" <no****@schwarz-interactive.dewrote in message
news:%2****************@TK2MSFTNGP03.phx.gbl...
>>>It will always be the root folder of your web application. With Visual
Studio internal web server it will be always a sub folder. ASP.NET will
set the correct path automatically.

So why is it not...?
[...]
>How do you include the WebResource.axd?

What do you mean by how do *I* include it...*I* don't do anything - it
just happens as part of ASP.NET 2, does it not...?

yes, but where is the problem, is the path there wrong?

Michael

>

Nov 8 '06 #6
"Michael Schwarz" <no****@schwarz-interactive.dewrote in message
news:ek***************@TK2MSFTNGP02.phx.gbl...
"Mark Rae" <ma**@markNOSPAMrae.comschrieb im Newsbeitrag
news:et**************@TK2MSFTNGP03.phx.gbl...
>"Michael Schwarz" <no****@schwarz-interactive.dewrote in message
news:%2****************@TK2MSFTNGP03.phx.gbl...
>>>>It will always be the root folder of your web application. With Visual
Studio internal web server it will be always a sub folder. ASP.NET
will set the correct path automatically.

So why is it not...?
[...]
>>How do you include the WebResource.axd?

What do you mean by how do *I* include it...*I* don't do anything - it
just happens as part of ASP.NET 2, does it not...?


yes, but where is the problem, is the path there wrong?
Michael,

The problem is as I outlined in the original post - I obviously haven't
explained it clearly enough...

On the development workstation running WinXPPro, the web application resides
within a virtual directory called intranet. When the web application is
running on the development workstation, the path to WebResource.axd as shown
in View Source is <script src="/intranet/WebResource.axd..."- this is
correct, works.

On the production server running Win2ks3, the web application is deployed in
its own site, not a virtual directory as such. When the web application is
running on the development environment, the path to WebResource.axd as
showin in View Source is *also* <script
src="/intranet/WebResource.axd..."- this is not correct, and does not
work - it should be <script src="/WebResource.axd...">

Two things make the web application work on the production server:

1) to create a subfolder called intranet in the web site and deploy all of
the files into that

2) to deploy the site into a virtual directory

There is obviously something somewhere which is telling ASP.NET to create
the WebResource.axd file in a subfolder called intranet...

Mark
Nov 8 '06 #7
Very strange... is it a small project? Maybe you can send me the files and I
will test it in my environment. What is if you put it on a different Windows
Server?

--
Best regards | Schöne Grüße
Michael

Microsoft MVP - Most Valuable Professional
Microsoft MCAD - Certified Application Developer

http://weblogs.asp.net/mschwarz/
http://www.ajaxpro.info/

"Mark Rae" <ma**@markNOSPAMrae.comschrieb im Newsbeitrag
news:eH**************@TK2MSFTNGP02.phx.gbl...
"Michael Schwarz" <no****@schwarz-interactive.dewrote in message
news:ek***************@TK2MSFTNGP02.phx.gbl...
>"Mark Rae" <ma**@markNOSPAMrae.comschrieb im Newsbeitrag
news:et**************@TK2MSFTNGP03.phx.gbl...
>>"Michael Schwarz" <no****@schwarz-interactive.dewrote in message
news:%2****************@TK2MSFTNGP03.phx.gbl.. .

>It will always be the root folder of your web application. With
>Visual Studio internal web server it will be always a sub folder.
>ASP.NET will set the correct path automatically.
>
So why is it not...?
[...]
>>>How do you include the WebResource.axd?

What do you mean by how do *I* include it...*I* don't do anything - it
just happens as part of ASP.NET 2, does it not...?


yes, but where is the problem, is the path there wrong?

Michael,

The problem is as I outlined in the original post - I obviously haven't
explained it clearly enough...

On the development workstation running WinXPPro, the web application
resides within a virtual directory called intranet. When the web
application is running on the development workstation, the path to
WebResource.axd as shown in View Source is <script
src="/intranet/WebResource.axd..."- this is correct, works.

On the production server running Win2ks3, the web application is deployed
in its own site, not a virtual directory as such. When the web application
is running on the development environment, the path to WebResource.axd as
showin in View Source is *also* <script
src="/intranet/WebResource.axd..."- this is not correct, and does not
work - it should be <script src="/WebResource.axd...">

Two things make the web application work on the production server:

1) to create a subfolder called intranet in the web site and deploy all of
the files into that

2) to deploy the site into a virtual directory

There is obviously something somewhere which is telling ASP.NET to create
the WebResource.axd file in a subfolder called intranet...

Mark

Nov 13 '06 #8
"Michael Schwarz [MVP]" <no****@schwarz-interactive.dewrote in message
news:OG**************@TK2MSFTNGP04.phx.gbl...
Very strange... is it a small project?
Fairly small...
Maybe you can send me the files and I will test it in my environment.
Couldn't possibly due that due to the non-disclosure clause in my contract
with my client...
What is if you put it on a different Windows Server?
Same thing.
Nov 13 '06 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: jojobar | last post by:
Okay, I am trying to do is to test the webresource in 2.0 1. I created a new project with assembly name (and default assembly name) "Office". 2. I added the following to the AssemblyInfo.cs...
1
by: Sergiy Korzh | last post by:
Hello, We have encountered a strange problem with WebResource.axd service. Please check a look at the following two web sites: http://www.easyquerydemo.com and ...
0
by: sunev | last post by:
I have a question regarding WebResource and in particular the PerformSubstitution. I see that the <%=WebResouce(…)%can be used with a WebResource to perform substitution on a resource to...
1
by: Brad | last post by:
Our .Net 2 web apps recently started getting CryptographicExceptions from WebResource.axd, and these almost always seem to be when the client is a web crawler...most notably googlebot (but a few...
4
by: Alan Silver | last post by:
Hello, I have an error logging system on one of my sites, so that if an unexpected exception occurs, I get an e-mail sent. The e-mail includes the name of the page on which the exception...
0
by: Matthew Brealey | last post by:
I have the following entry in a .skin file: <asp:button runat=server SkinId=btnSubmit ImageUrl="~/Images/ submit.gif" /> But I want to make the image an embedded resource in a different...
2
by: Håkan | last post by:
I have a problem with WebResource.axd Most of the requests to this site work just fine but every now and then I recive described below: Date: 2007-02-13 15:20 ...
2
by: zb | last post by:
I have my code directory structured this way App App\Pages <- contains ASPX files App\Pages\Common App\Pages\Common\Controls <- has user controls App\Pages\Common\Controls\SupportingJS <- has...
2
by: Roberto Rasto | last post by:
I have an application that use Componentart WebUI calendar control. When I execute on local everything works fine. When I execute on server I get the javascript error: Expected ')' I compared the...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.