473,626 Members | 3,933 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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="WebResourc e.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 8453
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**@markNOSPA Mrae.comschrieb im Newsbeitrag
news:OX******** ******@TK2MSFTN GP03.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="WebResourc e.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****@schwa rz-interactive.dew rote in message
news:eH******** ******@TK2MSFTN GP04.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**@markNOSPA Mrae.comschrieb im Newsbeitrag
news:eM******** ******@TK2MSFTN GP02.phx.gbl...
"Michael Schwarz" <no****@schwa rz-interactive.dew rote in message
news:eH******** ******@TK2MSFTN GP04.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****@schwa rz-interactive.dew rote in message
news:%2******** ********@TK2MSF TNGP03.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**@markNOSPA Mrae.comschrieb im Newsbeitrag
news:et******** ******@TK2MSFTN GP03.phx.gbl...
"Michael Schwarz" <no****@schwa rz-interactive.dew rote in message
news:%2******** ********@TK2MSF TNGP03.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****@schwa rz-interactive.dew rote in message
news:ek******** *******@TK2MSFT NGP02.phx.gbl.. .
"Mark Rae" <ma**@markNOSPA Mrae.comschrieb im Newsbeitrag
news:et******** ******@TK2MSFTN GP03.phx.gbl...
>"Michael Schwarz" <no****@schwa rz-interactive.dew rote in message
news:%2******* *********@TK2MS FTNGP03.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**@markNOSPA Mrae.comschrieb im Newsbeitrag
news:eH******** ******@TK2MSFTN GP02.phx.gbl...
"Michael Schwarz" <no****@schwa rz-interactive.dew rote in message
news:ek******** *******@TK2MSFT NGP02.phx.gbl.. .
>"Mark Rae" <ma**@markNOSPA Mrae.comschrieb im Newsbeitrag
news:et******* *******@TK2MSFT NGP03.phx.gbl.. .
>>"Michael Schwarz" <no****@schwa rz-interactive.dew rote in message
news:%2****** **********@TK2M SFTNGP03.phx.gb l...

>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****@schwa rz-interactive.dew rote in message
news:OG******** ******@TK2MSFTN GP04.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
2515
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 file (present under the Properties folder of the project) 3. Now I created a file called test.js on the root folder of the project,
1
1653
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 http://beta.easyquerydemo.com
0
1343
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 substitute the WebResourceUrl of other resource referenced with the first (perhaps an image within an html file). What I would like to be able to do is perform substitution on a script file that contains <%=Control1.ClientID%so that the clientID is...
1
1597
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 times it is a client browser such as IE). I'm curious if anyone has some insight as to why this would be happening, if there is a way to resolve this. If it was just a web crawler I'd ask if we should even care. The error is - ...
4
4281
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 occurred, so I can track it down. I have been getting a lot of e-mails recently showing the source of the exception as being WebResource.axd, and I'm not sure what's happening. I wonder if anyone here has any ideas.
0
1175
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 assembly, using WebResource.axd. How can I do this?
2
808
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 RawUrl=/WebResource.axd?d=2X-p-JOqLnRCeGYyigKrMg2&t=632988382868932500 Exception Type: System.Web.HttpException
2
2587
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 .js script files located here THe .js file is marked as embedded resource in VS.
2
1973
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 two html source and I saw then on local I see WebResource.axd?d=...... On server source I can't see it. Can you help me? Thanks.
0
8266
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8705
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8365
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7196
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6125
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4092
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4198
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1811
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1511
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.